GET category - nomadcoder-community-clone-coding/Back-end GitHub Wiki

description: ์นดํ…Œ๊ณ ๋ฆฌ ๋ชฉ๋ก ๋ฐ˜ํ™˜
ํ™ˆํŽ˜์ด์ง€ ์š”์ฒญ ์‹œ ์นดํ…Œ๊ณ ๋ฆฌ ์ •๋ณด๋ฅผ ํ˜ธ์ถœํ•˜์—ฌ ํ”„๋ก ํŠธ์—์„œ ๋ณด์—ฌ์ค„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

Attribute Definition

attribute data type description
id Long category ๊ณ ์œ ์˜ id
name String category ์ด๋ฆ„
postNum Long ํ•ด๋‹น category์— ์จ์ง„ ๊ธ€ ์ˆ˜ (logic ๊ตฌํ˜„ O)

Response example

// http://localhost:8080/category

[
    {
        "id": 1,
        "name": "all",
        "postNum": 0
    },
    {
        "id": 2,
        "name": "to-do-list",
        "postNum": 0
    },
    {
        "id": 3,
        "name": "html_css",
        "postNum": 4
    },
    {
        "id": 4,
        "name": "javascript",
        "postNum": 0
    },
    {
        "id": 5,
        "name": "bla-bla",
        "postNum": 1
    },
    {
        "id": 6,
        "name": "python",
        "postNum": 0
    },
    {
        "id": 7,
        "name": "side_projects",
        "postNum": 0
    },
    {
        "id": 8,
        "name": "hello",
        "postNum": 0
    },
    {
        "id": 9,
        "name": "dev_resources",
        "postNum": 0
    },
    {
        "id": 10,
        "name": "jobs",
        "postNum": 0
    },
    {
        "id": 11,
        "name": "react",
        "postNum": 0
    },
    {
        "id": 12,
        "name": "uber_eats",
        "postNum": 0
    },
    {
        "id": 13,
        "name": "announcement",
        "postNum": 0
    },
    {
        "id": 14,
        "name": "instaclone",
        "postNum": 0
    },
    {
        "id": 15,
        "name": "type_test",
        "postNum": 3
    }
]