ansible-runner-service icon indicating copy to clipboard operation
ansible-runner-service copied to clipboard

Add new API endpoints to manage playbooks

Open jmolmo opened this issue 5 years ago • 0 comments

Provide the capability of adding new playbooks to the "project" folder using the REST API directly .

Now we have an endpoint for listing Playbooks: GET /api/v1/playbooks

Probably It will be needed to add a new endpoint for playbooks management

/api/v1/project/playbooks

with the following operations:

GET .../api/v1/project/playbooks Retuns a list of available playbooks ( Move this from the current end-point "/api/v1/project/playbooks"

POST .../api/v1/project/playbooks/<new_playbook> Use the http request payload to store the content of the playbook <new_playbook>. Creates the file <new_playbook> with the content stored in http payload in the projects folder.

DELETE .../api/v1/project/playbooks/<playbook> Delete the file from the project folder

jmolmo avatar Jun 12 '19 08:06 jmolmo