게시물 읽기
해당 id를 가진 포트폴리오 페이지의 게시물 하나를 불러오는 API입니다
Last updated
Was this helpful?
해당 id를 가진 포트폴리오 페이지의 게시물 하나를 불러오는 API입니다
Last updated
Was this helpful?
Was this helpful?
GET
/portfolios/:id
id: 포트폴리오 페이지의 읽으려는 게시물 고유 id
id: 게시물 고유 id (number)
title: 게시물 제목 (string)
content: 게시물 내용 (string)
category: 카테고리 (string)
recruitmentField: 구인분야 (string)
region: 지역 (string)
portfolioTags: 포트폴리오 태그 (tag 배열)
tag
id: 태그 id (number)
images: 포트폴리오 이미지 (image 배열)
image
id: 이미지 id (number)
createdDate: 게시물 작성 날짜 (string / DATETIME)
modifiedDate: 게시물 수정 날짜 (string / DATETIME)
user: 게시물 작성자 정보(object)
id: 게시물 작성자의 데이터베이스에 저장된 고유 id (number)
email: 게시물 작성자의 이메일 (string)
username: 작성자 이름 (string)
viewNum: 조회수 (number)
commentsNum: 댓글 수 (number)
comments :
comment
createdDate: 댓글 작성 날짜 (string / DATETIME)
HTTP Status code : 200 OK
{
"id": 123,
"title": "example",
"content": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur sit.",
"category": "게임",
"recruitmentField": "기획",
"portfolioTags": [
{
"id": 1,
"tagName": "포토샵"
},
{
"id": 3,
"tagName": "피그마"
}
],
"images": [
{
"id": 1,
"image": "image uri"
},
{
"id": 3,
"image": "uri2"
}
],
"createdDate": "2021-01-07T14:49:52",
"modifiedDate": "2021-01-08T14:05:43",
"user": {
"id": 2,
"email": "example@gmail.com",
"username": "홍길동",
"image": "https://example/photo.jpg"
},
"viewNum": 15,
"commentsNum": 2,
"comments": [
{
"id": 26,
"content": "comment example",
"createdDate": "2021-01-08T17:04:01",
"modifiedDate": "2021-01-08T17:04:10",
"user": {
"id": 12,
"username": "이화연",
"email": "example2@ewhain.net",
"image": "https://example2/photo.jpg",
}
},
{
"id": 27,
"content": "comment example2",
"createdDate": "2021-01-08T19:04:01",
"modifiedDate": "2021-01-08T20:24:10",
"user": {
"id": 12,
"email": "example2@ewhain.net",
"username": "이화연",
"image": "https://example2/photo.jpg",
}
}
]
}
HTTP Status code : 400 Bad Request
{
"status": 400,
"message": "존재하지 않는 계정입니다. "
}
{
"status": 400,
"message": "존재하지 않는 포트폴리오입니다. "
}
name
type
description
status
number
HTTP status code(에러 상황에 따라 변할 수 있습니다. )
message
string
에러 메시지(메시지 내용은 에러 상황에 따라 변할 수 있습니다. )
image: 작성자 프로필 사진 (이미지 링크 string or base64 encoded string / BLOB)
id: 댓글 고유 id (number)
content: 댓글 내용 (string)
user: 게시물 작성자 정보(object)
id: 댓글 작성자의 데이터베이스에 저장된 고유 id (number)
email: 댓글 작성자의 이메일 (string)
username: 댓글 작성자 이름 (string)
image: 댓글 작성자 프로필 사진 (이미지 링크 URI string)