GET api/community/community
- Token is optional.
- If a token is present, non-publicly visible clubs will also be shown.
search={string}
to search for Thai name, English name, and description.
status={string}
exclude_own={boolean}
url_id={string}
will return a single item is found, otherwise, a status of 404
.
GET api/community/community/me
- Token is required.
GET api/community/community/{int}
- Token is optional.
- If a token is present, non-publicly visible clubs will also be retrievable.
GET api/community/club
- Token is optional.
- If a token is present, non-publicly visible clubs will also be shown.
search={string}
to search for Thai name, English name, and description.
club_type={int}
is_official={boolean}
status={string}
exclude_own={boolean}
url_id={string}
will return a single item is found, otherwise, a status of 404
.
GET api/community/club/{int}
- Token is optional.
- If a token is present, non-publicly visible clubs will also be retrievable.
POST api/community/club
{
"name_th": "string",
"name_en": "string",
"description": "string",
"external_links": "string",
"logo": "image",
"banner": "image",
"is_accepting_requests": "boolean",
"founded_date": "date",
"status": "string (R, C, D)",
"club_type": "int"
}
- Token is required.
- Must be a student.
PUT api/community/club/{int}
PATCH api/community/club/{int}
{
"name_th": "string",
"name_en": "string",
"description": "string",
"external_links": "string",
"logo": "image",
"banner": "image",
"is_accepting_requests": "boolean",
"founded_date": "date",
"status": "string (R, C, D)",
"club_type": "int"
}
- Token is required.
- Must be a student.
- Must have a membership with a position of 2 or 3.
GET api/community/club/me
- Token is required.
In case of official clubs, 3 additional fields can be used in PUT
and PATCH
requests.
{
"url_id": "string",
"is_publicly_visible": "boolean",
"room": "string"
}
DELETE api/community/club/{int}
- Token is required.
- Must be a student.
- Must have a membership with a position of 3.
- Must not be an official club.
GET api/community/event
- Token is optional.
- If a token is present, non-publicly visible events will also be shown.
search={string}
to search for Thai name, English name, description, and location.
event_type={int}
event_series={int}
is_approved={boolean}
is_cancelled={boolean}
exclude_community_events={boolean}
exclude_own={boolean}
url_id={string}
will return a single item is found, otherwise, a status of 404
.
GET api/community/event/me
- Token is required.
exclude_community_events={boolean}
GET api/community/event/{int}
- Token is optional.
- If a token is present, non-publicly visible events will also be retrievable.
POST api/community/event
{
"name_th": "string",
"name_en": "string",
"description": "string",
"external_links": "string",
"logo": "image",
"banner": "image",
"is_accepting_requests": "boolean",
"location": "string",
"start_date": "date",
"end_date": "date",
"start_time": "time",
"end_time": "time",
"is_cancelled": "boolean",
"event_type": "int",
"event_series": "int"
}
- Token is required.
- Must be a student.
PUT api/community/event/{int}
PATCH api/community/event/{int}
{
"name_th": "string",
"name_en": "string",
"description": "string",
"external_links": "string",
"logo": "image",
"banner": "image",
"is_accepting_requests": "boolean",
"location": "string",
"start_date": "date",
"end_date": "date",
"start_time": "time",
"end_time": "time",
"is_cancelled": "boolean",
"event_type": "int",
"event_series": "int"
}
- Token is required.
- Must be a student.
- Must have a membership with a position of 2 or 3.
In case of approved events, 2 additional fields can be used in PUT
and PATCH
requests.
{
"url_id": "string",
"is_publicly_visible": "boolean",
}
DELETE api/community/event/{int}
- Token is required.
- Must be a student.
- Must have a membership with a position of 3.
- Must not be an approved event.
GET api/community/event/community
- Token is optional.
- If a token is present, non-publicly visible events will also be shown.
search={string}
to search for Thai name, English name, description, and location.
event_type={int}
event_series={int}
is_approved={boolean}
is_cancelled={boolean}
created_under={int}
allows_outside_participators={boolean}
exclude_own={boolean}
url_id={string}
will return a single item is found, otherwise, a status of 404
.
GET api/community/event/community/me
- Token is required.
GET api/community/event/community/{int}
- Token is optional.
- If a token is present, non-publicly visible events will also be retrievable.
POST api/community/event/community
{
"name_th": "string",
"name_en": "string",
"description": "string",
"external_links": "string",
"logo": "image",
"banner": "image",
"is_accepting_requests": "boolean",
"location": "string",
"start_date": "date",
"end_date": "date",
"start_time": "time",
"end_time": "time",
"is_cancelled": "boolean",
"allows_outside_participator": "boolean",
"event_type": "int",
"event_series": "int",
"created_under": "int"
}
- Token is required.
- Must be a member with a position of 1, 2, or 3 in the community created under as described in the field
created_under
, otherwise, a status code of400
will be returned. - If attempted to create under other events, a status code of
400
will be returned.
PUT api/community/event/community/{int}
PATCH api/community/event/community/{int}
{
"name_th": "string",
"name_en": "string",
"description": "string",
"external_links": "string",
"logo": "image",
"banner": "image",
"is_accepting_requests": "boolean",
"location": "string",
"start_date": "date",
"end_date": "date",
"start_time": "time",
"end_time": "time",
"is_cancelled": "boolean",
"allows_outside_participator": "boolean",
"event_type": "int",
"event_series": "int",
}
- Token is required.
- Must be a member with a position of 2 or 3 in the community created under as described in the field
created_under
, or a member with a position of 2 or 3 of the community event.
DELETE api/community/event/community/{int}
- Token is required.
- Must be a member with a position of 3 in the community created under as described in the field
created_under
, or a member with a position of 3 of the community event.
GET api/community/lab
- Token is optional.
- If a token is present, non-publicly visible labs will also be shown.
search={string}
to search for Thai name, English name, description, and tags.
status={string}
exclude_own={boolean}
url_id={string}
will return a single item is found, otherwise, a status of 404
.
GET api/community/lab/me
- Token is required.
GET api/community/lab/{int}
- Token is optional.
- If a token is present, non-publicly visible labs will also be retrievable.
POST api/community/lab
{
"name_th": "string",
"name_en": "string",
"url_id": "string",
"description": "string",
"external_links": "string",
"logo": "image",
"banner": "image",
"is_accepting_requests": "boolean",
"room": "string",
"founded_date": "date",
"tags": "string",
"status": "string (R, C, D)",
}
- Token is required.
- Must be a lecturer.
PUT api/community/lab/{int}
PATCH api/community/lab/{int}
{
"name_th": "string",
"name_en": "string",
"url_id": "string",
"description": "string",
"external_links": "string",
"logo": "image",
"banner": "image",
"is_accepting_requests": "boolean",
"room": "string",
"founded_date": "date",
"tags": "string",
"status": "string (R, C, D)",
}
- Token is required.
- Must be a lecturer.
- Must have a membership with a position of 2 or 3.
DELETE api/community/lab/{int}
- Token is required.
- Must be a lecturer.
- Must have a membership with a position of 3.