Thanks for the real quick reply, Ketan

Changing v2 -> v4 worked for /go/api/agents, but not for /go/api/users (the 
same resource not found error). Am I missing something here?



I would like to suggest to make the message useful - rather than 'resource 
not found', 'unsupported version' or 'resource not found due to unsupported 
version header - currently supported versions - (list of versions)', etc. 
Also, some warning messages to log files?


Thanks again


- J





On Thursday, June 15, 2017 at 3:45:04 PM UTC+10, Ketan Padegaonkar wrote:
>
> On Thu, Jun 15, 2017 at 11:13 AM <[email protected] 
> <javascript:>> wrote:
>
>> Go Version: 17.5.0 (5095-3130b5ba96f8155ae86fefb261a559d4c7493326).
>>
>> curl -u "<user>:<pass>" -H 'Accept: application/vnd.go.cd.v2+json' -H 
>> 'Content-Type: application/vnd.go.cd.v2+json; charset=utf-8' 
>> http://localhost:8153/go/api/agents    
>> =>
>> {
>>   "message": "The resource you requested was not found!"
>> }
>>
>
> Version v2 of the API has been removed as 17.5.0. Please check the API 
> docs <https://api.gocd.org/current/#agents> for the correct version 
> header you need should specify. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to