Get Posts by categoryName

METHOD

GET

URL

/gistps/api/v1/post/category?categoryName=๋ถ„๋ฅ˜2

categoryName: ๊ฒŒ์‹œ๋ฌผ์ด ํ•ด๋‹นํ•˜๋Š” ์นดํ…Œ๊ณ ๋ฆฌ ์ด๋ฆ„ (ex -๋ถ„๋ฅ˜2)

QUERY STRING

name

type

require

descriptio

category

string

์„ ํƒ

์„ ํƒํ•œ ์นดํ…Œ๊ณ ๋ฆฌ์— ํ•ด๋‹นํ•˜๋Š” ๊ฒŒ์‹œ๋ฌผ์„ ๋ถˆ๋Ÿฌ์˜ด

RESPONSE BODY EXAMPLE

[
    {
        "id": 1,
        "comment": [],
        "title": "๊ธฐ์ˆ™์‚ฌ ~์— ๋Œ€ํ•ด ๊ฑด์˜ํ•ฉ๋‹ˆ๋‹ค",
        "description": "~ํ•œ ๋ฌธ์ œ ํ•ด๊ฒฐ ๋ฐ”๋ž๋‹ˆ๋‹ค",
        "category": "๋ถ„๋ฅ˜1",
        "created": "2021-08-12",
        "answered": false,
        "accepted": 0,
        "userId": 1
    },
    {
        "id": 2,
        "comment": [],
        "title": "๊ธฐ์ˆ™์‚ฌ ~์— ๋Œ€ํ•ด ๊ฑด์˜ํ•ฉ๋‹ˆ๋‹ค2",
        "description": "~ํ•œ ๋ฌธ์ œ ํ•ด๊ฒฐ ๋ฐ”๋ž๋‹ˆ๋‹ค2",
        "category": "๋ถ„๋ฅ˜1",
        "created": "2021-08-12",
        "answered": false,
        "accepted": 0,
        "userId": 1
    }
]

Last updated