Skip to content

Commit

Permalink
add API documentation file
Browse files Browse the repository at this point in the history
  • Loading branch information
paoloose committed Nov 13, 2024
1 parent 8fdb1ae commit f879776
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/api_documentation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# API documentation

For the API documentation we followed a code-first approach. The documentation
is generated from the source code using [`utoipa`](https://github.com/juhaku/utoipa),
which generates an OpenAPI 3.1 specification file at compile time.

This specification is then consumed and rendered by
[Scalar](https://github.com/scalar/scalar). The final document result is served
by the API itself, and can be publicly accessed at `/docs`.

![API Documentation](./static/api_docs.png)

Live documentation is hosted in <https://api.contigosanmarcos.com/docs>.
Binary file added docs/static/api_docs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f879776

Please sign in to comment.