API URL: /api/user/signup
Method: POST
response type: application/json
Input Format
{
email: string,
password: string,
name: string
age: int
gender : string
badminton : int,
basketball: int,
volleyball : int,
self_intro : str
}
Response Format
{
"user_id" : int
}
API URL: /api/user/signin
Method: POST
response response type: application/json
Input Format
{
email: string,
password: string,
}
Response Format
{
user_id : int
}
API URL: /api/user/profile
Method: PUT
response response type: application/json
Header
{
Authorization: "Bearer ${JWT}"
}
Input Format
{
name: string,
email : string
self_intro: string
badminton : int,
basketball: int,
volleyball : int,
tabletennis: int,
baseball: int,
tennis: int,
swimming: int,
gym: int
}
Response Format
{
user_id: int
}
API URL: /api/user/profile/password
Method: PUT
response response type: application/json
Header
{
Authorization: "Bearer ${JWT}"
}
Input Format
{
old_password: string,
new_password: string
}
Response Format
{
user_id : int
}
API URL: /api/user/profile/picture
Method: PUT
response response type: application/json
Header
{
Authorization: "Bearer ${JWT}"
}
Send as multipart/form-data
Input Format
{
picture: file
}
Response Format
{
picture : string
}
API URL: /api/user/profile
Method: GET
response type: application/json
Header
{
Authorization: "Bearer ${JWT}"
}
Query: user_id: int
Response Format
{
user_id: int,
name: string,
email: string,
picture: string,
badminton : int,
basketball: int,
volleyball : int,
qrcode: string
}
API URL: /api
Method: GET
response type: application/json
Header
{
Authorization: "Bearer ${JWT}"
}
Response Format
{
activity : [
{
reservation_id: int
picture : string
stadium_id: int
date: date
price: int
level: int
remain: int
},
{
reservation_id: int
picture : string
stadium_id: int
date: date
price: int
level: int
remain: int
},
{
reservation_id: int
picture : string
stadium_id: int
date: date
price: int
level: int
remain: int
}
]
}
API URL: /api/activity
Method: GET
response type: application/json
Header
{
Authorization: "Bearer ${JWT}"
}
Response Format
{
activity:[
{
id: int,
picture : string
name : string,
titile : string,
time : int,
price : int,
level : int,
remaining: int
},
{
id: int,
picture : string
name : string,
titile : string,
time : int,
price : int,
level : int,
remaining: int
},
...
]
}
API URL:/api/activity/:activity_id
Method: GET
response type: application/json
Header
{
Authorization: "Bearer ${JWT}"
}
status : "joinable" or "joined" Response Format
{
id: int,
title: string.
status: string,
peoples: int
time: int,
note: string,
max: int,
level: int,
fee: int,
date: date
stadium : {
name: string,
picture : url,
bathroom: bool,
air_condition: bool,
vending: bool,
water: bool
},
creator: {
id: int,
name: string,
picture: string
},
users :[
{
id: int,
name: string,
picture: string
}, ...
]
}
API URL:/api/activity/join/:id
Method: post
response type: application/json
Header
{
Authorization: "Bearer ${JWT}"
}
Response Format
{
activity_id: int
}
API URL:/api/activity/my/:status
status = "finish" or "pending"
Method: GET
response type: application/json
Header
{
Authorization: "Bearer ${JWT}"
}
Response Format
{
activity:[
{
id: int,
name : string
picture: string
},
{
id: int,
name : string
picture: string
},
...
]
}
API URL: /api/activity/leave/activity_is
Method: DELETE
Header
{
Authorization: "Bearer ${JWT}"
}
Response Format
{
activity_id: int
}
API URL: /api/stadium/:catogory/
catogory: badminton, basketball, table_tennis, baseball
Method: GET
response type: application/json
Header
{
Authorization: "Bearer ${JWT}"
}
Response Format
{
stadium:[
{
statium_id: int,
name : string,
picture: string
},
{
statium_id: int,
name : string
picture : string
},
...
]
}
API URL: /api/stadium/:catogory/:stadium_id/:date
Method: GET
response type: application/json
Header
{
Authorization: "Bearer ${JWT}"
}
Response Format
{
data: {
times: {
09:00: string,
10:00: string,
11:00: string,
...
18:00: string
},
people: int,
bathroom: bool,
air_condition: bool,
vending: bool,
water: bool
}
}
API URL:/api/stadium/:catogory/:stadium_id
Method: GET
response type: application/json
Header
{
Authorization: "Bearer ${JWT}"
}
Response Format
{
name: string,
fee: string,
bathroom: bool,
air_condition: bool,
vending: bool,
water: bool
rule: string
}
API URL: /api/stadium/:catogory/:stadium_id/:date/:time
Method: POST
response type: application/json
Header
{
Authorization: "Bearer ${JWT}"
}
Input Format
{
stadium_id: int,
name: string,
people: int
level : int
desciption: string
}
Response Format
{
activity_id: int
}
API URL: /api/event/
Method: get
response type: application/json
Header
{
Authorization: "Bearer ${JWT}"
}
Response Format
{
event: [
{
stadium_id: int,
activity_id: int
stadium_name: string,
titile: string,
is_read: int,
message : string
}, ...
]
}
API URL: /api/event/read/:activity_id
Method: PUT
response type: application/json
Header
{
Authorization: "Bearer ${JWT}"
}
Response Format
{
order_id: int
}
API URL: /api/feedback/:stadium_id
Method: get
response type: application/json
Header
{
Authorization: "Bearer ${JWT}"
}
Response Format
{
stadium:
{
name: string,
fee: string,
bathroom: bool,
air_condition: bool,
vending: bool,
water: bool
}
}
API URL: /api/feedback/:stadium_id
Method: POST
response type: application/json
Header
{
Authorization: "Bearer ${JWT}"
}
Input Format
{
type: string
problem: string
}
Response Format
{
feedback_id: int
}