Custom endpoints should have a fixed url

Current situation :

Currently, paths to addon endpoints always contain the addon version, since all endpoints from all versions are always exposed.
Example : http:// myserverayon:5000/api/addons/my_addon/0.1.2/get-test-data/myProjectName

Problem :

If we code a custom endpoint, to be used by other departments, we can’t tell them it’s a moving target, they need a fixed url, as in usual REST APIs.
Because other departments can’t use self.version or similar, as the calls are done from other softwares.

Proposal

Please provide a “production" placeholder, that would replace the version.
Example : /api/addons/my_addon/production/my_endpoint

Context :

It is also discussed here :

https://github.com/ynput/ayon-backend/issues/494

Affects
-

Please authenticate to join the conversation.

Upvoters
Status

In Review

Board
💡

Feature requests

Tags

Community

Author

Alain Xerri

Subscribe to post

Get notified by email when there are changes.