You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
Cannot use 2 different API resources with same last URL template values. When invoking the 2nd API resource, will receive 404 response code.
Steps to reproduce:
You can reproduce the issue by using the below code segment.
The text was updated successfully, but these errors were encountered:
Sumudu-Sahan
changed the title
Cannot add 2 API resources with same UR Template - 404 Error
Cannot add 2 API resources with same URL Template - 404 Error
Mar 1, 2021
Sumudu-Sahan
changed the title
Cannot add 2 API resources with same URL Template - 404 Error
Cannot add 2 different API resources with same end URL Template - 404 Error
Mar 1, 2021
chamil321
changed the title
Cannot add 2 different API resources with same end URL Template - 404 Error
[Dispatching]Cannot add 2 different API resources with same end URL Template - 404 Error
Jun 4, 2021
Suggested solution might help to understand the behaviour when fixing the issue. Hence.
These are the three main resources of the API which are subjected to the fore-mentioned issue.
notebook/{id}
notebook/{notebookId}/entry/{id}
/notebook/{notebookId}/entry/{notebookEntryId}/content/{id}
Here, the id parameter has three separate meanings across the three resources. What we have to suggest is to make it consistent such that the same parameter does not have various meanings. And that is the best practice to follow when writing an API (even though it is not governed by the openapi spec). This approach can be used until this issue is fixed. In that case, the resources would look like this.
notebook/{notebookId}
notebook/{notebookId}/entry/{notebookEntryId}
/notebook/{notebookId}/entry/{notebookEntryId}/content/{id}
Description:
Cannot use 2 different API resources with same last URL template values. When invoking the 2nd API resource, will receive 404 response code.
Steps to reproduce:
You can reproduce the issue by using the below code segment.
The text was updated successfully, but these errors were encountered: