My Yaas ID used in 2016-05-06

94 阅读1分钟

Created by Wang, Jerry on May 09, 2016

find your Yaas client id here:

clipboard1

and client id and client secret could be found here:

clipboard2

Perform get test:

clipboard3

response header:

clipboard4

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

clipboard5

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.

clipboard6

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

clipboard7

{
    "link": "https://api.yaas.io/hybris/document/v1/wishlistjerry/wishlistjerry.wishlist/data/wishlist/572c6132ad5ed4001d7fecbf",
    "id": "572c6132ad5ed4001d7fecbf"
}
{
    "kind": {
        "pl-pl": "pies",
        "en": "dog"
    },
    "name": "Astro"
}

clipboard8
clipboard9

要获取更多Jerry的原创文章,请关注公众号"汪子熙":
公众号截图