unicef / iogt

BSD 2-Clause "Simplified" License
25 stars 36 forks source link

Refactor questionnaire API URLs #1572

Open Alihassanc5 opened 1 year ago

Alihassanc5 commented 1 year ago

Closes #1474

When a user requests a resource that is not found, a 404 status code is returned along with a plain text message that includes the URL to the API documentation. This allows users to easily access the documentation to learn more about the available API resources.

image

image

image

cbunicef commented 1 year ago

I'm just noting based on your image - the base URL for the api is /api not /en/api.

If a user goes to /en/api/docss/ they should get a normal IoGT 404 page. If they go to /api/docss/ they should get the API-specific 404 page.