Skip to content

リクエスト認証とサンプル

sho edited this page Jan 15, 2019 · 2 revisions

認証

sign_in

endpoint: base_url/api/v1/auth/sign_in POST body:

{
  "email": "[email protected]",
  "password": "3lkh4jg0dfkj345hl23"
}

以降つけるheader

  • access-token
  • client
  • uid

sample

purchase reserve

endpoint: base_url/api/v1/purchase/reserve POST body:

[
  {
    "product_id": 1,
    "quantity":2
  },
  {
    "product_id": 2,
    "quantity": 1
  }
]

purchase create

endpoint: base_url/api/v1/purchase POST body:

{
  "purchase_id": 1,
  "idm": "456def"
}
Clone this wiki locally