-
Notifications
You must be signed in to change notification settings - Fork 0
Sample Common
Yuki Matsukura edited this page Aug 3, 2023
·
2 revisions
小売、メーカーどちらでも利用できるAPI
set host "https://development.tanomimaster.com"
set token REPLACE_WITH_YOUR_TOKEN
curl -s -H "Authorization: Token $token" "$host/api/v1/master/retails" | jq
curl -s -H "Authorization: Token $token" "$host/api/v1/master/retails/3ridxeh4s1" | jq
curl -s -H "Authorization: Token $token" "$host/api/v1/master/retails/3ridxeh4s1/retail_branches" | jq
curl -s -H "Authorization: Token $token" "$host/api/v1/master/retails/3ridxeh4s1/retail_branches/88709143c4f7623eb24ff94451" | jq
curl -s -H "Authorization: Token $token" "$host/api/v1/master/retails/3ridxeh4s1/retail_branches/88709143c4f7623eb24ff94451/retail_sales_offices" | jq
curl -s -H "Authorization: Token $token" "$host/api/v1/master/retails/3ridxeh4s1/retail_branches/88709143c4f7623eb24ff94451/retail_sales_offices/3d8836493014050fe80e8e963f" | jq
curl -s -H "Authorization: Token $token" "$host/api/v1/master/makers" | jq
curl -s -H "Authorization: Token $token" "$host/api/v1/master/makers/anedd1bup5" | jq
curl -s -H "Authorization: Token $token" "$host/api/v1/master/makers/anedd1bup5/maker_branches" | jq
curl -s -H "Authorization: Token $token" "$host/api/v1/master/makers/anedd1bup5/maker_branches/c6ef06fc9a7efd6045cf9e05c4" | jq
curl -s -H "Authorization: Token $token" "$host/api/v1/master/makers/anedd1bup5/maker_branches/c6ef06fc9a7efd6045cf9e05c4/maker_sales_offices" | jq
curl -s -H "Authorization: Token $token" "$host/api/v1/master/makers/anedd1bup5/maker_branches/c6ef06fc9a7efd6045cf9e05c4/maker_sales_offices/b69980937ff8da735504c690bc" | jq