Skip to content

API Docs

이승민 edited this page Apr 2, 2024 · 3 revisions

API Documentation

  • Favorite Host http://43.201.78.161:8080/

Endpoints

1. Get All Favorite

- 게임 시작시 사진 16개 전송

- gameId 생략 가능 -> 새로고침시 예외처리

  • Endpoint: /favorite/all/{userId}?gameId=
  • Method: GET
  • Request: None
  • Response:
    • gameId: UUID (unique)
    • favoriteId: UUID (unique)
    • favoriteImage: String (url)
    • favoriteTitle: String
  • Response Example:
[
   {
      "gameId": "f84d08e0-96d2-4f32-9a51-04144248e202",
      "favoriteList":  [
          {
              "favoriteId": "f84d08e0-96d2-4f32-9a51-04144248e202",
              "favoriteImage": "https://cdn.pixabay.com/photo/2016/03/31/19/58/avatar-1295429_960_720.png",
              "favoriteTitle": "메롱 고양이"
          },
          {
              "favoriteId": "f84d08e0-96d2-4f32-9a51-04144248e202",
              "favoriteImage": "https://cdn.pixabay.com/photo/2016/03/31/19/58/avatar-1295429_960_720.png",
              "favoriteTitle": "성준 고양이"
          }
     ]
  }
]

Clone this wiki locally