I would like to document our backend api. In other words, indicate in some file(s) exactly what functions are exposed by our api, what those functions do, and their expected request/response JSON bodies.
I've read that this is doable with json schema. Doing so would be useful if we decide to validate incoming requests, since we can run ajv or its java equivalent on the request bodies to reduce the likelihood of server errors. Could also be helpful for unit tests. All that would be really nice but it may take a lot of time to do in the end it doesn't matter all that much how the api is documented as long as it is done clearly.
I would like to document our backend api. In other words, indicate in some file(s) exactly what functions are exposed by our api, what those functions do, and their expected request/response JSON bodies.
I've read that this is doable with json schema. Doing so would be useful if we decide to validate incoming requests, since we can run
ajv
or its java equivalent on the request bodies to reduce the likelihood of server errors. Could also be helpful for unit tests. All that would be really nice but it may take a lot of time to do in the end it doesn't matter all that much how the api is documented as long as it is done clearly.