on ‎2023 Jul 26 3:51 AM
I need to access multiple cloud foundry APIs e.g. List all the spaces by . I am trying to call the API from Postman as I need to call the same API from a custom application.
I am able to access the cloud foundry info API with all details as it does not need the bearer token but wherever it needs bearer token, I am stuck.
API documentation : https://apidocs.cloudfoundry.org/2.1.0/spaces/list_all_spaces.html
But I am not able to authenticate the request from postman. How will I be able to generate the bearer token from Postman for the API listed above?
We use custom IDP and SSO to login to cloud foundry. From CF CLI, I am easily able to login to space.
Request clarification before answering.
The easiest way to generate a token for accessing the apis is using cf cli. Use the command 'cf oauth-token'. Easiest way to check out the cf appis is also using cf CLI with command 'cf curl <api>' .
If you want your application to access the api, you will have to do what is done here in the HANA Academy video where routes are created automatically using cf apis. This is a good sample of how to do it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 12 | |
| 9 | |
| 6 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.