Review of Consent BB API documentation

This is a review of the version that is still under development (but was supposed to be published on the 18th of September 2023).

 

Structural problems:

  • Gitbook

    • some endpoints weren’t generated from Swagger and “Oops, something is missing” panels are shown

    • some bodies of both requests and responses are missing

    • no error examples were provided, but should include not only the error code but also an error message and content-type

    • some endpoints that were listed in Gitbook aren’t in Swagger (and are not generated correctly in Gitbook)

  • Github

    • no problems

 

Discrepancies and missing info:

 

API problems:

 

 

 

  • GET /status/startup/

    • no such endpoint in Gitbook, but it’s in the Swagger

    • no parameters at all

    • no headers

    • no example of an error

    • no example of a request nor response bodies

  • GET /status/readiness/

    • no such endpoint in Gitbook, but it’s in the Swagger

    • no parameters at all

    • no headers

    • no example of an error

    • no example of a request nor response bodies

 

Final conclusions:

  • In Github, a Readme file is a great addition

  • In Github, CSVs with the data schema and endpoints details is a great addition, makes everything clear and understandable for non-technical stakeholders

  • The API was still not published and there are some endpoints with DRAFT label