Project

Profile

Help

Story #3473

Updated by daviddavis about 6 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? 

  

 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 routes. 
 3. ???

Back