On Tue, Mar 12, 2019 at 11:38:44AM +0100, Fabiano Ferronato wrote:
Hi Miloz, Thank you for answering!
Yes, the names are correct. I tried creating and using other names as well but the answer is always the same,
Not Found: /api/submitjob/fabsluggroup/fabproj/
Searching for projects I'm receiving this:
curl localhost:5000/api/projects/ {"count":2,"next":null,"previous":null,"results":[{"url":" http://localhost:5000/api/projects/2/%22,%22builds":" http://localhost:5000/api/projects/2/builds/ ","id":2,"full_name":"fabsluggroup/fabproj","slug":"fabproj","name":"fabprojname","is_public":true,"html_mail":true,"moderate_notifications":false,"description":"","important_metadata_keys":"","enabled_plugins_list":"['']","wait_before_notification":null,"notification_timeout":null,"data_retention_days":0,"project_settings":"","group":" http://localhost:5000/api/groups/2/%22,%22custom_email_template%22:null%7D,%...":" http://localhost:5000/api/projects/1/%22,%22builds":" http://localhost:5000/api/projects/1/builds/ ","id":1,"full_name":"group_slug/project_slug","slug":"project_slug","name":"project_slug","is_public":true,"html_mail":true,"moderate_notifications":false,"description":"","important_metadata_keys":"","enabled_plugins_list":"['']","wait_before_notification":null,"notification_timeout":null,"data_retention_days":0,"project_settings":"","group":" http://localhost:5000/api/groups/1/%22,%22custom_email_template%22:null%7D%5...
If I try just submitjob:
curl 0.0.0.0:5000/api/submitjob/
[2019-03-12 10:33:56 +0000] [WARNING] Not Found: /api/submitjob/
just /api/submitjob/ is not defined, you need to use the full URL to submit a job:
/api/submitjob/${group}/${project}/${build}/${environment}