-
Notifications
You must be signed in to change notification settings - Fork 0
✔신고접수
Jeong-Hyowon edited this page Jun 18, 2021
·
1 revision
| 메소드 | 경로 | 설명 |
|---|---|---|
| POST | /posts/declaration/{postIdx} | 신고 접수 |
{
"Content-Type": "application/json",
"token" : "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJTQU5HTEUiLCJ1c2VySWR4IjoyMiwiZXhwIjoxNjA0MjExOTYzfQ.xUkHeX8NKa8GW2L_PX7-lyHoT2-eSSIvg2LrZ395vlI"
}{
"content" : "욕설"
}- content: 신고내용
- 신고 접수 되었을 때
{
"postIdx": 12,
"userIdx": 51,
"isBanned": false,
"adminMemo": "신고가 접수되었습니다."
}- 신고 중복 처리되었을 때
{
"postIdx": 12,
"userIdx": 51,
"isBanned": true,
"adminMemo": "이미 해당 포스트를 신고했습니다."
}- isBanned: 숨김 처리 여부
- 데이터 누락 (400)
{
"data": null
}- 작성할 권한 없음 (401)
{
"data": null
}- 데이터베이스 에러 (600)
{
"data": null
}- 서버 내부 에러 (500)
{
"data": null
}- 메소드 에러 (405)
- 경로 에러 (404 or 400)