๐Ÿ“๊ธ€ API

๊ธ€ ๋ชฉ๋ก ๊ฐ€์ ธ์˜ค๊ธฐ

GET https://dminside.kro.kr/api/v1/board/posts

Query Parameters

Name
Type
Description

username

string

per-page

integer

page

integer

gallery-id

integer

{
  "number_of_pages": 1,
  "posts": [
    {
      "id": 2,
      "likes": 0,
      "number_of_comments": 0,
      "posted_datetime": "2020-06-08T18:34:37",
      "title": "ToothBrush",
      "uploader": {
        "username": "vjslzhs"
      },
      "views": 0,
      "whether_exist_image": false,
      "is_mine":True
    }
  ]
}

์ž์‹ ์ด ๋Œ“๊ธ€ ๋‹จ ๊ธ€ ๋ชฉ๋ก ๊ฐ€์ ธ์˜ค๊ธฐ

GET /me/posts-wrote-comment

Headers

Name
Type
Description

Authorization

string

์œ ์ € ๋Œ“๊ธ€ ๋‹จ ๊ธ€ ๋ชฉ๋ก ๊ฐ€์ ธ์˜ค๊ธฐ

GET /users/{username}/posts-wrote-comment

Path Parameters

Name
Type
Description

username

string

์œ ์ €๊ฐ€ ์ข‹์•„์š” ํ•œ ๊ธ€ ๋ชฉ๋ก ๋ถˆ๋Ÿฌ์˜ค๊ธฐ

GET /api/v1/users/{username}/liked-posts

Path Parameters

Name
Type
Description

username

string

๋‚ด๊ฐ€ ์ข‹์•„์š” ํ•œ ๊ธ€ ๋ชฉ๋ก ๋ถˆ๋Ÿฌ์˜ค๊ธฐ

GET /api/v1/me/liked-posts

Headers

Name
Type
Description

Authorization

string

Bearer

๊ธ€ ์“ฐ๊ธฐ

POST https://dminside.kro.kr/api/v1/board/posts?gallery-id=fef

Headers

Name
Type
Description

Authorization

string

access token

Request Body

Name
Type
Description

is_anonymous

boolean

images

array

["image_file_name.png, "SIBAL.gif"]

content

string

title

string

๊ธ€ ๋ณด๊ธฐ

GET https://dminside.kro.kr/api/v1/board/posts/:post-id

Path Parameters

Name
Type
Description

post-id

integer

Headers

Name
Type
Description

Authorization

string

๊ธ€ ์ˆ˜์ •

PATCH https://dminside.kro.kr/api/v1/board/posts/{post-id}

Path Parameters

Name
Type
Description

post-id

integer

Headers

Name
Type
Description

Authorization

string

access token

Request Body

Name
Type
Description

images

array

[a.jpg, Sibal.png]...

content

string

title

string

๊ธ€ ์‚ญ์ œ

DELETE https://dminside.kro.kr/api/v1/board/posts/{post-id}

Delete post api Post uploader can delete post

Path Parameters

Name
Type
Description

string

๊ธ€ ์ข‹์•„์š”

POST https://dminside.kro.kr/api/v1/board/posts/:post-id/like

Path Parameters

Name
Type
Description

post-id

integer

Headers

Name
Type
Description

Authorization

string

access_token

๊ธ€ ์ข‹์•„์š” ์ทจ์†Œ

DELETE https://dminside.kro.kr/api/v1/board/posts/:post-id/like

Path Parameters

Name
Type
Description

post-id

integer

Headers

Name
Type
Description

Authorization

string

access_to

๊ธ€ ์‹ซ์–ด์š”

POST https://dminside.kro.kr/api/v1/board/posts/:post-id/dislike

Path Parameters

Name
Type
Description

post-id

integer

Headers

Name
Type
Description

Authorization

string

access_to

๊ธ€ ์‹ซ์–ด์š” ์ทจ์†Œ

DELETE https://dminside.kro.kr/api/v1/board/posts/:post-id/dislike

Path Parameters

Name
Type
Description

post-id

integer

Headers

Name
Type
Description

Authorization

string

access_to

Last updated

Was this helpful?