| ▲ | c-hendricks 2 days ago | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
And the fetching in a single request? | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | WickyNilliams 2 days ago | parent | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
There is json-schema which is a sort of dialect/extension of OpenAPI which offers support for fetching relations (and relations of relations etc) and selecting a subset of fields in a single request https://json-schema.org/ I used this to get a fully type safe client and API, with minimal requests. But it was a lot of work to get right and is not as mainstream as OpenAPI itself. Gql is of course much simpler to get going | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | lateforwork 2 days ago | parent | prev [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The question I answered was regarding contracts. Fetching in a single request can be handled by your BFF. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||