3 ms·
There are three standard models of working with API schemas, in relation to the implementation: * manual: * schema is maintained manually, independent of
by BerislavLopac 4y ago
There are three standard models of working with API schemas, in relation to the implementation:
* manual:
* schema is maintained manually, independent of the implementation
* usually an afterthought and used mainly for documentation
* implementation-first:
* schema is autogenerated from the code
* used as a reference, possibly to generate clients, and often to run tests
* probably the most common approach, supported by many frameworks
* schema-first:
* schema is maintained manually, with client and server code generated from it
* very rare, but the most correct approach