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
Improve specification generation recommendations
  • Loading branch information
luckysori committed Sep 3, 2019
commit f5f117b1c68c3a8b1f336d1b531f5c92d6a7d445
5 changes: 3 additions & 2 deletions 0015-how-to-document-cnd-http-api.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,10 @@ There are https://apisyouwonthate.com/blog/solving-openapi-and-json-schema-diver

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.
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.
This may not actually be a problem, since we want to have control over what we show in the specification, in order to incentivise correct usage of the REST API by 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.

Additionally, we can use tools such as https://speccy.io/[speccy] and https://github.com/zalando/zally[Zally] to validate the specification.

=== How to visualise specification ===

Expand Down