Project

Profile

Help

Story #3473

Updated by amacdona@redhat.com over 3 years ago

Working on the Ansible plugin, I need to define a live api that can serve up galaxy metadata. I'm imagining for roles for example, this might live at "/api/v3/roles/" but I have some concerns obviously. Namely, is my url going to conflict with other plugins or pulpcore?

Add Possible solutions:

1. Have a plugin url router class which plugin writers use that automatically namespaces routes. If I want to define a "roles" endpoint, it automatically creates "/api/v3/plugin/ansible/roles" for me.
2. Just add
some documentation about how to define a url endpoint and advise plugin writers to namespace all their Live API routes to:

<pre>
routes.
v3/plugins/<plugin_type>/something/
</pre>
3. ???

Back