2 ms·
Consider OpenAPI for the first two points - you can define a schema (YAML or JSON) and use it to generate both server & client stubs. Depending on the language
by OJFord 4y ago
Consider OpenAPI for the first two points - you can define a schema (YAML or JSON) and use it to generate both server & client stubs.
Depending on the language/framework used it'll validate too - e.g. the python backend framework connexion (a thin wrapper around flask) will 500 if you return a non-conforming response, and 400/405/etc. if the request doesn't fit the declared schema, automatically.