Skip to content

How to cosume cf command line root api? #3054

Description

@daoshihaideba

Hi collueages, recently my team and I are searching the possibility of reusing the CF command line and develop it into a UI. And facing some issue.
Here is the questions:
How to get the data result from the root url of cf command line using postman?
For exmaple, the root url of my cf command line 'cf apps' is ' https://api.cf.eu10.hana.ondemand.com/v3/app'
Is there some way to get the response of the url using postman. If the authentication method if oauth2, where i can get the client id and client secret? Is there a restful api document relative to it?
Thank you in advance

image

Activity

  1. philippthun commented on Nov 9, 2022

    @philippthun
    Member

    Please have a look at https://v3-apidocs.cloudfoundry.org/version/3.127.0/index.html#authentication

    For example, you can get a token with cf oauth-token and then send it in an HTTP header to the CF endpoint.

  2. locked and limited conversation to collaborators on Nov 9, 2022
  3. converted this issue into a discussion #3056 on Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions