pickmeup-api
  • 픽미업 API 문서
  • projects
    • 게시물
      • 게시물 생성
      • 게시물 읽기
      • 게시물 수정
      • 게시물 이미지 수정
      • 게시물 삭제
      • 게시물 이미지 삭제
      • 게시물 목록 불러오기
    • 댓글
      • 댓글 생성
      • 댓글 읽기
      • 댓글 수정
      • 댓글 삭제
  • portfolios
    • 게시물
      • 게시물 생성
      • 게시물 읽기
      • 게시물 이미지 추가
      • 게시물 수정
      • 게시물 이미지 수정
      • 게시물 삭제
      • 게시물 이미지 삭제
      • 게시물 목록 불러오기
    • 댓글
      • 댓글 생성
      • 댓글 읽기
      • 댓글 수정
      • 댓글 삭제
  • login
    • 로그인
  • users
    • 유저 정보 불러오기
    • 유저 프로필 이미지 수정하기
    • 유저 프로필 이미지 삭제하기
    • 유저 정보 수정하기
    • 유저의 프로젝트 게시물 불러오기
    • 유저의 포트폴리오 게시물 불러오기
  • tags
    • HOT한 태그 불러오기
Powered by GitBook
On this page
  • METHOD
  • URL
  • RESPONSE
  • RESPONSE EXAMPLE
  • success
  • fail

Was this helpful?

  1. users

유저 정보 불러오기

특정 사용자의 정보를 불러오는 API입니다

Previous로그인Next유저 프로필 이미지 수정하기

Last updated 4 years ago

Was this helpful?

METHOD

GET

URL

/users/:id
  • id: 유저 정보를 불러올 유저의 픽미업 DB에서의 고유 id

RESPONSE

이나 의 REQUEST BODY와는 다르게 유저 정보 RESPONSE BODY에서는 사용자 정보 공개 여부 boolen값들의 필드명에 is가 빠져있습니다.

name

type

description

email

string

사용자 이메일

username

string

사용자 이름

image

string(URI)

사용자 프로필 이미지 경로

introduce

string

사용자 간단 자기 소개

birth

date (yyyy-MM-dd 형식)

사용자 생년월일

university

string

사용자 대학교

major

string

사용자 전공

region

string

사용자 활동 지역

interests

string

사용자 관심분야

birthPublic

boolean

사용자 생년월일 공개 여부

universityPublic

boolean

사용자 대학 공개 여부

regionPublic

boolean

사용자 활동 지역 공개 여부

interestsPublic

boolean

사용자 관심 분야 공개 여부

RESPONSE EXAMPLE

success

HTTP Status code: 200 OK

{
    "email": "example2@gmail.com",
    "username": "화연",
    "image": "",
    "introduce": "안녕하세요!",
    "birth": "2020-01-01",
    "university": "이화여자대학교",
    "major": null,
    "region": "부산",
    "interests": null,
    "birthPublic": true,
    "universityPublic": true,
    "regionPublic": false,
    "interestsPublic": false
}

fail

HTTP Status code: 400 Bad Request

{
     "status": 400,
     "message": "존재하지 않는 계정입니다. "
 }

name

type

description

status

number

HTTP status code(에러 상황에 따라 변할 수 있습니다. )

message

string

에러 메시지(메시지 내용은 에러 상황에 따라 변할 수 있습니다. )

로그인
유저 정보 수정하기