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