Description of the current situation
Right now, anyone trying to work with the front-end part will have to annoy the back guys or know clojure and the back-end project itself just to know the endpoints and responses
Description of the wanted situation
A Documentation page/s of the endpoints, http methods that accepts and the possible responses and a brief description if it's not evident
A good API should indicate:
What endpoints the API responds to (POST /games/, GET /games/:game-id/player/:player-id, etc.)
The accepted formats for the request
The response format
All formats should be annotated with the types of the data, as well as conditions that need to hold.
However, if we truly implement Pact, the Contract will be the best documentation, and we might even be able to just generate the documentation from there.
Description of the current situation Right now, anyone trying to work with the front-end part will have to annoy the back guys or know clojure and the back-end project itself just to know the endpoints and responses
Description of the wanted situation A Documentation page/s of the endpoints, http methods that accepts and the possible responses and a brief description if it's not evident
A good API should indicate:
All formats should be annotated with the types of the data, as well as conditions that need to hold.
However, if we truly implement Pact, the Contract will be the best documentation, and we might even be able to just generate the documentation from there.