| ํค | ์ค๋ช | ์ ์ฝ |
|---|---|---|
| type | true ๋น์์ด, false ํ์ฉ๋จ์ด | 1 ์ข ๋ฅ๋ง ์ ๋ ฅ ๊ฐ๋ฅ |
| word | ํด๋น word๋ฅผ ํฌํจํ๋ ๋จ์ด๋ฅผ ์ฐพ์ต๋๋ค. | ๊ณต๋ฐฑ์ด ์๋ 2~10์ |
ํด๋น API๋ ํ์ด์ง์ ์ง์ํฉ๋๋ค.
| ํค | ์ค๋ช | ์ ์ฝ | ๊ธฐ๋ณธ๊ฐ |
|---|---|---|---|
| size | ํ์ด์ง ์ฌ์ด์ฆ | ์ต๋ 100๊น์ง | 20 |
| page | ํ์ด์ง ๋๋ฒ *0๋ถํฐ ์์ | 0 | |
| sort | ์ ๋ ฌ ์ต์ | ์๋ ์ฌ์ฉ ๊ฐ๋ฅ ํค๋ง ๊ฐ๋ฅ | id;DESC |
์ฌ์ฉ ๊ฐ๋ฅํ sortํค๋ ์๋์ ๊ฐ์ต๋๋ค. ๋ชจ๋ Sort ์ฌ์ฉ์ ๋ฐฉํฅ์ ์ง์ ํ์ง ์์ผ๋ฉด ASC ๋ก ๋์ํฉ๋๋ค. (๋์๋ฌธ์ ๊ตฌ๋ถ ์์)
| ํค | ์ค๋ช |
|---|---|
| id | ๊ธ์น์ด id |
| word | ๊ธ์น์ด ๋จ์ด |
| type | ๊ธ์น์ด ์ ํ |
{- "_embedded": {
- "bad_words": [
- {
- "_links": {
}, - "id": 1,
- "is_bad_word": true,
- "word": "word"
}
]
}, - "page": {
- "number": 0,
- "size": 20,
- "totalElements": 1,
- "totalPages": 1
}
}๊ธ์น์ด๋ฅผ ์์ฑํฉ๋๋ค. (AUTH-LEVEL : ADMIN)
| is_bad_word | boolean ๊ธ์น์ด ์ฌ๋ถ |
| word | string ๊ณต๋ฐฑ ์๋ ๋จ์ด (2์ ์ด์, 15์ ์ดํ) |
{- "is_bad_word": true,
- "word": "15์์ดํ"
}{- "_links": {
}, - "id": 1,
- "is_bad_word": true,
- "word": "word"
}ํด๋นํ๋ ID์ ๊ธ์น์ด ์ ๋ณด๋ฅผ ์กฐํํฉ๋๋ค. (AUTH-LEVEL : ADMIN)
| id required | string ๊ธ์น์ด ID |
{- "_links": {
}, - "id": 1,
- "is_bad_word": true,
- "word": "word"
}๋๊ธ์ ์์ธ ์ ๋ณด๋ฅผ ์กฐํํฉ๋๋ค. ๋ง์ฝ ๋๊ธ์ด ๋นํ์ฑํ ๋์ด์์ผ๋ฉด, ๋ณธ๋ฌธ์ ํ์ธํ ์ ์์ต๋๋ค. ๊ด๋ฆฌ์์ ๊ฒฝ์ฐ ๋นํ์ฑํ ์ฌ๋ถ์ ์๊ด์์ด ์กฐํ ๊ฐ๋ฅํฉ๋๋ค.
| commentId required | string ๋๊ธ ID |
{- "_links": {
}, - "content": "test",
- "created_date": "2002-08-28T00:00:00",
- "enabled": false,
- "id": 1,
- "last_modified_date": "2002-08-28T00:00:00",
- "post_id": 1,
- "writer": {
- "admin": true,
- "email": "admin@springnote.blog",
- "enabled": true,
- "id": "test",
- "name": "test",
}
}์๊ธฐ ์์ ์ ๋๊ธ๋ง ์์ ๊ฐ๋ฅํฉ๋๋ค.
| commentId required | string ๋๊ธ ID |
| captcha_token | string ์บก์ฐจ ํ ํฐ |
| content | string ๋๊ธ ๋ณธ๋ฌธ 2~1000์ |
| im_not_bot | boolean honeypot |
{- "captcha_token": "captchaToken",
- "content": "content",
- "im_not_bot": null
}{- "_links": {
}, - "content": "test",
- "created_date": "2002-08-28T00:00:00",
- "enabled": false,
- "id": 1,
- "last_modified_date": "2002-08-28T00:00:00",
- "post_id": 1,
- "writer": {
- "admin": true,
- "email": "admin@springnote.blog",
- "enabled": true,
- "id": "test",
- "name": "test",
}
}ํด๋น API๋ ํ์ด์ง์ ์ง์ํฉ๋๋ค.
| ํค | ์ค๋ช | ์ ์ฝ | ๊ธฐ๋ณธ๊ฐ |
|---|---|---|---|
| size | ํ์ด์ง ์ฌ์ด์ฆ | ์ต๋ 50๊น์ง | 20 |
| page | ํ์ด์ง ๋๋ฒ *0๋ถํฐ ์์ | 0 | |
| sort | ์ ๋ ฌ ์ต์ | ์๋ ์ฌ์ฉ ๊ฐ๋ฅ ํค๋ง ๊ฐ๋ฅ | createdDate;DESC |
์ฌ์ฉ ๊ฐ๋ฅํ sortํค๋ ์๋์ ๊ฐ์ต๋๋ค. ๋ชจ๋ Sort ์ฌ์ฉ์ ๋ฐฉํฅ์ ์ง์ ํ์ง ์์ผ๋ฉด ASC ๋ก ๋์ํฉ๋๋ค. (๋์๋ฌธ์ ๊ตฌ๋ถ ์์)
| ํค | ์ค๋ช |
|---|---|
| id | ๋๊ธ id |
| user | ์์ฑ์ |
| createdDate | ์์ฑ์ผ |
| lastModifiedDate | ๋ง์ง๋ง ์์ ์ผ |
| commentId required | string ๋๊ธ ID |
{- "_embedded": {
- "replies": [
- {
- "_links": {
}, - "content": "test",
- "created_date": "2002-08-28T00:00:00",
- "enabled": false,
- "id": 1,
- "last_modified_date": "2002-08-28T00:00:00",
- "parent_id": 1,
- "post_id": 1,
- "writer": {
- "admin": true,
- "email": "admin@springnote.blog",
- "enabled": true,
- "id": "test",
- "name": "test",
}
}
]
}, - "_links": {
}, - "page": {
- "number": 0,
- "size": 20,
- "totalElements": 1,
- "totalPages": 1
}
}์ ์ ๋ ๋๊ธ์ ์๊ตฌ์ ์ผ๋ก ์ญ์ ํ ์ ์์ต๋๋ค. ๋ฐ๋ผ์ ํด๋น API๋ก ๋๊ธ์ ๋นํ์ฑํํ ์ ์์ต๋๋ค.
| commentId required | string ๋๊ธ ID |
{- "_links": {
}, - "content": "test",
- "created_date": "2002-08-28T00:00:00",
- "enabled": false,
- "id": 1,
- "last_modified_date": "2002-08-28T00:00:00",
- "post_id": 1,
- "writer": {
- "admin": true,
- "email": "admin@springnote.blog",
- "enabled": true,
- "id": "test",
- "name": "test",
}
}ํด๋น API๋ ํ์ด์ง์ ์ง์ํฉ๋๋ค.
| ํค | ์ค๋ช | ์ ์ฝ | ๊ธฐ๋ณธ๊ฐ |
|---|---|---|---|
| size | ํ์ด์ง ์ฌ์ด์ฆ | ์ต๋ 50๊น์ง | 20 |
| page | ํ์ด์ง ๋๋ฒ *0๋ถํฐ ์์ | 0 | |
| sort | ์ ๋ ฌ ์ต์ | ์๋ ์ฌ์ฉ ๊ฐ๋ฅ ํค๋ง ๊ฐ๋ฅ | createdDate;DESC |
์ฌ์ฉ ๊ฐ๋ฅํ sortํค๋ ์๋์ ๊ฐ์ต๋๋ค. ๋ชจ๋ Sort ์ฌ์ฉ์ ๋ฐฉํฅ์ ์ง์ ํ์ง ์์ผ๋ฉด ASC ๋ก ๋์ํฉ๋๋ค. (๋์๋ฌธ์ ๊ตฌ๋ถ ์์)
| ํค | ์ค๋ช |
|---|---|
| id | ๋๊ธ id |
| user | ์์ฑ์ |
| createdDate | ์์ฑ์ผ |
| lastModifiedDate | ๋ง์ง๋ง ์์ ์ผ |
| postId required | string ํฌ์คํธ ID |
{- "_embedded": {
- "comments": [
- {
- "_links": {
}, - "content": "test",
- "created_date": "2002-08-28T00:00:00",
- "enabled": false,
- "id": 1,
- "last_modified_date": "2002-08-28T00:00:00",
- "post_id": 1,
- "reply_count": 1,
- "writer": {
- "admin": true,
- "email": "admin@springnote.blog",
- "enabled": true,
- "id": "test",
- "name": "test",
}
}
]
}, - "_links": {
- "self": {
}
}, - "page": {
- "number": 0,
- "size": 20,
- "totalElements": 1,
- "totalPages": 1
}
}๋๊ธ์ ์์ฑํฉ๋๋ค.(AUTH_LEVEL: USER)
| postId required | string |
| captcha_token | string ์บก์ฐจ ํ ํฐ |
| content | string ๋๊ธ ๋ณธ๋ฌธ 2~1000์ |
| im_not_bot | boolean honeypot |
{- "captcha_token": "captchaToken",
- "content": "content",
- "im_not_bot": null
}{- "_links": {
}, - "content": "test",
- "created_date": "2002-08-28T00:00:00",
- "enabled": false,
- "id": 1,
- "last_modified_date": "2002-08-28T00:00:00",
- "post_id": 1,
- "writer": {
- "admin": true,
- "email": "admin@springnote.blog",
- "enabled": true,
- "id": "test",
- "name": "test",
}
}๋ต๊ธ์ ์์ฑํฉ๋๋ค.(AUTH_LEVEL: USER)
| postId required | string ํฌ์คํธ ID |
| commentId required | string ๋๊ธ ID |
| captcha_token | string ์บก์ฐจ ํ ํฐ |
| content | string ๋ต๊ธ ๋ณธ๋ฌธ 2~1000์ |
| im_not_bot | boolean honeypot |
{- "captcha_token": "captchaToken",
- "content": "content",
- "im_not_bot": null
}{- "_links": {
}, - "content": "test",
- "created_date": "2002-08-28T00:00:00",
- "enabled": false,
- "id": 1,
- "last_modified_date": "2002-08-28T00:00:00",
- "post_id": 1,
- "writer": {
- "admin": true,
- "email": "admin@springnote.blog",
- "enabled": true,
- "id": "test",
- "name": "test",
}
}์ค์ ๊ฐ์ ์ ๋ฐ์ดํธํฉ๋๋ค. (AUTH-LEVEL : ADMIN)
| key required | string ์ค์ ํค |
| value required | string ์ค์ ๊ฐ |
{- "key": "key",
- "value": "value"
}| ํค | ์ค๋ช | ์ ์ฝ | ๊ธฐ๋ณธ๊ฐ |
|---|---|---|---|
| postType | ํฌ์คํธ์ ์ ํ์ ๋๋ค. | x | |
| series | ํฌ์คํธ์ ์๋ฆฌ์ฆ ์ ๋๋ค. | x | |
| tag | ํฌ์คํธ์ ํ๊ทธ ์ ๋ณด ์ ๋๋ค. | ์ต๋ 10๊ฐ ๊น์ง๋ง ์ฌ์ฉ๊ฐ๋ฅ, ์ค๋ณต ๋ถ๊ฐ | x |
| isOnlyOpenPost | ๊ณต๊ฐ๋ ํฌ์คํธ๋ง ๊ฒ์ํ ์ง ์ฌ๋ถ์ ๋๋ค. true๋ฉด ๊ณต๊ฐ๋ ํฌ์คํธ๋ง ๊ฒ์ํฉ๋๋ค. ๋จ false ์ฌ์ฉ์์๋ ๊ด๋ฆฌ์ ๊ถํ์ ์๊ตฌํฉ๋๋ค. | 1๊ฐ๋ง ์ฌ์ฉ๊ฐ๋ฅ | ์ ์ ์ผ๊ฒฝ์ฐ true, ๊ด๋ฆฌ์์ผ ๊ฒฝ์ฐ false |
ํด๋น API๋ ํ์ด์ง์ ์ง์ํฉ๋๋ค.
| ํค | ์ค๋ช | ์ ์ฝ | ๊ธฐ๋ณธ๊ฐ |
|---|---|---|---|
| size | ํ์ด์ง ์ฌ์ด์ฆ | ์ต๋ 100๊น์ง | 20 |
| page | ํ์ด์ง ๋๋ฒ *0๋ถํฐ ์์ | 0 | |
| sort | ์ ๋ ฌ ์ต์ | ์๋ ์ฌ์ฉ ๊ฐ๋ฅ ํค๋ง ๊ฐ๋ฅ | createdDate;DESC |
์ฌ์ฉ ๊ฐ๋ฅํ sortํค๋ ์๋์ ๊ฐ์ต๋๋ค. ๋ชจ๋ Sort ์ฌ์ฉ์ ๋ฐฉํฅ์ ์ง์ ํ์ง ์์ผ๋ฉด ASC ๋ก ๋์ํฉ๋๋ค. (๋์๋ฌธ์ ๊ตฌ๋ถ ์์)
| ํค | ์ค๋ช |
|---|---|
| id | ํฌ์คํธ ID |
| title | ํฌ์คํธ ์ ๋ชฉ |
| content | ํฌ์คํธ ๋ณธ๋ฌธ |
| isOpen | ๊ณต๊ฐ ์ฌ๋ถ |
| series | ์๋ฆฌ์ฆ |
| lastModifiedDate | ๋ง์ง๋ง ์์ ์ผ |
| createdDate | ์์ฑ์ผ |
| ํค | ์ค๋ช | ์ ์ฝ |
|---|---|---|
| keyword | ๊ฒ์ํ ํค์๋ | 2~20์ |
| searchMode | ๊ฒ์ ๋ชจ๋, TITLE(์ ๋ชฉ),CONTENT(๋ณธ๋ฌธ),MIX(์ ๋ชฉ+๋ณธ๋ฌธ) ์ค 1ํ | 1๊ฐ์ ์ต์ ๋ง ์ค์ ๊ฐ๋ฅ |
{- "_embedded": {
- "posts": [
- {
- "_links": {
}, - "created_at": "2002-08-28T00:00:00",
- "enabled": true,
- "id": 1,
- "last_updated_at": "2002-08-28T00:00:00",
- "post_type": {
- "id": 1,
- "name": "name"
}, - "series": {
- "id": 1,
- "name": "name"
}, - "tags": [
- {
- "id": 1,
- "name": "tag1"
}, - {
- "id": 2,
- "name": "tag2"
}
], - "thumbnail": "thumbnail",
- "title": "title"
}
]
}, - "_links": {
}, - "page": {
- "number": 0,
- "size": 20,
- "totalElements": 1,
- "totalPages": 1
}
}ํฌ์คํธ๋ฅผ ์์ฑํฉ๋๋ค. (AUTH-LEVEL : ADMIN)
| content | string ํฌ์คํธ์ ๋ด์ฉ, 3~65535์ |
| enabled | boolean ํฌ์คํธ์ ๊ณต๊ฐ ์ฌ๋ถ |
| post_type_id | number ํฌ์คํธ์ ํ์ ID |
| series_id | number ํฌ์คํธ์ ์๋ฆฌ์ฆ ID, ๋ง์ฝ ์๋ฆฌ์ฆ๊ฐ ํ์ ์๋ ํฌ์คํธ๋ null |
Array of objects ํฌ์คํธ์ ํ๊ทธ ID ๋ฆฌ์คํธ | |
| thumbnail | string ํฌ์คํธ์ ์ธ๋ค์ผ URL, ๋น ๋ฌธ์์ด ๊ฐ๋ฅ |
| title | string ํฌ์คํธ์ ์ ๋ชฉ, 3~300์ |
{- "content": "content",
- "enabled": true,
- "post_type_id": 1,
- "series_id": 1,
- "tags": [
- {
- "id": 1
}, - {
- "id": 2
}
], - "title": "title"
}{- "_links": {
}, - "content": {
- "editor_text": "editorText",
- "plain_text": "plainText"
}, - "created_at": "2002-08-28T00:00:00",
- "enabled": true,
- "id": 1,
- "last_updated_at": "2002-08-28T00:00:00",
- "post_type": {
- "id": 1,
- "name": "name"
}, - "series": {
- "id": 1,
- "name": "name"
}, - "tags": [
- {
- "id": 1,
- "name": "tag1"
}, - {
- "id": 2,
- "name": "tag2"
}
], - "thumbnail": "thumbnail",
- "title": "title"
}ํด๋น ์ ๋ชฉ์ ๊ฐ์ง ํฌ์คํธ๊ฐ ์๋์ง ๊ฒ์ํฉ๋๋ค. (AUTH-LEVEL : ADMIN)
| title required | string ์กฐํํ ๋์ ํฌ์คํธ์ ์ด๋ฆ, 3~300์ |
{- "passed": false
}ํด๋น ํ๋ ํฌ์คํธ ID๋ฅผ ๊ฐ์ง ํฌ์คํธ๋ฅผ ๋ฐํํฉ๋๋ค. ์ด๋ ๋นํ์ฑํ๋ ํฌ์คํธ๋ ๊ด๋ฆฌ์๋ง ์กฐํํ ์ ์์ต๋๋ค.
| id required | number ์กฐํํ ๋์ ํฌ์คํธ ID, (1~4294967295) |
{- "_links": {
}, - "content": {
- "editor_text": "editorText",
- "plain_text": "plainText"
}, - "created_at": "2002-08-28T00:00:00",
- "enabled": true,
- "id": 1,
- "last_updated_at": "2002-08-28T00:00:00",
- "post_type": {
- "id": 1,
- "name": "name"
}, - "series": {
- "id": 1,
- "name": "name"
}, - "tags": [
- {
- "id": 1,
- "name": "tag1"
}, - {
- "id": 2,
- "name": "tag2"
}
], - "thumbnail": "thumbnail",
- "title": "title"
}ํฌ์คํธ๋ฅผ ์์ ํฉ๋๋ค. (AUTH-LEVEL : ADMIN)
| id required | string ์์ ํ ํฌ์คํธ์ ID |
| content | string ํฌ์คํธ์ ๋ด์ฉ, 3~65535์ |
| enabled | boolean ํฌ์คํธ์ ๊ณต๊ฐ ์ฌ๋ถ |
| series_id | number ํฌ์คํธ์ ์๋ฆฌ์ฆ ID, ๋ง์ฝ ์๋ฆฌ์ฆ๊ฐ ํ์ ์๋ ํฌ์คํธ๋ null |
Array of objects ํฌ์คํธ์ ํ๊ทธ ID ๋ฆฌ์คํธ | |
| thumbnail | string ํฌ์คํธ์ ์ธ๋ค์ผ URL, ๋น ๋ฌธ์์ด ๊ฐ๋ฅ |
| title | string ํฌ์คํธ์ ์ ๋ชฉ, 3~300์ |
{- "content": "content",
- "enabled": true,
- "series_id": 1,
- "tags": [
- {
- "id": 1
}, - {
- "id": 2
}
], - "title": "title"
}{- "_links": {
}, - "content": {
- "editor_text": "editorText",
- "plain_text": "plainText"
}, - "created_at": "2002-08-28T00:00:00",
- "enabled": true,
- "id": 1,
- "last_updated_at": "2002-08-28T00:00:00",
- "post_type": {
- "id": 1,
- "name": "name"
}, - "series": {
- "id": 1,
- "name": "name"
}, - "tags": [
- {
- "id": 1,
- "name": "tag1"
}, - {
- "id": 2,
- "name": "tag2"
}
], - "thumbnail": "thumbnail",
- "title": "title"
}ํฌ์คํธ์ ์ํ๋ฅผ ์์ ํฉ๋๋ค. (AUTH-LEVEL : ADMIN)
| id required | string ์์ ํ ํฌ์คํธ์ ID |
| enabled | boolean ํฌ์คํธ์ ๊ณต๊ฐ ์ฌ๋ถ |
{- "enabled": true
}{- "_links": {
}, - "content": {
- "editor_text": "editorText",
- "plain_text": "plainText"
}, - "created_at": "2002-08-28T00:00:00",
- "enabled": true,
- "id": 1,
- "last_updated_at": "2002-08-28T00:00:00",
- "post_type": {
- "id": 1,
- "name": "name"
}, - "series": {
- "id": 1,
- "name": "name"
}, - "tags": [
- {
- "id": 1,
- "name": "tag1"
}, - {
- "id": 2,
- "name": "tag2"
}
], - "thumbnail": "thumbnail",
- "title": "title"
}ํด๋น API๋ ํ์ด์ง์ ์ง์ํฉ๋๋ค.
| ํค | ์ค๋ช | ์ ์ฝ | ๊ธฐ๋ณธ๊ฐ |
|---|---|---|---|
| size | ํ์ด์ง ์ฌ์ด์ฆ | ์ต๋ 20๊น์ง | 20 |
| page | ํ์ด์ง ๋๋ฒ *0๋ถํฐ ์์ | 0 | |
| sort | ์ ๋ ฌ ์ต์ | ์๋ ์ฌ์ฉ ๊ฐ๋ฅ ํค๋ง ๊ฐ๋ฅ | id;DESC |
์ฌ์ฉ ๊ฐ๋ฅํ sortํค๋ ์๋์ ๊ฐ์ต๋๋ค. ๋ชจ๋ Sort ์ฌ์ฉ์ ๋ฐฉํฅ์ ์ง์ ํ์ง ์์ผ๋ฉด ASC ๋ก ๋์ํฉ๋๋ค. (๋์๋ฌธ์ ๊ตฌ๋ถ ์์)
| ํค | ์ค๋ช |
|---|---|
| id | ํ์ ID |
| name | ์ด๋ฆ |
{- "_embedded": {
- "post_types": [
- {
- "id": 1,
- "name": "name"
}
]
}, - "page": {
- "number": 0,
- "size": 20,
- "totalElements": 1,
- "totalPages": 1
}
}| ํค | ์ค๋ช | ์ ์ฝ | ๊ธฐ๋ณธ๊ฐ |
|---|---|---|---|
| name | ๊ฒ์ํ ์ด๋ฆ. | 2~40์ | x |
ํด๋น API๋ ํ์ด์ง์ ์ง์ํฉ๋๋ค.
| ํค | ์ค๋ช | ์ ์ฝ | ๊ธฐ๋ณธ๊ฐ |
|---|---|---|---|
| size | ํ์ด์ง ์ฌ์ด์ฆ | ์ต๋ 50๊น์ง | 20 |
| page | ํ์ด์ง ๋๋ฒ *0๋ถํฐ ์์ | 0 | |
| sort | ์ ๋ ฌ ์ต์ | ์๋ ์ฌ์ฉ ๊ฐ๋ฅ ํค๋ง ๊ฐ๋ฅ | id;DESC |
์ฌ์ฉ ๊ฐ๋ฅํ sortํค๋ ์๋์ ๊ฐ์ต๋๋ค. ๋ชจ๋ Sort ์ฌ์ฉ์ ๋ฐฉํฅ์ ์ง์ ํ์ง ์์ผ๋ฉด ASC ๋ก ๋์ํฉ๋๋ค. (๋์๋ฌธ์ ๊ตฌ๋ถ ์์)
| ํค | ์ค๋ช |
|---|---|
| id | ์๋ฆฌ์ฆ ID |
| name | ์๋ฆฌ์ฆ ์ ๋ชฉ |
{- "_embedded": {
- "series": [
- {
- "_links": {
}, - "description": "test",
- "id": 1,
- "name": "test",
}
]
}, - "page": {
- "number": 0,
- "size": 20,
- "totalElements": 1,
- "totalPages": 1
}
}์๋ฆฌ์ฆ๋ฅผ ์์ฑํฉ๋๋ค. (AUTH_LEVEL: ADMIN)
| description | string ์๋ฆฌ์ฆ ์ค๋ช |
| name | string ์๋ฆฌ์ฆ ์ด๋ฆ |
| thumbnail | string ์๋ฆฌ์ฆ ์ธ๋ค์ผ |
{- "description": "test",
- "name": "test",
}{- "_links": {
}, - "description": "test",
- "id": 1,
- "name": "test",
}์ฃผ์ด์ง Id์ ํด๋นํ๋ ์๋ฆฌ์ฆ๋ฅผ ์กฐํํฉ๋๋ค.
| seriesId required | string ์กฐํํ ์๋ฆฌ์ฆ์ ID |
{- "_links": {
}, - "description": "test",
- "id": 1,
- "name": "test",
}์๋ฆฌ์ฆ๋ฅผ ์์ ํฉ๋๋ค. (AUTH_LEVEL: ADMIN)
| seriesId required | string ์์ ํ ์๋ฆฌ์ฆ์ ID |
| description | string ์๋ฆฌ์ฆ ์ค๋ช |
| name | string ์๋ฆฌ์ฆ ์ด๋ฆ |
| thumbnail | string ์๋ฆฌ์ฆ ์ธ๋ค์ผ |
{- "description": "test",
- "name": "test",
}{- "_links": {
}, - "description": "test",
- "id": 1,
- "name": "test",
}์์ ํฌ์คํธ๋ฅผ ์กฐํํฉ๋๋ค. (AUTH_LEVEL: ADMIN)
| tmpPostId required | string ์์ ํฌ์คํธ ID |
{- "_links": {
}, - "content": "content",
- "created_at": "2002-08-28T00:00:00",
- "id": "eeef2080-8519-46de-a1d1-8901e8c4f04e",
- "last_updated_at": "2002-08-28T00:00:00",
- "post_type": {
- "id": 1,
- "name": "postType"
}, - "series": {
- "id": 1,
- "name": "series"
}, - "tags": [
- {
- "id": 1,
- "name": "tag1"
}, - {
- "id": 2,
- "name": "tag2"
}
], - "title": "title"
}์ฌ์ดํธ ์ฝํ ์ธ ๋ฅผ ์์ฑํฉ๋๋ค. (AUTH_LEVEL: ADMIN)
| content | string ์ฌ์ดํธ ์ฝํ ์ธ ์ ๋ด์ฉ (1~30000์) |
| key | string ์ฌ์ดํธ ์ฝํ ์ธ ์ ํค (๊ณต๋ฐฑ ์์ด 1~300์) |
{- "content": "test content",
- "key": "test"
}{- "content": "test content",
- "key": "test"
}์ฌ์ดํธ ์ฝํ ์ธ ๋ฅผ ์์ ํฉ๋๋ค. (AUTH_LEVEL: ADMIN)
| key required | string ์ฌ์ดํธ ์ฝํ ์ธ ์ ํค |
| content | string ์ฌ์ดํธ ์ฝํ ์ธ ์ ๋ด์ฉ (1~30000์) |
{- "content": "test content"
}{- "content": "test content",
- "key": "test"
}| ํค | ์ค๋ช | ์ ์ฝ | ๊ธฐ๋ณธ๊ฐ |
|---|---|---|---|
| name | ๊ฒ์ํ ์ด๋ฆ์ ๋๋ค. | 2~100์ | x |
ํด๋น API๋ ํ์ด์ง์ ์ง์ํฉ๋๋ค.
| ํค | ์ค๋ช | ์ ์ฝ | ๊ธฐ๋ณธ๊ฐ |
|---|---|---|---|
| size | ํ์ด์ง ์ฌ์ด์ฆ | ์ต๋ 20๊น์ง | 10 |
| page | ํ์ด์ง ๋๋ฒ *0๋ถํฐ ์์ | 0 | |
| sort | ์ ๋ ฌ ์ต์ | ์๋ ์ฌ์ฉ ๊ฐ๋ฅ ํค๋ง ๊ฐ๋ฅ | id;DESC |
์ฌ์ฉ ๊ฐ๋ฅํ sortํค๋ ์๋์ ๊ฐ์ต๋๋ค. ๋ชจ๋ Sort ์ฌ์ฉ์ ๋ฐฉํฅ์ ์ง์ ํ์ง ์์ผ๋ฉด ASC ๋ก ๋์ํฉ๋๋ค. (๋์๋ฌธ์ ๊ตฌ๋ถ ์์)
| ํค | ์ค๋ช |
|---|---|
| id | ํ๊ทธ ID |
| name | ํ๊ทธ ์ด๋ฆ |
{- "_embedded": {
- "tags": [
- {
- "_links": {
}, - "id": 1,
- "name": "tag"
}
]
}, - "page": {
- "number": 0,
- "size": 10,
- "totalElements": 1,
- "totalPages": 1
}
}์๋ก์ด ํ๊ทธ๋ฅผ ์์ฑํฉ๋๋ค. (AUTH_LEVEL: ADMIN)
| name | string ํ๊ทธ ์ด๋ฆ (2~100์) |
{- "name": "tag"
}{- "_links": {
}, - "id": 1,
- "name": "tag"
}์ฃผ์ด์ง Id๋ก ํ๊ทธ๋ฅผ ์์ ํฉ๋๋ค. (AUTH_LEVEL: ADMIN)
| id required | string ์์ ํ ํ๊ทธ ID |
| name | string ํ๊ทธ ์ด๋ฆ (2~100์) |
{- "name": "tag"
}{- "_links": {
}, - "id": 1,
- "name": "tag"
}ํด๋น API๋ ํ์ด์ง์ ์ง์ํฉ๋๋ค.
| ํค | ์ค๋ช | ์ ์ฝ | ๊ธฐ๋ณธ๊ฐ |
|---|---|---|---|
| size | ํ์ด์ง ์ฌ์ด์ฆ | ์ต๋ 50๊น์ง | 20 |
| page | ํ์ด์ง ๋๋ฒ *0๋ถํฐ ์์ | 0 | |
| sort | ์ ๋ ฌ ์ต์ | ์๋ ์ฌ์ฉ ๊ฐ๋ฅ ํค๋ง ๊ฐ๋ฅ | createdDate;DESC |
์ฌ์ฉ ๊ฐ๋ฅํ sortํค๋ ์๋์ ๊ฐ์ต๋๋ค. ๋ชจ๋ Sort ์ฌ์ฉ์ ๋ฐฉํฅ์ ์ง์ ํ์ง ์์ผ๋ฉด ASC ๋ก ๋์ํฉ๋๋ค. (๋์๋ฌธ์ ๊ตฌ๋ถ ์์)
| ํค | ์ค๋ช |
|---|---|
| lastModifiedDate | ๋ง์ง๋ง ์์ ์ผ |
| createdDate | ์์ฑ์ผ |
{- "_embedded": {
- "tmp_posts": [
- {
- "_links": {
}, - "content": "content",
- "created_at": "2002-08-28T00:00:00",
- "id": "180f99f5-f28a-40f0-aa5b-6e2e8411f92f",
- "last_updated_at": "2002-08-28T00:00:00",
- "post_type": {
- "id": 1,
- "name": "postType"
}, - "series": {
- "id": 1,
- "name": "series"
}, - "tags": [
- {
- "id": 1,
- "name": "tag1"
}, - {
- "id": 2,
- "name": "tag2"
}
], - "title": "title"
}
]
}, - "_links": {
}, - "page": {
- "number": 0,
- "size": 20,
- "totalElements": 1,
- "totalPages": 1
}
}์์ ํฌ์คํธ๋ฅผ ๊ฒ์ํฉ๋๋ค. (AUTH_LEVEL: ADMIN)
| post_type_id | number ํฌ์คํธ ํ์ ID |
{- "content": null,
- "post_type_id": 1,
- "series_id": null,
- "tag_ids": null,
- "thumbnail": null,
- "title": null
}{- "_links": {
}, - "content": "content",
- "created_at": "2002-08-28T00:00:00",
- "id": "b8f12cf2-f72a-4b59-9ac4-5cd415a66507",
- "last_updated_at": "2002-08-28T00:00:00",
- "post_type": {
- "id": 1,
- "name": "postType"
}, - "series": {
- "id": 1,
- "name": "series"
}, - "tags": [
- {
- "id": 1,
- "name": "tag1"
}, - {
- "id": 2,
- "name": "tag2"
}
], - "title": "title"
}์์ ํฌ์คํธ๋ฅผ ์์ ํฉ๋๋ค. (AUTH_LEVEL: ADMIN)
| tmpPostId required | string ์์ ํฌ์คํธ ID |
{- "content": null,
- "series_id": null,
- "tag_ids": null,
- "thumbnail": null,
- "title": null
}{- "_links": {
}, - "content": "content",
- "created_at": "2002-08-28T00:00:00",
- "id": "8cb09b2f-3bed-4fbf-888e-718a786c9cbd",
- "last_updated_at": "2002-08-28T00:00:00",
- "post_type": {
- "id": 1,
- "name": "postType"
}, - "series": {
- "id": 1,
- "name": "series"
}, - "tags": [
- {
- "id": 1,
- "name": "tag1"
}, - {
- "id": 2,
- "name": "tag2"
}
], - "title": "title"
}์์ ํฌ์คํธ๋ฅผ ๊ฒ์ํฉ๋๋ค. (AUTH_LEVEL: ADMIN)
| tmpPostId required | string ์์ ํฌ์คํธ ID |
{- "_links": {
}, - "content": {
- "editor_text": "editorText",
- "plain_text": "plainText"
}, - "created_at": "2002-08-28T00:00:00",
- "enabled": true,
- "id": 1,
- "last_updated_at": "2002-08-28T00:00:00",
- "post_type": {
- "id": 1,
- "name": "name"
}, - "series": {
- "id": 1,
- "name": "name"
}, - "tags": [
- {
- "id": 1,
- "name": "tag1"
}, - {
- "id": 2,
- "name": "tag2"
}
], - "thumbnail": "thumbnail",
- "title": "title"
}