-
Notifications
You must be signed in to change notification settings - Fork 0
문장 올리기
Haely edited this page Nov 9, 2020
·
8 revisions
[POST] ~/post/sentence
메소드 | 파라미터 | 설명 |
---|---|---|
Content-Type | application/json | |
token | {token} | 토큰 |
변수 | 타입 | 설명 |
---|---|---|
sentence | String | 작성할 문장 |
title | String | 작성할 문장이 속한 책 제목 |
author | String | 작성할 문장이 속한 책의 저자 |
publisher | String | 작성할 문장이 속한 책 출판사 |
thumbnail | String | 작성할 문장이 속한 책 사진 |
themeIdx | Int | 선택한 테마의 idx(0 : 테마 없는 테마, 그외 : 해당 테마) |
{
"sentence" : "테마 없는 문장",
"title" : "책책책",
"author" : "작가작가",
"publisher" : "출판사출판사",
"thumbnail" : "https://search1.kakaocdn.net/thumb/R120x174.q85/?fname=http%3A%2F%2Ft1.daumcdn.net%2Flbook%2Fimage%2F692555%3Ftimestamp%3D20200716134618",
"themeIdx" : 0
}
data : 올린 문장의 sentenceIdx
{
"status": 200,
"success": true,
"message": "문장 올리기 성공",
"data": 25
}
{
"status": 400,
"success": false,
"message": "필요한 값이 없습니다"
}
{
"status": 400,
"success": false,
"message": "토큰이 없습니다"
}
{
"status": 401,
"success": false,
"message": "유효하지 않은 토큰입니다"
}
{
"status": 401,
"success": false,
"message": "만료된 토큰입니다"
}
{
"status": 600,
"success": false,
"message": "서버 내부 오류"
}
-
메인(Main)
-
검색(Search)
-
작성(Post)
-
큐레이터(Curator)
-
조회(Detail)
-
내 서재(My)
-
유저(Users)