Skip to main content

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

2 comments

Log in to comment and vote

Comments2

  • Milan Kolar

    Team

    Thank you this is very valid point, that’s also been discussed internally quite a bit. We’ll evaluate and get back to you here.

    • Alain Xerri

      Hello !
      For this feature request, I would like to know how high in the roadmap it is ?