Skip to content
This repository has been archived by the owner on Mar 23, 2021. It is now read-only.

API documentation #33

Closed
D4nte opened this issue May 11, 2018 · 5 comments
Closed

API documentation #33

D4nte opened this issue May 11, 2018 · 5 comments
Labels
⚗️ spike A time-boxed investigation with the primary goal of gaining knowledge

Comments

@D4nte
Copy link
Contributor

D4nte commented May 11, 2018

Create API documentation (Thomas mentioned OpenAPI) for each service. Need to be close to the code to avoid deprecation (in code? File at root?)

@thomaseizinger
Copy link
Contributor

Ideally, we would have some form of contract tests. I will gather a few resources around that.

@thomaseizinger thomaseizinger added the ⚗️ spike A time-boxed investigation with the primary goal of gaining knowledge label May 12, 2018
@thomaseizinger
Copy link
Contributor

My vision would be that at some point our APIs are documented using JSON hyperschema (https://blog.apisyouwonthate.com/getting-started-with-json-hyper-schema-184775b91f).

That is a specification that allows to describe (proper) REST APIs (with hypermedia and stuff).

I think for now, we are also fine with using OpenAPI (version 3). OpenAPI takes a more procedural approach that defines all the paths instead of relying on links. There is quite an ecosystem around OpenAPI.

Here is what I imagine:

  • API description file in the root of each service (contracts)
  • A tool to generate stubs from these contracts (so that we don't have to write the fake services ourselves)
  • A tool that generates human-readable documentation from these contracts

@D4nte D4nte added this to the TenX-Handover milestone Jun 13, 2018
@thomaseizinger thomaseizinger removed this from the TenX-Handover milestone Sep 27, 2018
@LLFourn
Copy link
Collaborator

LLFourn commented Dec 8, 2018

"open source" added to force discussion

@D4nte
Copy link
Contributor Author

D4nte commented Dec 10, 2018

IMHO: Not needed for opensource.

@D4nte
Copy link
Contributor Author

D4nte commented Feb 3, 2019

To do once people start asking about how they can write their own application.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
⚗️ spike A time-boxed investigation with the primary goal of gaining knowledge
Projects
None yet
Development

No branches or pull requests

4 participants