hirodesu85 / GIFTech2024_backend

0 stars 0 forks source link

服を着るAPIの作成 #18

Closed ryichk closed 4 months ago

ryichk commented 4 months ago

APIの詳細

部位ごとのアイテムidを指定して設定している服装を変更するAPI

URL

PUT /api/beauty-girls/${id}/put-on

レスポンス

形式はJSON

{
  "hair": {
    "name": "エメラルドのツインテール",
    "image_url": "https://hoge.image.no.url.desu"
  },
  "shoes": {
    "name": "黒い靴",
    "image_url": "https://hoge.image.no.url.desu"
  },
  "bottoms": {
    "name": "ピンクのスカート",
    "image_url": "https://hoge.image.no.url.desu"
  },
  "tops": {
    "name": "甲冑",
    "image_url": "https://hoge.image.no.url.desu"
  },
}

リクエスト

形式はJSON

{
  "items": [
    {
      "category": "bottoms",
      "item_id": 123456
    },
    {
      "category": "tops"
      "item_id": 123456
    }
  ]
}
Yoshino-Yukitaro commented 4 months ago

📝 レスポンスから美少女の名前を削除しました