Total Pageviews

Monday, October 21, 2019

REST API Calls error {"code":501,"reason":"Not Implemented","message":"Not Implemented"} and solutions openam 6.5


getting error while running below command

curl \
> --request POST \
> --header "Content-Type: application/json" \
> --header "X-OpenAM-Username: demo" \
> --header "X-OpenAM-Password: changeit" \
> --data "{}" \
> http://avantastech.com:8080/openam/json/realms/root/authenticate



{"code":501,"reason":"Not Implemented","message":"Not Implemented"}

Solution:


I have included Version information in the curl command


curl \
> --request POST \
> --header "Content-Type: application/json" \
> --header "X-OpenAM-Username: demo" \
> --header "X-OpenAM-Password: changeit" \
> --header "Accept-API-Version: resource=2.0, protocol=1.0" \
> --data "{}" \
> http://avantastech.com:8080/openam/json/realms/root/authenticate



No comments:

Post a Comment