dotkernel / api

DotKernel's PSR-7 REST style API built around the Mezzio API skeleton.
https://docs.dotkernel.org/api-documentation/
MIT License
35 stars 5 forks source link

Content negociation implementation #259

Closed arhimede closed 4 months ago

arhimede commented 4 months ago

https://api-tools.getlaminas.org/documentation/api-primer/content-negotiation

let's talk about that

arhimede commented 4 months ago

https://github.com/laminas-api-tools/api-tools-content-negotiation

MarioRadu commented 4 months ago

Middleware after the RouteMiddleware to check the content negociation rules from a config file.

arhimede commented 4 months ago

when the Accept header is missing

"ERR","message":"trim(): Argument #1 ($string) must be of type string, false given","extra":{"\u0000\u0000message":"trim(): Argument #1 ($string) must be of type string, false given","\u0000Error\u0000string":"","\u0000\u0000code":0,"\u0000*\u0000file":"/var/www/vhosts/api.dotkernel.net/httpdocs/src/App/src/Middleware/ContentNegotiationMiddleware.php",

bidi47 commented 1 month ago

https://docs.dotkernel.org/api-documentation/v5/core-features/content-validation/