Quantcast
Channel: SCN : Blog List - All Communities
Viewing all articles
Browse latest Browse all 2548

Test on Document service in YaaS platform

$
0
0

find your Yaas client id here:

clipboard1.png

and client id and client secret could be found here:

clipboard2.png

This will be used as tenant id:

clipboard3.png

Now you can get OAuth token here:


clipboard4.png

scope = hybris.document_view hybris.document_manage hybris.tenant=wishlistjerry

 

Then we can get access token from response:

 

 

{

 

    "token_type": "Bearer",

    "access_token": "020-8c0a4050-c662-4d85-b5fd-e1ac5fe996d2",

    "expires_in": 3600,

    "scope": "hybris.document_view hybris.document_manage hybris.tenant=wishlistjerry"

}

 

first create a new document via POST and its id would be found from creation result:

clipboard5.png

Perform get test. Note here the client is not the tenant id, but the client id: wishlistjerry.wishlist

clipboard6.png

response header:


clipboard7.png

And response body is the document sample data we created using post in previous step:

clipboard8.png


Viewing all articles
Browse latest Browse all 2548

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>