-
Notifications
You must be signed in to change notification settings - Fork 28
API 명세
Hyeon9mak edited this page Nov 1, 2021
·
9 revisions
Request
GET /members/me HTTP/1.1
Content-Type: application/json; charset=UTF-8
Authorization : Bearer {accessToken}
Response
{
member: {
id: "int" ,
nickname: "String",
imageUrl: "String",
role: "String"
}
}
Request
POST /login/token HTTP/1.1
Content-Type: application/json; charset=UTF-8
{
code: "String"
}
Response
{
accessToken: "String"
}
Response
HTTP/1.1 401
Content-Type: application/json
Transfer-Encoding: chunked
Date: Sun, 27 Dec 2020 04:32:26 GMT
Keep-Alive: timeout=60
Connection: keep-alive
{
"message": "로그인에 실패했습니다."
}
GET response
[
{
id: '',
author: {
id: '',
nickname: '',
image: ''
}
category: 'string'
title: 'string',
tags: ['string', 'string'],
},
...
]
GET request
[ 'string', 'string' ]
POST request
Header : {
token : 'addjfkl123addfda',
}
Body : [
{
id: '',
category: 'string'
title: 'string',
tags: ['string', 'string'],
content: 'string',
},
...
]
GET
request (ex. page/{:id})
response
{
id: '',
author: {
id: '',
nickname: 'string',
image: 'string'
}
issuedDate: 'Date'
category: 'string'
title: 'string',
tags: ['string', 'string'],
content: 'string',
}