Codit / practical-api-guidelines

Practical guidelines for building & designing APIs with .NET.
MIT License
16 stars 5 forks source link

Support XML formatting #109

Open pietersap opened 5 years ago

pietersap commented 5 years ago

With respect to my comments in issue 103

We should add support for xml formatting by doing the following: -add the XML formatter (install the nuget package and add it in the mvc configuration) -change ICollection to List in CarDetailsDto.cs

The result is a API that is exactly the same, except that every operation can easily return XML if the Users requests it in the Accept header. If the user does not include a Accept header, Json is still returned.

pietersap commented 5 years ago

Created a branch for this, we can merge it in the future if we ever want to support XML.

MassimoC commented 5 years ago

@pietersap before doing the Code i would like to discuss the guidelines. I cannot see your comment in the #86 Am I missing something?

pietersap commented 5 years ago

@MassimoC #103, edited.

Yes, this issue is open for discussion of course, I have not created a PR