Skip to content

Latest commit

 

History

History
64 lines (37 loc) · 1015 Bytes

[사용자] 유저 검색(미완성).md

File metadata and controls

64 lines (37 loc) · 1015 Bytes

유저 조회

재플린 기획 03_search_05_result_bj
  • URL

    /user/int:user_id

  • Method:

    | GET |

  • URL Params

    Required:

    N/A

    Optional:

    N/A

  • Data Params

    N/A

  • Success Response:

    • Code: 200
      Content:
          {
              "okay": true,
              "user": {
                  "id": 1,
                  "google_id": 1,
                  "name": "recordable542",
                  "google_picture": "https://lh4.googleusercontent.com/-ufC0a8TTdN4/AAAAAAAAAAI/AAAAAAAABjA/C6tCvQDtOe8/photo.jpg",
                  "followers": 0,
                  "hearts": 0,
                  "me": true
              }
          }
      자기 자신을 조회한 경우에는 me: true 가 붙으며, hearts 액수도 json 에 포함됩니다.
  • Error Response:

    • Code: 404 NOT_FOUND
      Content: { "okay": false, "msg" : "No User Found id #{}" }
  • Sample Call:

  • Notes: