Skip to content

API 명세

sunhpark42 edited this page May 14, 2021 · 9 revisions

헤더

사용자 정보 불러오기

GET

response

{
    id: '' ,
    nickname: '',
    image: '',
}

로그인요청

POST

request

(github 인증 토큰)

{
    accessToken: 'string'
}

response

{
    accessToken: 'string'
}

전체보기

전체 글 불러오기

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',
}
Clone this wiki locally