News for hackers. Stuff that matters.
Re:Cache your CORS by enlyth on Tuesday September 20, 2022 @04:21AM (#32909056)
> Offer a variant of your API format that either: 1. Moves the resource path to the request body

GraphQL

ducks

Re:Cache your CORS by danwee on Tuesday September 20, 2022 @04:24AM (#32909071)
> GraphQL

And now you have two problems

Re:Cache your CORS by enlyth on Tuesday September 20, 2022 @07:45AM (#32910409)
I got N+1 problems but CORS ain't one
Re:Cache your CORS by pas on Tuesday September 20, 2022 @06:18AM (#32909887)
But you have a nice schema for your problem :)

GQL is a bit ugly, but works well, kind of standardized, etc.

Is there something similar for providing a batch endpoint for OpenAPI requests?

Re:Cache your CORS by marcofatica on Tuesday September 20, 2022 @10:09AM (#32911864)

  GET /blog/1?with=comments,author&only=title,body,created_at,comments.body,author.name