Swagger Docs are a great way to document APIs. This PR uses swagger-jsdocs to generate a Swagger JSON spec from decorated jsdocs on the API routes. This JSON spec is served over /api/swagger.json. The frontend react app uses the sagger-ui-react's SwaggerUI component to consume that JSON endpoint and generate the documentation page.
Swagger Docs are a great way to document APIs. This PR uses
swagger-jsdocs
to generate a Swagger JSON spec from decorated jsdocs on the API routes. This JSON spec is served over /api/swagger.json. The frontend react app uses thesagger-ui-react
'sSwaggerUI
component to consume that JSON endpoint and generate the documentation page.Fixes #97