Sunday, April 9, 2023

Explain media type formatters.

 In web API, media type formatters are classes that are responsible for serialization data.

Web API can understand request data format in a better way and send data in a format that the client expects. It simply specifies data that is being transferred among client and server in HTTP response or request. 


JsonMediaTypeFormatter ->application/json, text/json

XmlMediaTypeFormatter ->application/xml, text/json



 

No comments:

Post a Comment

Web API Versioning.

 Implement the new feature without impacting the existing consumers we can solve this problem by API versioning. When the business has start...