Crell / ApiProblem

A simple implementation of the api-problem specification. Includes PSR-15 support.
MIT License
239 stars 21 forks source link

Embedded content type #16

Closed raphaelstolt closed 7 years ago

raphaelstolt commented 8 years ago

Adds self documented content/media type

Crell commented 7 years ago

Good thinking. But this constant would be inaccurate for an XML-based API, no? Is there a way we can safely include both options (the JSON and XML mime types)?

raphaelstolt commented 7 years ago

The only solution I see is adding two content/media types.

Crell commented 7 years ago

Merci bien!