less than 1 minute read

모집중인 그룹들 목록 반환. query로 관심분야가 전달되면 관심분야에 해당하는 그룹들 목록 반환.

GET http://3.135.231.171/api/group

URI Parameter

query 값이 전달되지 않으면 모집중인 모든 그룹들 목록 반환

Name In Required Type Description
interest_id query false Long 관심분야 id

Response

Status code Type Description
200 OK Iterable<Party> 그룹 목록

예제 1

Sample Request

GET http://3.135.231.171/api/group

Sample Response

Status code: 200

[
    {
        "id": 2,
        "name": "그룹2",
        "interest": {
            "id": 1,
            "subject": "workout"
        },
        "goal": "목표",
        "maximumNumberOfPeople": 10,
        "recruit": true
    },
    {
        "id": 3,
        "name": "그룹3",
        "interest": {
            "id": 2,
            "subject": "job"
        },
        "goal": "목표",
        "maximumNumberOfPeople": 10,
        "recruit": true
    },
    {
        "id": 4,
        "name": "그룹4",
        "interest": {
            "id": 3,
            "subject": "programming"
        },
        "goal": "목표",
        "maximumNumberOfPeople": 10,
        "recruit": true
    }
]

예제 2

Sample Request

GET http://3.135.231.171/api/group?interest_id=1

Sample Response

Status code: 200

[
    {
        "id": 2,
        "name": "그룹2",
        "interest": {
            "id": 1,
            "subject": "workout"
        },
        "goal": "목표",
        "maximumNumberOfPeople": 10,
        "recruit": true
    }
]

Categories: ,

Updated: