문서 검색 API

GET /documents/search?generation=기수&boostcamp_id=캠퍼번호&name=이름&content=내용의일부분(최소 2자)&offset=페이지오프셋&limit=결과최대개수

예외) 마스터 분들은

generation=0

boostcamp_id='master' 로 한다.

name='이름'

성공시 Response body

{
	"result": [
		{
			"generation": 6,
			"boostcamp_id": "J045",
			"name": "김웅일",
			"content": "~~~~~"
		},
		{
			"generation": 3,
			"boostcamp_id": "J121",
			"name": "김웅일",
			"content": "~~~~~"
		},
		...
	],
	"msg": "" // 성공 사유
}

실패시 Response body

header 상태코드 404로 바꿔줄 것

{
	"result": [],
	"msg": "" // 실패 사유
}

문서 열람 API

GET /documents/?generation=기수&boostcamp_id=캠퍼번호&name=이름

Response body

{
	"result": {
		"generation": Number,
		"boostcamp_id": String,
		"name": String,
		"content": String,
		"nickname": String,
		"location": String,
		"language": String,
		"user_image": String,
		"mbti": String,
		"field": String,
		"link": String,
		"user_id": String
	},
	"msg": ""
}