Closed dearshrewdwit closed 1 year ago
This is taking a bit longer than anticipated, there are a lot of inconsistencies in the API spec
User, post, cohort and log are done and consistent now. The YAML isn't pretty.
What's left:
Responses should follow the structure:
{
"status": "string",
"data": {
"property1": "type",
...
}
}
See the existing responses for the ones I've cleaned up as a reference for how to include nested entities.
Some of the endpoints may not make sense on those left to complete, please make sure they make sense.
E.g. "Create cohort exercise":
Currently: /exercises/{id}/cohortExercises
That route can be removed with an optional cohortId
property added to the "Create exercise" route's request body
Command for compiling the YAML: npx redoc-cli build docs/openapi.yml -o docs/index.html
Conversation, Exercise and Comment left to do
The spec is riddled with inconsistencies and bad choices. Current work frozen pending the below actions:
Task https://github.com/boolean-uk/team-dev-server-template