call to get list apis returns a login page

When I try to use postman to call an api like this

curl -X GET \ https://server:port/v1/organizations/{orgName}/apis \ -H 'authorization: Basic aaksjdsak' \ -H 'cache-control: no-cache' \ -H 'content-type: application/x-www-form-urlencoded' \ -H 'postman-token: db6fd410-4a7e-91a2-a39e-7750e6a687fb'

It returns response as an html page with login details.

When I use the same url on a brower, It asks for the login page again and after entering the credentials, it returns the list.

I am trying to use the manaement apis to eventually deploy a proxy . But even the basic apis GET doesn't work.

https://community.apigee.com/questions/46294/error-while-using-maven-deploy-plugin-for-deployme.html

I raised this but it seems like both are stuck at the same place.

Solved Solved
0 1 1,010
1 ACCEPTED SOLUTION

HI @krupal patel - Please change the Content-Type header to application/json

View solution in original post

1 REPLY 1

HI @krupal patel - Please change the Content-Type header to application/json