Review of Digital Registries BB API documentation

This is a review of the version 1.0 that was last modified 4 months ago.

 

Structural problems:

  • Gitbook

    • there could be more descriptions of parameters/keys to understand their purpose/details

    • two endpoints are duplicated (/data/{registryname}/{versionnumber}/read and /data/{registryname}/{versionnumber})

  • Github 

    • too many files makes the API directory unclear

    • in Readme file it is stated that the standard is json, but it should be yaml

    • json files could be removed

    • /data/{registryname}/{versionnumber}/create is in Swagger but not in Gitbook

Discrepancies and missing info:

  • some parameters follow snake case and some camel case - it should be standardized [PR #54]

  • some endpoints are duplicated

  • one endpoint is only in Swagger

  • almost no error responses are described

API problems:

 

 

 

  • POST /data/{registryname}/{versionnumber}/create

    • it’s only in Swagger, not in Gitbook

    • no error case (example+schema)

Final conclusions:

  • Readme file should be updated

  • Files in API directory should be minimized (all endpoints should be in one file)

  • Parameters/keys in schemas could be better described (purpose/details)

  • Error responses should be added