Created by Wang, Jerry on May 09, 2016
find your Yaas client id here:
and client id and client secret could be found here:
Perform get test:
response header:
And response body is the document sample data we created using post in previous step:
Error while creating Test Project. Re-try incomplete steps.
Client ID
rgyxGFJAEY8S7KmdKgwFDP3qjnbANGzh
Client Secret
yVwvXQ1UJkFCI2pJ
就是tenant:Identifier
wishlistjerry
Ÿ前面的记录中hybris.tenant为internaltest,访问Document的Scope为hybris.document_view hybris.document_manage,ClientID为H2mDTJ4wH7MK2YP5ntoff9dLn59eI9X1, Client-Secret为15VFGiO6TyXoMCkO,grant_type为client_credentials。填写完毕后点击Post.
hybris.document_view hybris.document_manage hybris.tenant=wishlistjerry
{
"token_type": "Bearer",
"access_token": "020-8c0a4050-c662-4d85-b5fd-e1ac5fe996d2",
"expires_in": 3600,
"scope": "hybris.document_view hybris.document_manage hybris.tenant=wishlistjerry"
}
client:wishlistjerry.wishlist
{
"link": "https://api.yaas.io/hybris/document/v1/wishlistjerry/wishlistjerry.wishlist/data/wishlist/572c6132ad5ed4001d7fecbf",
"id": "572c6132ad5ed4001d7fecbf"
}
{
"kind": {
"pl-pl": "pies",
"en": "dog"
},
"name": "Astro"
}
要获取更多Jerry的原创文章,请关注公众号"汪子熙":