When you provide Web API, there is a question, how to inform a user about all its abilities, about the syntax of requests, etc. Usually, you should create some available Web page, where you discuss these topics. But wouldn't it be great, if the Web API itself provided access to the documentation?
Showing posts with label OWIN. Show all posts
Showing posts with label OWIN. Show all posts
Monday, March 12, 2018
Friday, February 9, 2018
Handling JSON errors in OWIN Web application
Somу time ago I wrote an article, where I discuss how to find typos and usage of obsolete properties in JSON body of a request. The described technique required providing a handler of Error event of the JsonSerializerSettings object. The problem is that this object is shared across all requests to your application, but we need separate handling for each request. In this short article, I'll describe how to do it.
Subscribe to:
Posts (Atom)