<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Cloud Foundry API access from Postman in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/cloud-foundry-api-access-from-postman/qaa-p/12800048#M4806092</link>
    <description>&lt;P&gt;Thanks Jwan for that. yes, I already tried that with the token service URL but I am not sure what will be the client id and client secret to be passed as I am using SSO.&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jul 2023 14:56:09 GMT</pubDate>
    <dc:creator>souvikroy</dc:creator>
    <dc:date>2023-07-26T14:56:09Z</dc:date>
    <item>
      <title>Cloud Foundry API access from Postman</title>
      <link>https://community.sap.com/t5/technology-q-a/cloud-foundry-api-access-from-postman/qaq-p/12800046</link>
      <description>&lt;P&gt;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.&lt;/P&gt;
  &lt;P&gt;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.&lt;/P&gt;
  &lt;P&gt;API documentation : &lt;A href="https://apidocs.cloudfoundry.org/2.1.0/spaces/list_all_spaces.html" target="test_blank"&gt;https://apidocs.cloudfoundry.org/2.1.0/spaces/list_all_spaces.html&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;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?&lt;/P&gt;
  &lt;P&gt;We use custom IDP and SSO to login to cloud foundry. From CF CLI, I am easily able to login to space.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 02:51:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cloud-foundry-api-access-from-postman/qaq-p/12800046</guid>
      <dc:creator>souvikroy</dc:creator>
      <dc:date>2023-07-26T02:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: Cloud Foundry API access from Postman</title>
      <link>https://community.sap.com/t5/technology-q-a/cloud-foundry-api-access-from-postman/qaa-p/12800047#M4806091</link>
      <description>&lt;P&gt;Hello Souvik, &lt;BR /&gt;&lt;BR /&gt;a hint to solve it: you need to send a GET request to the token service url. This url will output the bearer token, that gets generated &lt;/P&gt;&lt;P&gt;Test it and let me know &lt;BR /&gt;&lt;BR /&gt;BR&lt;BR /&gt;Jwan&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 06:37:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cloud-foundry-api-access-from-postman/qaa-p/12800047#M4806091</guid>
      <dc:creator>Jwan_24</dc:creator>
      <dc:date>2023-07-26T06:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: Cloud Foundry API access from Postman</title>
      <link>https://community.sap.com/t5/technology-q-a/cloud-foundry-api-access-from-postman/qaa-p/12800048#M4806092</link>
      <description>&lt;P&gt;Thanks Jwan for that. yes, I already tried that with the token service URL but I am not sure what will be the client id and client secret to be passed as I am using SSO.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 14:56:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cloud-foundry-api-access-from-postman/qaa-p/12800048#M4806092</guid>
      <dc:creator>souvikroy</dc:creator>
      <dc:date>2023-07-26T14:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: Cloud Foundry API access from Postman</title>
      <link>https://community.sap.com/t5/technology-q-a/cloud-foundry-api-access-from-postman/qaa-p/12800049#M4806093</link>
      <description>&lt;P&gt;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 &amp;lt;api&amp;gt;' . &lt;/P&gt;&lt;P&gt;If you want your application to access the api, you will have to do what is done&lt;A href="https://youtu.be/Udrd87b6Mh8?t=75"&gt; here&lt;/A&gt; in the HANA Academy video where routes are created automatically using cf apis. This is a good sample of how to do it. &lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 15:28:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cloud-foundry-api-access-from-postman/qaa-p/12800049#M4806093</guid>
      <dc:creator>Dinu</dc:creator>
      <dc:date>2023-07-26T15:28:00Z</dc:date>
    </item>
  </channel>
</rss>

