mrl5
mrl5
WWindmill
Created by Yassin on 7/15/2023 in #help
OpenAPI fields to return ?
@yassinsiouda from the context I'd assume that you're probably doing some direct API call? One possible workaround would be to experiment with encoding (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Encoding) - however this is probably poor workaround if you later need to parse the response anyway
7 replies
WWindmill
Created by Yassin on 7/15/2023 in #help
OpenAPI fields to return ?
apart from GraphQL, inspiration for some alternatives might come from this great blog https://apisyouwonthate.com/blog/you-might-not-need-graphql/, e.g.
A common standard for REST APIs to implement is JSON-API, which talks about sparse fieldsets. The basic idea is that you can specify the fields in the request: GET /articles?fields[articles]=title,body
7 replies