hirodesu85 / GIFTech2024_backend

0 stars 0 forks source link

行き先到着APIの作成(モック) #7

Closed Yoshino-Yukitaro closed 5 months ago

Yoshino-Yukitaro commented 5 months ago

行き先到着API

行き先に到着したという情報の送信と報酬の受け渡しのAPI 髪型とかのアイテムと好感度の数値がレスポンス(好感度は反映後のもの)

URL

POST /api/places/arrive

レスポンス

形式はJSON

{
  "item": {
      "id": 123456,
      "category": "hairs",
      "name": "エメラルドグリーンのツインテール",
      "image_url": "https://sample.no.url.desu"
    },
  "rank": 5,
  "until_next_rank": 10084,
  "get_rank_point": 100
}

リクエスト

形式はJSON

{
  "place_id": "asdfghjkl",
  "distance": "near"
}