Retrieve a list of posts, providing the filters and pagination.
Query Parameters
Name
Type
Description
filter_type
string
Type of posts to retrieve. Only "notice" or "lostfound" values are allowed.
start_index
number
The response contains the latest posts, starting from the start_index-th one. Default value is 0 if not provided. Should be larger or equal than 0.
max_size
number
Maximum number of posts to retrieve. Should be larger than 0 and lesser or equal than 64.
[
{
"sid": <number, sid of the post, NOT NULL>,
"type": "notice" | "lostfound",
"title_kr": <string, korean title of the post>,
"title_en": <string, english title of the post>,
"created_time": <timestamp of the created time, NOT NULL>,
"thumbnail": <post에 이미지가 딸려 있다면 첫 번째 이미지의 URL, 없으면 null>
}
]
{
"sid": <number, sid, NOT NULL>,
"type": "notice" | "lostfound",
"title_kr": <string, korean title of the post>,
"title_en": <string, english title of the post>,
"created_time": <timestamp, time of creation, NOT NULL>,
"content_kr": <string, URL containing the korean content>,
"content_en": <string, URL containing the english content>,
"content_img": [
<string, URL of the image attached to this post>
]
}
{
"msg": "invalid sid"
}
{
"msg": "post does not exist"
}
{
"msg": "server error"
}
{
"notice": <number of notice posts>
"lostfound": <number of lostfound posts>
}
{
"msg": "server error"
}
[
{
"sid": <number, sid of the image, NOT NULL>,
"url": <string, url of the image, NOT NULL>,
"post_sid": <string, sid of the post, NOT NULL>
}
]
{
"notice": <number of images attached to notice posts.>
"lostfound": <number of images attached to lostfound posts.>
}
{
"msg": "server error"
}
{
"msg": "invalid <parameter name>"
}
{
"msg": "login required"
}
{
"msg": "server error"
}
{
"state": 0 | 1 // 0 for empty, 1 for using
"timestamp": <timestamp of the record, NOT NULL>
}
{
"msg": "invalid room number"
}
{
"msg": "room does not exist"
}
{
"msg": "server error"
}
[
{
"room_number": <integer (at least 1), NOT NULL>,
"state": 0 | 1, // 0 for empty, 1 for using
"timestamp": <timestamp of the record, NOT NULL>
}
]
{
"msg": "no room data exists"
}
{
"msg": "server error"
}
{
"msg": "login success"
}
{
"msg": "password field required"
}
{
"msg": "wrong password"
}
{
"msg": "server error"
}
{
"msg": "server error"
}
{
"msg": "server error"
}
{
"msg": "invalid password"
}
{
"msg": "server error"
}
[
{
"sid": <sid of the noti, NOT NULL>,
"noti_kr": <noti content in korean>,
"noti_en": <noti content in english>,
"created_time": <time of creation, NOT NULL>
}
]
{
"msg": "invalid max_size"
}
{
"msg": "server error"
}
{
"sid": <sid of the created notification>,
"noti_kr": <noti content in korean>,
"noti_en": <noti content in english>,
"created_time": <time of creation>
}
{
"msg": "invalid <parameter name>"
}
{
"msg": "login required"
}
{
"msg": "server error"
}
{
"sid": <sid of the updated notification>,
"noti_kr": <updated korean content>,
"noti_en": <updated english content>,
"created_time": <time of creation (unchanged by update)>
}