Hi,
If I
# curl --user admin:changeme -H "Content-Type:application/json" -k
https://katelloserver/foreman_tasks/api/tasks/3574500b-0394-4a94-9f86-8ff1890ceadb
I get the expected response back. But if I send the request to V2 of the
api as follows
# curl --user sledge:hammer -H "Content-Type:application/json" -k
https://ind2q00katello01.qa.local/foreman_tasks/api/V2
/tasks/3574500b-0394-4a94-9f86-8ff1890ceadb
OR
# curl --user sledge:hammer -H "Content-Type:application/json" -H
"Accept:application/json,version=2" -k
https://ind2q00katello01.qa.local/foreman_tasks/api/tasks/3574500b-0394-4a94-9f86-8ff1890ceadb
I basically get a 404 resource not found error.
Installed foreman_tasks core package is on 0.1.4 and foreman_tasks package
is on 0.9.4.
Any suggestions, what I am missing here? Thanks in advance.
I think this is a character-case issue - it's v2 not V2. I can
replicate the 404 using V2.
Greg
···
On Mon, 2017-10-16 at 22:15 -0700, rajesh.erasani@gmail.com wrote:
> # curl --user sledge:hammer -H "Content-Type:application/json" -k htt
> ps://ind2q00katello01.qa.local/foreman_tasks/api/V2/tasks/3574500b-
> 0394-4a94-9f86-8ff1890ceadb
Hello,
as far as I know there is no v1 API for foreman-tasks. So the one you're
reaching with the first curl is actually the v2. I agree it is not
intuitive to have v2 api at the regular /api endpoint, but that's the way
it is.
– Adam
···
On Tue, Oct 17, 2017 at 7:15 AM, wrote:
Hi,
If I
# curl --user admin:changeme -H “Content-Type:application/json” -k
https://katelloserver/foreman_tasks/api/tasks/3574500b-0394-
4a94-9f86-8ff1890ceadb
I get the expected response back. But if I send the request to V2 of the
api as follows
# curl --user sledge:hammer -H “Content-Type:application/json” -k
https://ind2q00katello01.qa.local/foreman_tasks/api/V2/
tasks/3574500b-0394-4a94-9f86-8ff1890ceadb
OR
# curl --user sledge:hammer -H “Content-Type:application/json” -H
"Accept:application/json,version=2" -k https://ind2q00katello01.qa.
local/foreman_tasks/api/tasks/3574500b-0394-4a94-9f86-8ff1890ceadb
I basically get a 404 resource not found error.
Installed foreman_tasks core package is on 0.1.4 and foreman_tasks package
is on 0.9.4.
Any suggestions, what I am missing here? Thanks in advance.
–
You received this message because you are subscribed to the Google Groups
"foreman-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Tried lower cased v2 as well. Still the same.