- POST /
- GET /count
- GET /rule
- GET /rule/web
- GET /list/{type}
- GET /list/{type}/admin
- DELETE /{id}
- PATCH /{id}
- PATCH /{id}/status
피드를 생성합니다.
만약 로그인이 되어있다면 verify 요소가 필요하지않습니다.
{
"title": "타이틀입니다",
"content": "내용입니다.",
"tag": "태그입니다.",
"verify": { "id": "e092fce6-4982-4c1d-a5eb-b94b289b733a", "answer": "#softmeister01" }
}base response
JL003
JL011
게시물 갯수 조회 값이 없는 타입은 안나타날 수도 있음
[
{ status: 'PENDING', count: '11' }
{ status: 'ACCEPTED', count: '11' }
{ status: 'REJECTED', count: '11' }
{ status: 'REPORTED', count: '11' }
]join rule
{
"content" : "규칙 복붙",
"bold13" : ["폰트15 1", "폰트 15 2", ...],
"bold15" : ["폰트18 1", "폰트 18 2", ...]
}join rule of web
[
{
_id: 1,
title: "제 1조 목적",
content:
"본 규칙은 광주소프트웨어마이스터고등학교 대나무숲 규칙으로, 대나무숲의 투명한 운영 및 익명성 보장을 목적으로 한다.",
},
{
_id: 2,
title: "제 2조 게시글 게시에 관한 규칙",
content: "",
subContent: [
{
_id: 1,
title: "제 1항",
content:
"다음과 같은 게시물의 경우 반려 처리가 되거나, 삭제가 될 수 있다.",
subContent: [
{
_id: 1,
title: "1호",
content: "다른 사용자에게 불편함을 줄 수 있는 경우",
subContent: [
{
.
.
.token 선택적
type으로는 cursor, page
원천적으로 cursor는 웹을 위해, page는 Android, iOS 를 위해
cursor라면 criteria는 cursor로 생각해서 연결하면되고
page라면 page로 생각해서 연결하면됨
ex : 맨 첫 조회 값 /page?count=10&criteria=1 /cursor?count=10&criteria=0
- cursor로 조회시 hasNext 및 nextCursor 프로퍼티 추가
?count=10&criteria=1
&sort=leaf
&sort=created
&direction=DESC
&direction=ASC
{
"data": [
{
"idx": 27,
"algorithmNumber": 1,
"title": "Joog-lim ",
"content": "Joog-lim() !\n~~",
"tag": "",
"reason":"",
"createdAt": "2021-09-22T17:41:00.457Z",
"emojis": [],
"isClicked": false,
"emojiCount": 0
}
],
"status": "ACCEPTED"
}token 선택적
type으로는 cursor, page
원천적으로 cursor는 웹을 위해, page는 Android, iOS 를 위해
cursor라면 criteria는 cursor로 생각해서 연결하면되고
page라면 page로 생각해서 연결하면됨
ex : 맨 첫 조회 값 /page?count=10&criteria=1 /cursor?count=10&criteria=0
- cursor로 조회시 hasNext 및 nextCursor 프로퍼티 추가
?count=10&criteria=1&status=PENDING
&sort=leaf
&sort=created
&direction=DESC
&direction=ASC
- status
| "PENDING" | "ACCEPTED" | "REJECTED" | "REPORTED"
{
"data": [
{
"idx": 27,
"algorithmNumber": 1,
"title": "Joog-lim ",
"content": "Joog-lim() !\n~~",
"tag": "",
"reason" : "",
"createdAt": "2021-09-22T17:41:00.457Z",
"emojis": [],
"isClicked": false,
"emojiCount": 0
}
],
"status": "ACCEPTED"
}게시물 삭제
id값은 게시물 고유 idx값임 ACCEPTED값만 삭제 가능 only Admin
게시물 수정
id값은 게시물 고유 idx값임
only Admin
/{id}
{
"title" : "ASDF",
"content" : "asdfsdf",
}게시물 상태 수정
id값은 게시물 고유 idx값임
optional token 신고 제외 모두 어드민이여야함
AlgorithmStatusType : "ACCEPTED" | "REJECTED" | "REPORTED”
{
"status" : AlgorithmStatusType,
"reason": "그냥 하기싫어서요"
}