Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to document cnd's HTTP API #38

Merged
merged 20 commits into from
Sep 3, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Embrace manual documentation to take control
  • Loading branch information
luckysori committed Sep 3, 2019
commit 505f80ff0e4567f168212bb9b12f75e3f2e63dcc
7 changes: 4 additions & 3 deletions 0015-how-to-document-cnd-http-api.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,11 @@ There are https://apisyouwonthate.com/blog/solving-openapi-and-json-schema-diver

==== Recommendation ====

Unfortunately the tools aren't there yet to automatically produce the API specification from source code in Rust.
The tools aren't there yet to automatically produce the API specification from source code in Rust.
There seems to be some interest for this, so it may come in the future.
For the time being, we will have to write it ourselves.
Fortunately, this specification will be <<test-specification,tested>> and we can use tools such as https://speccy.io/[speccy] to validate it.
This may not actually be a problem, since we want to have control over what we show in the specification, in order to motivate the correct use of our REST API from application developers.
To this end, endpoints such as the ones related to actions will probably not be publicly documented.
Additionally, this specification will be <<test-specification,tested>> and we can use tools such as https://speccy.io/[speccy] to validate it.

=== How to visualise specification ===

Expand Down