게시물 읽기

해당 id를 가진 프로젝트 페이지의 게시물 하나를 불러오는 API입니다

METHOD

GET

URL

/projects/:id
  • id: 프로젝트 페이지의 읽으려는 게시물 고유 id

RESPONSE

  • id: 게시물 고유 id (number)

  • title: 게시물 제목 (string)

  • content: 게시물 내용 (string)

  • category: 카테고리 (string)

  • recruitmentField: 구인분야 (string)

  • region: 지역 (string)

  • projectSection: 프로젝트 종류 (string)

  • projectTags: 프로젝트 태그 (tag 배열)

    • tag

      • id: 태그 id (number)

      • tagName: 태그 내용 (string)

  • image: 프로젝트 이미지 (이미지 링크 URI string)

  • createdDate: 게시물 작성 날짜 (string / DATETIME)

  • modifiedDate: 게시물 수정 날짜 (string / DATETIME)

  • user: 게시물 작성자 정보(object)

    • id: 게시물 작성자의 데이터베이스에 저장된 고유 id (number)

    • email: 게시물 작성자의 이메일 (string)

    • username: 작성자 이름 (string)

    • image: 작성자 프로필 사진 (이미지 링크 URI string)

  • viewNum: 조회수 (number)

  • commentsNum: 댓글 수 (number)

  • comments: 댓글 목록 (comment 배열)

    • comment

      • createdDate: 댓글 작성 날짜 (string / DATETIME)

      • modifiedDate: 댓글 수정 날짜 (string / DATETIME)

      • id: 댓글 고유 id (number)

      • content: 댓글 내용 (string)

      • user: 게시물 작성자 정보(object)

        • id: 댓글 작성자의 데이터베이스에 저장된 고유 id (number)

        • email: 댓글 작성자의 이메일 (string)

        • username: 댓글 작성자 이름 (string)

        • image: 댓글 작성자 프로필 사진 (이미지 링크 URI string)

RESPONSE EXAMPLE

success

HTTP Status code : 200 OK

fail

HTTP Status code : 400 Bad Request

name

type

description

status

number

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

message

string

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

Last updated

Was this helpful?