Skip to content

Conversation

@Alihassanc5
Copy link
Collaborator

@Alihassanc5 Alihassanc5 commented Mar 10, 2023

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

@Alihassanc5 Alihassanc5 marked this pull request as ready for review March 10, 2023 10:57
@cbunicef
Copy link
Collaborator

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.

@Alihassanc5 Alihassanc5 marked this pull request as draft March 13, 2023 11:35
@Alihassanc5 Alihassanc5 marked this pull request as ready for review March 14, 2023 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make API URLs more easily accessible

2 participants