#API Schma
{
"success" : Boolean,
"result" : {},
"errorMessage" : String
}
{
"access-token" : String,
"refresh-token" : String
}
-
URL = /auth/refresh
-
Require = HEADER(access-token, refresh-token)
-
RESPONSE
{
"success": BOOLEAN,
"result": {
"access_token": STRING
},
"errorMessage": STRING
}
-
URL = /books/{slug}
-
Require = QUERY(SLUG)
-
Description = slug = 0은 TAG구분없이 보냄, slug != 0은 해당 slug의 BID값에 맞는 책을 넘겨줌
-
RESPONSE
{
"success": BOOLEAN,
"result": {
"bookList": [
{
"TITLE": STRING,
"SUBTITLE": STRING,
"AUTHOR": STRING,
"ISBN": STRING,
"PUBLISHER": STRING,
"PRICE": STRING,
"PAGE": STRING,
"BOOK_INDEX": STRING,
"BOOK_INTRODUCTION": STRING,
"Allah_BID": STRING,
"PUBLISH_DATE": STRING,
"thumbnail": STRING,
"thumbnailImage": STRING
}
],
"isFavorite": BOOLEAN
},
"errorMessage": STRING
}
-
URL = /home
-
Optional = HEADER(access-token)
-
회원일때 access-token 포함
-
RESPONSE
{
"success": BOOLEAN,
"result": {
"bookList": [
{
"tag": STRING,
"data": [
{
"BID": INTEGER,
"TITLE": STRING,
"AUTHOR": STRING,
"thumbnailImage": STRING
}
]
}
],
"communityList": [
{}
],
"userData": {
"UID": INTEGER,
"tag_array": [
STRING
],
"nickname": STRING,
"thumbnail": STRING
}
},
"errorMessage": STRING
}
- URL = /tags
- RESPONSE
{
"success": BOOLEAN,
"result": {
"tag": [
{
"TID": INTEGER,
"nameTag": STRING
}
]
},
"errorMessage": STRING
}
-
URL = /user
-
Require = HEADER(access-token)
-
BODY
{
"email": STRING
}
- RESPONSE
{
"success": BOOLEAN,
"result": {
"userData": {
"email": STRING
}
},
"errorMessage": STRING
}
-
URL = /user
-
Require = HEADER(access-token)
-
RESPONSE
{
"success": BOOLEAN,
"result": {},
"errorMessage": STRING
}
- URL = /user/check
- BODY
{
"email": STRING,
"code": INTEGER
}
- RESPONSE
{
"success": BOOLEAN,
"result": {},
"errorMessage": STRING
}
-
URL = /user/email
-
보내고 나서 3분 유효기간 시작, 호출 즉시 시작됨
-
Require = QUERY(email)
-
RESPONSE
{
"success": BOOLEAN,
"result": {
"email": STRING
},
"errorMessage": STRING
}
-
URL = /user/favoritebook
-
Require = Header(access-token)
-
BODY
{
"BID": INTEGER
}
- Response
{
"success": BOOLEAN,
"result": {
"favoriteItem": {
"BID": INTEGER,
"UID": INTEGER
}
},
"errorMessage": STRING
}
-
URL = /user/favoritebook
-
Require = Header(access-token)
-
BODY
{
"BID": INTEGER
}
- Response
{
"success": BOOLEAN,
"result": {},
"errorMessage": STRING
}
-
URL = /user/nickname
-
Require = QUERY(nickname)
-
Response
{
"success": BOOLEAN,
"result": {
"nickname": STRING
},
"errorMessage": STRING
}
-
URL = /user/signin
-
BODY
{
"email": STRING,
"pwToken": STRING,
"loginMethod": INTEGER
}
- RESPONSE
{
"success": BOOLEAN,
"result": {
"userData": {
"email": STRING,
"nickname": STRING,
"pushToken": STRING,
"pushNoti": BOOLEAN,
"thumbnail": STRING,
"loginMethod": INTEGER
},
"access_token": STRING,
"refresh_token": STRING
},
"errorMessage": STRING
}
-
URL = /user/signup
-
BODY
{
"email": STRING,
"nickname": STRING,
"pwToken": STRING,
"loginMethod": INTEGER
}
- RESPONSE
{
"success": BOOLEAN,
"result": {
"userData": {
"email": STRING,
"nickname": STRING,
"pushToken": STRING,
"pushNoti": BOOLEAN,
"thumbnail": STRING,
"loginMethod": INTEGER
},
"access_token": STRING,
"refresh_token": STRING
},
"errorMessage": STRING
}
-
URL = /user/signout
-
Require = HEADER(access-token, refresh-token)
-
RESPONSE
{
"success": BOOLEAN,
"result": {},
"errorMessage": STRING
}
-
URL = /user/tag
-
Require = Header(access-token)
-
BODY
{
"tag": [
INTEGER
]
}
- RESPONSE
{
"success": BOOLEAN,
"result": {
"tag": [
STRING
]
},
"errorMessage": STRING
}