Skip to content

문장 올리기

Haely edited this page Jul 10, 2020 · 8 revisions

문장 올리기 (/post/sentence)

Screen Shot 2020-07-10 at 9 47 41 PM

Request

URL

[POST] ~/post/sentence

Header

메소드 파라미터 설명
Content-Type application/json

Body

변수 타입 설명
curatorIdx Int 현재 사용자 idx
sentence String 작성할 문장
title String 작성할 문장이 속한 책 제목
author String 작성할 문장이 속한 책의 저자
publisher String 작성할 문장이 속한 책 출판사
{
    "curatorIdx":1,
    "sentence":"올라가랏",
    "title":"",
    "author":"몽글",
    "publisher":"솝트미디어"
}

Response

SUCCESS

{
    "status": 200,
    "success": true,
    "message": "문장 올리기 성공"
}

FAIL : body 값이 없는 경우

{
    "status": 400,
    "success": false,
    "message": "필요한 값이 없습니다"
}

FAIL : 서버 내부 에러의 경우

{
    "status": 600,
    "success": false,
    "message": "서버 내부 오류"
}
Clone this wiki locally