Authenticate the use and return the cookie back
-
URL :
/api/auth/login
-
Method :
POST
-
Auth required :
No
-
Parameters :
None
-
Body :
{ email: <String> password: <String> }
-
Status code :
200
Cookie:
jwt
Response Body:
{ success: true, isVerify: <true|false> }
-
Status code :
400
Response Body:
{ success: false, error: 'Email or password is incorrect' }
-
Status code :
500
Response Body:
{ success: false, error: <String> }
Register the new user
-
URL :
/api/auth/register
-
Method :
POST
-
Auth required :
No
-
Parameters :
None
-
Body :
{ email: <String> password: <String> firstname: <String> lastname: <String> }
-
Status code :
200
Cookie:
jwt
Response Body:
{ success: true }
-
Status code :
400
Response Body:
{ success: false, error: 'Email is used' }
-
Status code :
500
Response Body:
{ success: false, error: <String> }
Get user profile
-
URL :
/api/auth/profile
-
Method :
GET
-
Auth required :
YES
-
Parameters :
None
-
Body :
None
-
Status code :
200
Cookie:
jwt
Response Body:
{ "userid": <String>, "firstname": "<String>, "lastname": <String>, "birthdate": <String>, "initial": <String>, "phoneno": <String>, "displayname": <String>, "bio": <String>, "avatar": <String of URL>, "createat": <String>, "updateat": <String>, "id": <String>, "role": <String>, "email": <String>, "verify": <boolean> }
-
Status code :
401
Response Body:
{ "success": false, "error": "Unauthorize" }
-
Status code :
500
Response Body:
{ success: false, error: <String> }
Verify the email that user input
-
URL :
/api/auth/verify/:token
-
Method :
GET
-
Auth required :
NO
-
Parameters :
None
-
Body :
None
-
Status code :
200
Response Body:
None but redirect to successful verification page
-
Status code :
200
Response Body:
None but redirect to error verification page
Logout user from the system
-
URL :
/api/auth/logout
-
Method :
GET
-
Auth required :
YES
-
Parameters :
None
-
Body :
None
-
Status code :
200
Response Body:
{ success: true }
-
Status code :
401
Response Body:
{ "success": false, "error": "Unauthorize" }
Register the new admin
-
URL :
/api/auth/admin/register
-
Method :
POST
-
Auth required :
YES
-
Parameters :
None
-
Body :
{ email: <String> password: <String> }
-
Status code :
201
Response Body:
{ success: true }
-
Status code :
400
Response Body:
{ success: false, error: 'Username is used' }
-
Status code :
500
Response Body:
{ success: false, error: <String> }
Let admin login to the system
-
URL :
/api/auth/admin/login
-
Method :
POST
-
Auth required :
NO
-
Parameters :
None
-
Body :
{ email: <String> password: <String> }
-
Status code :
201
Response Body:
{ success: true }
-
Status code :
400
Response Body:
{ success: false, error: <'User does not exist' | 'Password is not correct'> }
-
Status code :
500
Response Body:
{ success: false, error: <String> }
Return infomation of that admin
-
URL :
/api/auth/admin/profile
-
Method :
GET
-
Auth required :
YES
-
Parameters :
None
-
Body :
None
-
Status code :
200
Response Body:
{ "displayname": <String>, "firstname": <String>, "lastname": <String>, "avatar": <String>, "role": <String> }
-
Status code :
500
Response Body:
{ success: false, error: <String> }
Logout admin from the system
-
URL :
/api/auth/admin/logout
-
Method :
GET
-
Auth required :
YES
-
Parameters :
None
-
Body :
None
-
Status code :
200
Response Body:
{ success: true }
-
Status code :
401
Response Body:
{ "success": false, "error": "Unauthorize" }
Redirect to /api/auth/google (do not use axios, just use tag to redirect the URL)
- URL :
/api/auth/google
- Method :
GET
- Auth required :
No
- Parameters :
None
- Body :
None
-
Status code :
200
Response Body:
None
Callback route of Google authentication (use passport)
- URL :
/api/auth/google/callback
- Method :
GET
- Auth required :
No
- Parameters :
None
- Body :
None
-
Status code :
200
Response Body:
None
Edit profile of the admin
-
URL :
/api/admin/editAdminProfile
-
Method :
POST
-
Auth required :
YES
-
Parameters :
None
-
Body : It can contain empty string
{ "firstname": <String>, "lastname": <String>, "displayname": <String> }
-
Status code :
201
Response Body:
{ "firstname": <String>, "lastname": <String>, "displayname": <String> }
-
Status code :
500
Response Body:
{ success: false, error: <String> }
Edit admin's password
-
URL :
/api/admin/editPassword
-
Method :
POST
-
Auth required :
YES
-
Parameters :
None
-
Body :
{ "oldPassword": <String>, "newPassword": <String> }
-
Status code :
201
Response Body:
{ "success": true }
-
Status code :
400
Response Body:
{ success: false, error: "Old password doesn't match" }
-
Status code :
500
Response Body:
{ success: false, error: <String> }
Edit admin's profile picture
-
URL :
/api/admin/editProfilePic
-
Method :
POST
-
Auth required :
YES
-
Parameters :
None
-
Body : Multipart-formdata of profile_picture file
-
Status code :
201
Response Body:
{ "avatarURL": <String of URL> }
-
Status code :
500
Response Body:
{ success: false, error: <String> }
Get instructor availability days and times
- URL :
/instructor/availabilities
- Method :
GET
- Auth required :
Yes
- Headers :
Token
- Body :
none
- Params :
none
- Status code :
200
Response Body:{ "availabilities": [[int],[int],[int],[int],[int]], "price": int }
Update/Insert instructor availability days and times
- URL :
/instructor/availabilities
- Method :
POST
- Auth required :
Yes
- Body :
{ "availabilities": [[int],[int],[int],[int],[int]], "price": int }
- Params :
none
- Status code :
200
Response Body:none
Get List of Instructor who register to be a Private Tutor
- URL :
/instructor/list
- Method :
GET
- Auth required :
Yes
- Body :
none
- Params :
none
- Status code :
200
Response Body:{ "instructors": [ { "id", "name": String, "info": String, "rating": decimal, "ratingCount": int, } ], }
Get instructor's information
- URL :
/instructor/info
- Method :
GET
- Auth required :
Yes
- Body :
none
- Params :
{
"id": `instructorId`
}
- Status code :
200
Response Body:
{
"instructor": {
"id",
"name": String,
"info": String,
"text": String,
"rating": decimal,
"ratingCount": int,
"price": decimal
}
}
- URL :
/instructor/availability
- Method :
GET
- Auth required :
Yes
- Body :
none
- Params :
{
"id": `instructorId`,
"dates": `YYYY-MM-DD`
}
- Status code :
200
Response Body:
{
"times": {
[ int ]
}
}
Get List of Appointments that student appointed
- URL :
/student/appointments
- Method :
GET
- Auth required :
Yes
- Body :
none
- Params :
none
- Status code :
200
Response Body:
{
"appointments": [
{
"id",
"name": String,
"info": String,
"date": `DD MMM YYYY`,
"startTime": 'HH:MM',
"endTime": 'HH:MM',
"isAgree": 'Approved'/'Rejected'/'Pending'
}
],
}
Insert Appointment that student appointed
- URL :
/student/appointments
- Method :
POST
- Auth required :
Yes
- Body :
{
"id",
"startTime": timestamp,
"endTime": timestamp,
"price": int,
"members": [{ "id", "name"}]
}
- Params :
none
- Status code :
200
Response Body:none
Get List of Appointments for instructor
- URL :
/instructor/appointments
- Method :
GET
- Auth required :
Yes
- Body :
none
- Params :
none
- Status code :
200
Response Body:
{
"appointment": [
{
"appointmentID",
"id": studentID,
"name": String,
"date": `[DD, MM, YYYY]`,
"startTime": int,
"endTime": int,
"status": 'Approved'/'Rejected'/'Pending',
"members":[{"id","name"}]
}
],
}
Approve or Reject student's Appointment
- URL :
/instructor/appointments
- Method :
POST
- Auth required :
Yes
- Body :
{
"appointmentID",
"status": boolean
}
- Params :
none
- Status code :
200
Response Body:none
Get List of instructor's reviews
- URL :
/instructor/review
- Method :
GET
- Auth required :
Yes
- Body :
none
- Params :
{
"id": `instructorId`
}
- Status code :
200
Response Body:
{
"rating", [{
"score": int,
"desc": String,
"name": String,
"date": `YYYYMMDD`
}]
}
Student rate instructor in appointment
- URL :
/appointment/review
- Method :
POST
- Auth required :
Yes
- Body :
{
"id": AppointmentID,
"score": int,
"desc": String,
}
- Params :
none
- Status code :
200
Response Body:none
Searching student by first name or last name ( limit 5 )
- URL :
/utils/id
- Method :
GET
- Auth required :
Yes
- Body :
none
- Params :
{
"name": String,
"id": UserID
}
- Status code :
200
Response Body:
{
"students": [
{
"id",
"name": String
}
],
}
- URL :
/api/ads/getAdsType
- Method :
GET
- Auth required :
Yes
- Parameters :
None
- Body :
None
- Status code :
200
Response Body:
[{"typename" : String }]
- URL :
/api/ads/getAdsDetail
- Method :
GET
- Auth required :
Yes
- Parameters :
None
- Body :
{ "adid" : Integer }
- Status code :
200
Response Body:
"adid" : uuidv4 ,
"adstarttime" : String,
"adexpiretime" : String,
"filelocation" : String,
"ownerid" : uuidv4 ,
"firstname" : String,
"lastname" : String ,
"contactemail" : String,
"tagname" : String
}
- URL :
/api/ads/getPaidWaitingAds
- Method :
GET
- Auth required :
YES
- Parameters :
None
- Body :
None
- Status code :
200
Response Body:
"status" : String,
"adid" : Integer,
"adstarttime" : String,
"adexpiretime" : String,
"filelocation" : String,
"ownerid" : uuidv4,
"firstname" : String,
"lastname" : String ,
"contactemail" : String,
"tagname" : String
}
- URL :
/api/ads/getPaidRejectedAds
- Method :
GET
- Auth required :
YES
- Parameters :
None
- Body :
None
- Status code :
200
Response Body:
{
"status" : String,
"adid" : Integer,
"adstarttime" : String,
"adexpiretime" : String,
"filelocation" : String,
"ownerid" : uuidv4,
"firstname" : String,
"lastname" : String ,
"contactemail" : String,
"tagname" : String
}
- URL :
/api/ads/getPaidApprovedAds
- Method :
GET
- Auth required :
YES
- Parameters :
None
- Body :
None
- Status code :
200
Response Body:
"status" : String,
"adid" : Integer,
"adstarttime" : String,
"adexpiretime" : String,
"filelocation" : String,
"ownerid" : uuidv4,
"firstname" : String,
"lastname" : String ,
"contactemail" : String,
"tagname" : String
}
- URL :
/api/ads/getAdsTags
- Method :
GET
- Auth required :
YES
- Parameters :
None
- Body :
None
- Status code :
200
Response Body:
[{
"tagname" : String
}]
- URL :
/api/ads/getAdstoPay
- Method :
GET
- Auth required :
YES
- Parameters :
None
- Body :
None
- Status code :
200
Response Body:
[{
"firstname":String,
"lastname":String,
"adid": Integer,
"type": String,
"adstarttime" : String,
"adexpiretime" : String,
"price" : Double,
"contactemail" : String,
"filelocation" : String
}]
- URL :
/api/ads/getTotalAdsPrice
- Method :
GET
- Auth required :
YES
- Parameters :
None
- Body :
None
- Status code :
200
Response Body:
{
"totalprice" : Integer,
"count" : Integer
}
- URL :
/api/ads/getMyAds
- Method :
GET
- Auth required :
YES
- Parameters :
None
- Body :
None
- Status code :
200
Response Body:
{
"firstname":String,
"lastname":String,
"adid": Integer,
"type": Integer,
"adstarttime" : String,
"adexpiretime" : String,
"status" : String,
"contactemail" : String,
"filelocation" : String,
"ownerid" : uuidv4
}
- URL :
/api/ads/getAdsToBills
- Method :
GET
- Auth required :
Yes
- Parameters :
None
- Body :
None
- Status code :
200
Response Body:
{
"adid" : Integer,
"amount" : Double
}
- URL :
/api/ads/getBillAdsTotal
- Method :
GET
- Auth required :
Yes
- Parameters :
None
- Body :
None
- Status code :
200
Response Body:
{
"totalprice" : Integer
}
- URL :
/api/ads/addAds
- Method :
POST
- Auth required :
Yes
- Parameters :
NONE
- Body :
{
"type" : String,
"adtag" : String,
"dstarttime" : String,
"adexpiretime" : String,
"contactemail" : String,
"imglocation" : String,
"status" : String,
"ownerid" : uuidv4
}
- URL :
/api/ads/deleteAds
- Method :
POST
- Auth required :
Yes
- Parameters :
NONE
- Body :
{ adid: uuidv4 }
- Status code :
200
Response Body:
{ "success": true }
- URL :
/api/ads/upload/picture
- Method :
POST
- Auth required :
Yes
- Parameters :
NONE
- Body :
{ files: files }
- Status code :
200
Response Body:
{ "success": true }
- URL :
/api/ads/AddNewAdsBills
- Method :
POST
- Auth required :
Yes
- Parameters :
None
- Body :
{
"adlist" : [{
"adid" : Integer,
"price" : Integer
}]
}
- Status code :
200
Response Body:
{ "success": true }
- URL :
/api/ads/AddAdsTransaction
- Method :
POST
- Auth required :
Yes
- Parameters :
None
- Body :
{
"adlist" : [{
"adid" : Integer,
"amount" : Integer
}]
}
- Status code :
200
Response Body:
{ "success": true }
- URL :
/api/coupon/upload/picture
- Method :
POST
- Auth required :
Yes
- Parameters :
NONE
- Body :
{ files: files }
- Status code :
200
Response Body:
{ "success": true }
- URL :
/api/coupon/createCodeForSale
- Method :
POST
- Auth required :
Yes
- Parameters :
None
- Body :
{
"codename" : String,
"description": String,
"discount": Integer,
"coinprice": Integer,
"duration": Integer,
"img": String,
"minprice" : Integer,
"uselimit" : Integer,
"codetype" : String
}
- Status code :
200
Response Body:
{ "success": true }
- URL :
/api/coupon/GetCodeType
- Method :
GET
- Auth required :
Yes
- Parameters :
None
- Body :
None
- Status code :
200
Response Body:
[{
"codetype" : String
}]
- URL :
/api/coupon/UseCode
- Method :
POST
- Auth required :
Yes
- Parameters :
None
- Body :
{ "pcode": String }
- Status code :
200
Response Body:
{ "success": true}
- Status code :
400
Response Body:
{ "success": true,
"reason": String
}
- URL :
/api/coupon/GetDiscountFromCoupon
- Method :
GET
- Auth required :
Yes
- Parameters :
None
- Body :
{ "pcode": String }
- Status code :
200
Response Body:
{ "discount": Integer }
- URL :
/api/coupon/getDataFromTable
- Method :
GET
- Auth required :
Yes
- Parameters :
None
- Body :
None
- Status code :
200
Response Body:
{
"pcode": String,
"codetype" String
}
- URL :
/api/coupon/getCouponDetail
- Method :
GET
- Auth required :
Yes
- Parameters :
id : couponid
- Body :
None
- Status code :
200
Response Body:
{ "ccid": Integer,
"ccname": String,
"description": String,
"discount": Double,
"coin_use": Integer,
"duration": Integer,
"createby": uuidv4,
"picture": String,
"min_total" : Integer,
"isvisible" : boolean,
"codelimit" : Integer
}
- URL :
/api/coupon/getCouponById
- Method :
GET
- Auth required :
Yes
- Parameters :
"id":ccid
- Body : `None'
- Status code :
200
Response Body:
{ "ccid": Integer,
"ccname": String,
"description": String,
"discount": Double,
"coin_use": Integer,
"duration": Integer,
"createby": uuidv4,
"picture": String,
"min_total" : Integer,
"isvisible" : boolean,
"codelimit" : Integer
}
- URL :
/api/coupon/updateStatus
- Method :
POST
- Auth required :
Yes
- Parameters :
"id":ccid<String>, "boo":boolean
- Body :
None
- Status code :
200
Response Body:
{
"success": true,
"id": Integer,
"boo" : Boolean
}
- Status code :
400
Response Body:
{
"Error": 400
}
- URL :
/api/coupon/getCodeById
- Method :
GET
- Auth required :
Yes
- Parameters :
"id" : ccid<String>
- Body :
None
- Status code :
200
Response Body:
{
"pcode" : String
}
- URL :
/api/coupon/getCodeList
- Method :
GET
- Auth required :
Yes
- Parameters :
"id" : userid<String>
- Body :
None
- Status code :
200
Response Body:
[{
"pcode" : String,
"expiretime": String,
"ccname" : String,
"isused" : Boolean,
"picture" : String
}]
- URL :
/api/coupon/getUsedCodeList
- Method :
GET
- Auth required :
Yes
- Parameters :
"id" : userid<String>
- Body :
None
- Status code :
200
Response Body:
[{
"pcode" : String,
"expiretime": String,
"ccname" : String,
"isused" : Boolean,
"picture" : String
}]
- URL :
/api/coupon/getExpiredCodeList
- Method :
GET
- Auth required :
Yes
- Parameters :
"id" : userid<String>
- Body :
None
- Status code :
200
Response Body:
[{
"pcode" : String,
"expiretime": String,
"ccname" : String,
"isused" : Boolean,
"picture" : String
}]
- URL :
/api/coupon/getPrivateCodeList
- Method :
GET
- Auth required :
Yes
- Parameters :
"id" : userid<String>
- Body :
None
- Status code :
200
Response Body:
[{
"pcode" : String,
"expiretime": String,
"ccname" : String,
"isused" : Boolean,
"picture" : String
}]
- URL :
/api/udiscount/registerUemail
- Method :
POST
- Auth required :
Yes
- Parameters :
None
- Body :
{
"localPart" : String,
"domainName" : String,
}
- Status code :
200
Response Body:
{
"success": true
}
- URL :
/api/udiscount/getUniversityList
- Method :
GET
- Auth required :
Yes
- Parameters :
None
- Body :
None
- Status code :
200
Response Body:
[{
"universitydomain" : String
}]
- URL : `/api/coin/getCodeListOfCoin
- Method :
GET
- Auth required :
Yes
- Parameters :
None
- Body :
None
- Status code :
200
Response Body:
[{
"id": Integer
"name": String
"description": String
"discount": Integer
"coinUse": Integer
"endtime": String
"picture": String
"minTotal": Integer
"isvisible": Boolean
"codelimit": Integer
}]
- URL : `/api/coin/getCodeListOfLPublic
- Method :
GET
- Auth required :
Yes
- Parameters :
None
- Body :
None
- Status code :
200
Response Body:
[{
"id": Integer
"name": String
"description": String
"discount": Integer
"coinUse": Integer
"endtime": String
"picture": String
"minTotal": Integer
"isvisible": Boolean
"codelimit": Integer
}]
- URL : `/api/coin/getCodeListOfPublic
- Method :
GET
- Auth required :
Yes
- Parameters :
None
- Body :
None
- Status code :
200
Response Body:
[{
"id": Integer
"name": String
"description": String
"discount": Integer
"coinUse": Integer
"endtime": String
"picture": String
"minTotal": Integer
"isvisible": Boolean
"codelimit": Integer
}]
- URL :
/api/kahoot/rooms
- Method :
GET
- Auth required :
Yes
- Parameters :
None
- Body :
None
- Status code :
200
Response Body:rooms
- URL :
/api/kahoot/question/:sessionid
- Method :
GET
- Auth required :
None
- Parameters :
sessionid
- Body :
None
- Status code :
200
Response Body:room,question,answerAll,correct
- URL :
/api/kahoot/roomHistory
- Method :
GET
- Auth required :
None
- Parameters :
None
- Body :
None
- Status code :
200
Response Body:roomHistory
- URL :
/api/kahoot/roomHistory
- Method :
POST
- Auth required :
None
- Parameters:
None
- Body :
roomid, pin, isavailable
- Status code :
200
Response Body:room
- URL :
/api/kahoot/roomHistoryplayer
- Method:
POST
- Auth required:
Yes
- Parameters :
None
- Body :
sessionid, point
- Status code :
200
Response Body:player
- URL :
/api/kahoot/roomHistoryplayerFirstTime
- Method:
POST
- Auth required :
Yes
- Parameters :
None
- Body :
sessionid
- Status code :
200
Response Body:player
- URL :
/api/kahoot/createQuiz
- Method:
POST
- Auth required :
Yes
- Parameters :
None
- Body :
name, description, quesionList, picturepath
- Status code :
200
Response Body:result, question
- URL :
/api/kahoot/player
- Method:
POST
- Auth required :
Yes
- Parameters:
None
- Body :
nameforplay
- Status code :
201
Response Body:player
- URL :
/api/kahoot/sessionid/:pin
- Method :
GET
- Auth required :
None
- Parameters :
pin
- Body :
None
- Status code :
200
Response Body:exactlyRoom
- URL :
/api/kahoot/sessionid/:pin
- Method :
GET
- Auth required :
None
- Parameters :
pin
- Body :
None
- Status code :
200
Response Body:exactlyRoom
- URL :
/api/kahoot/getRankScore/:sessionid
- Method :
GET
- Auth required :
None
- Parameters :
sessionid
- Body :
None
- Status code :
200
Response Body:rank,score
- URL:
/api/kahoot/getRankScorePlayer/:sessionid
- Method:
GET
- Auth required :
None
- Parameters :
sessionid
- Body :
None
- Status code :
200
Response Body:rank,score
- URL :
/api/kahoot/getRankScorePlayer/:sessionid
- Method :
POST
- Auth required :
None
- Parameters :
None
- Body :
None
- Status code :
None
Response Body:result
getChatlist
- URL :
/chat/getChatlist
- Method :
GET
- Auth required :
Yes
- Body :
none
- Params :
none
- Status code :
200
Response Body :
{chatroomid: <integer>, firstName: <varchar>, roomname: <varchar>, message: <varchar>, sendtime: <timestamp>}
getUserprofile
- URL :
/chat/getUserprofile
- Method :
GET
- Auth required :
Yes
- Body :
none
- Params :
none
- Status code :
200
Response Body :
{ userID: <uuid>, userFirstName: <varchar>, userLastName: <varchar>, userNickName: <varchar>, profilePicture: <filepath>',}
getgetInvitationList
- URL :
/chat/getInvitationList
- Method :
GET
- Auth required :
Yes
- Body :
none
- Params:
none
- Status code :
200
Response Body :
invitations: [ { invitaionID: <Integer>, chatRoomID: <Integer>, chatRoomName: <varchar>, invitor: <varchar>, profilePicture: <path> }
getSearchResult
- URL: `/chat/getSearchResult
- Method:
GET
- Auth required:
Yes
- Body:
none
- Params:
none
- Status code :
200
Response Body :
users: [ { userID: <uuid>, userFirstName: <varchar> , userLastName: <varchar> , display: <varchar> , userProfile: <path> }
acceptInvitation
- URL: `/chat/acceptInvitation
- Method:
POST
- Auth required:
Yes
- Body:
{
"chatroomid" : Integer
"userid" : uuid
" nickname" : String
"sender_color" : String
"receiver_color" : String
"hide" : Boolean
}
- Params :
none
- Status code :
200
Response Body : Success : true
getChatroomDetail
- URL :
/chat/getChatroomDetail
- Method :
GET
- Auth required:
Yes
- Body:
none
- Params :
none
- Status code :
200
Response Body :
chatRoomID: 2,
chatRoomName: <varchar>,
themeColor: {
sendColor: <varchar>,
recieveColor: <varchar>,
},
membersID: [uuid,uuid,uuid,uuid],
messages: [ { system: <Boolean>,
sticker: <Boolean>,
message: <varchar>,
sendTime: <timestamp>,
reader: [
{
readerID: <uuid>,
readTime: <timestamp>,
},
{
readerID: <uuid>,
readTime: <timestamp>,
},
{
readerID: <uuid>,
readTime: <timestamp>,
},
],
}
getChatRoomProfile
- URL :
/chat/getChatRoomProfile
- Method :
GET
- Auth required:
Yes
- Body:
none
- Params :
none
- Status code :
200
Response Body :
{ chatRoomID: <Integer>, chatRoomProfilePicture: <path> }
declineInvitation
- URL :
/chat/declineInvitation
- Method :
Post
- Auth required:
Yes
- Body:
{ invitationid = Integer inviteeid = uuid }
- Params :
none
- Status code :
200
Response Body :
{ success : true}
hideChatroom
- URL :
/chat/hideChatroom
- Method :
Post
- Auth required:
Yes
- Body:
{ hide = Boolean chatroomid = Integer userid = uuid }
- Params :
none
- Status code :
200
Response Body :
{ success : true}
leaveChatRoom
- URL :
/chat/leaveChatRoom
- Method :
Post
- Auth required:
Yes
- Body:
{ userid = uuid chatroomid = Integer }
- Params :
none
- Status code :
200
Response Body :
{ success : true}
deleteChatRoom
- URL :
/chat/deleteChatRoom
- Method :
Post
- Auth required:
Yes
- Body:
{ chatroomid = Integer }
- Params :
none
- Status code :
200
Response Body :
{ success : true}
sendMessage
- URL :
/chat/sendMessage
- Method :
Post
- Auth required:
Yes
- Body:
{ message = String sendtime = timestamo chatroomid = Integer userid = uuid issticker = Boolean }
- Params :
none
- Status code :
200
Response Body :
{ success : true}
unsendMessage
- URL :
/chat/unsendMessage
- Method :
Post
- Auth required:
Yes
- Body:
{ messageid = Integer }
- Params :
none
- Status code :
200
Response Body :
{ success : true}
changeThemeColor
- URL :
/chat/unsendMessage
- Method :
Post
- Auth required:
Yes
- Body:
{ sender_color = String receiver_color = String chatroomid = Integer userid = uuid }
- Params :
none
- Status code :
200
Response Body :
{ success : true}
changeChatRoomName
- URL :
/chat/changeChatRoomName
- Method :
Post
- Auth required:
Yes
- Body:
{ roomname = String chatroomid = Integer }
- Params :
none
- Status code :
200
Response Body :
{ success : true}
readMessage
- URL :
/chat/readMessage
- Method :
Post
- Auth required:
Yes
- Body:
{ message = Integer userid = uuid sendtime = timestamp hide = Boolean }
- Params :
none
- Status code :
200
Response Body :
{ success : true}
readMessage
- URL :
/chat/readMessage
- Method :
Post
- Auth required:
Yes
- Body:
{ message = Integer userid = uuid sendtime = timestamp hide = Boolean }
- Params :
none
- Status code :
200
Response Body :
{ success : true}
uploadpic
- URL :
/chat/uploadpic
- Method :
Post
- Auth required:
Yes
- Body:
{ picture file }
- Params :
none
- Status code :
200
Response Body :
{ file : path }
changeChatRoomProfilePicture
- URL :
/chat/changeChatRoomProfilePicture
- Method :
GET
- Auth required:
Yes
- Body:
{ picture = path chatroomid = Integer }
- Params :
none
- Status code :
200
Response Body :
{ success : true }
addChatRoomMember
- URL :
/chat/addChatRoomMember
- Method :
GET
- Auth required:
Yes
- Body:
{ chatroomid = Integer userid 1 = uuid userid 2 = uuid }
- Params :
none
- Status code :
200
Response Body :
{ success : true }
deleteMember
- URL :
/chat/deleteMember
- Method :
GET
- Auth required:
Yes
- Body:
{ chatroomid = Integer userid = uuid deleterid = uuid }
- Params :
none
- Status code :
200
Response Body :
{ success : true }
sendStickerMessage
- URL :
/chat/sendStickerMessage
- Method :
GET
- Auth required:
Yes
- Body:
{ message = String chatroomid = Integer userid = uuid }
- Params :
none
- Status code :
200
Response Body :
{ success : true }
Get Leaderboard Rank
- URL:
/api/leaderboard
- Method:
GET
- Auth required:
Yes
- Body:
none
- Params:
none
-
Status code:
200
Response Body:
{ displayname: String titlename: String xp: String }
Get Path
- URL:
/api/learningpath
- Method:
GET
- Auth required:
Yes
- Body:
none
- Params:
none
-
Status code:
200
Response Body:
{ path_description: String path_name: String pathid: Integer }
Get Current Path
- URL:
/api/learningpath/path
- Method:
GET
- Auth required:
Yes
- Body:
none
- Params:
none
-
Status code:
200
Response Body:
{ complete: Boolean node_desc: String node_name: String nodeid: Integer parent_complete: Boolean parent_node_id: Integer pathid: Integer }
Get Exercise
- URL:
/api/learningpath/exercise
- Method:
GET
- Auth required:
Yes
- Body:
none
- Params:
none
-
Status code:
200
Response Body:
{ answer: String complete: Boolean nextNode: Integer node_name: Boolean nodeid: Integer path_name: String pathid: Integer question: String }
Get quizByNodeId
- URL:
/api/learningpath/quizByNodeId
- Method:
GET
- Auth required:
Yes
- Body:
none
- Params:
none
-
Status code:
200
Response Body:
{ nodeDetail: node_desc: String node_name: String nodeid: Integer parent_node_id: Integer path_name: String pathid: Integer questions: Array(4) 0:nodeid: Integer questionno: Integer questionname: String description: String choices: Array(4) 0: {choiceno: Integer, answer: String, iscorrect: Boolean} 1: {choiceno: Integer, answer: String, iscorrect: Boolean} 2: {choiceno: Integer, answer: String, iscorrect: Boolean} 3: {choiceno: Integer, answer: String, iscorrect: Boolean} 1: {nodeid: Integer, questionno: Integer, questionname: String, description: String, choices: Array(4)} 2: {nodeid: Integer, questionno: Integer, questionname: String, description: String, choices: Array(4)} 3: {nodeid: Integer, questionno: Integer, questionname: String, description: String, choices: Array(4)} }
Insert progress and score
-
URL :
/api/learningpath/completeNode
-
Method :
POST
-
Auth required :
Yes
-
Body :
score: Integer nodeid: Integer
-
Params :
none
-
Status code :
200
Response Body :
none
Insert Instructor information
-
URL :
api/instructor/register
-
Method :
POST
-
Auth required :
Yes
-
Body :
{ "degree" : String "expert" : String "bio" : String "degreepath" : String "expertpath" : String }
-
Params :
none
-
Status code :
200
Response Body :
none
Insert picture of instructor evidence
-
URL :
api/instructor/upload/evidence
-
Method :
POST
-
Auth required :
Yes
-
Body :
Photo File
-
Params :
none
-
Status code :
200
Response Body :
none
get Instructor approve
- URL :
api/instructor/profile
- Method :
GET
- Auth required :
Yes
- Body :
none
- Params :
none
-
Status code :
200
Response Body :
{ "isverified" : boolean "role" : String }
get Instructor information
- URL :
api/instructor/profileDetail
- Method :
GET
- Auth required :
Yes
- Body :
none
- Params :
none
-
Status code :
200
Response Body :
{ "bio" : String "degree" : [String] "expert" : [String] }
Get course that instructor is the owner
- URL :
api/instructor/courses
- Method :
GET
- Auth required :
Yes
- Body :
none
- Params :
none
-
Status code :
200
Response Body :
[ { "certpath" : String "coursedescription" : String "courseid" : String "coursename" : String "coursepicture" : String "havecert" : boolean "language" : String "ownerid" : String "price" : String "samplevideo" : String "status" : String } ]
Update Instructor information
- URL :
api/instructor/Editprofile
- Method :
POST
- Auth required :
Yes
- Body :
{
"degree" : String
"expert" : String
"bio" : String
}
- Params :
none
-
Status code :
200
Response Body :
Insert Course create information
-
URL :
api/instructor/course
-
Method :
POST
-
Auth required :
Yes
-
Body :
{ "name" : String "picturePath" : String "videoPath" : String "section" : [ { "name" : String "materials" : [{"path" : String}] "questions" : [ { "choices" : [String, String, String, String] "correct" : int "q" : String } ] "videos" : [ { "name" : String "path" : String } ] } ] }
-
Params :
none
-
Status code :
200
Response Body :
none
Get Course category
- URL :
api/instructor/categories
- Method :
GET
- Auth required :
Yes
- Body :
none
- Params :
none
-
Status code :
200
Response Body :
[ { "cataid" : int "cataname" : String } ]
Insert picture of the course
-
URL :
api/instructor/upload/picture
-
Method :
POST
-
Auth required :
Yes
-
Body :
Photo File
-
Params :
none
-
Status code :
200
Response Body :
none
Insert sample video of the course
-
URL :
api/instructor/upload/sampleVideo
-
Method :
POST
-
Auth required :
Yes
-
Body :
Video File
-
Params :
none
-
Status code :
200
Response Body :
none
Insert video of the section
-
URL :
api/instructor/upload/videos
-
Method :
POST
-
Auth required :
Yes
-
Body :
Video File
-
Params :
none
-
Status code :
200
Response Body :
none
Insert material of the section
-
URL :
api/instructor/upload/materials
-
Method :
POST
-
Auth required :
Yes
-
Body :
PDF File
-
Params :
none
-
Status code :
200
Response Body :
none
Delete Course
-
URL :
api/instructor/deletecourse
-
Method :
POST
-
Auth required :
Yes
-
Body :
{ "courseid" : String }
-
Params :
none
-
Status code :
200
Response Body :
none
Get Announcement
- URL :
/grader/ann
- Method :
GET
- Auth required :
Yes
- Body :
none
- Params :
none
-
Status code :
200
Response Body:{ data: {id: <integer>, title: <varchar>, description: <text>, adminid: <uuid>, isvisible: <boolean>, time: <timestamp>}}
Get Allcontest
- URL :
/grader/allcontest
- Method :
GET
- Auth required :
Yes
- Body :
none
- Params :
none
- Status code :
200
Response Body:{ data: {conno: <integer>, title: <varchar>, conruletype: <varchar>, description: <text>, starttime: <timestamp>, endtime: <timestamp>, statur: <boolean>, adminid: <uuid>}}
Get contestann
- URL :
/grader/contestann
- Method :
GET
- Auth required :
Yes
- Body :
none
- Params :
none
- Status code :
200
Response Body:{ data: {coannno: <integer>, title: <varchar>, description: <text>, conid: <integer>, adminid: <uuid>, isvisible: <boolean>, time: <time>}}
Get Alladminlog
- URL :
/grader/alladminlog
- Method :
GET
- Auth required :
Yes
- Body :
none
- Params :
none
- Status code :
200
Response Body:{ data: {logno: <integer>, title: <varchar>, detail: <text>, timestamp: <timestamp>, adminid: <uuid>}}
Get Allquestion
- URL :
/grader/allquestion
- Method :
GET
- Auth required :
Yes
- Body :
none
- Params :
none
- Status code :
200
Response Body:{ data: {id: <integer>, title: <varchar>, description: <text>, hint: <text>, intputdes: <text>, outputdes: <text>, timelimit: <integer>, memorylimit: <integer>, difficulty: <varchar>, visibility: <boolean>, ruletype: <varchar>, adminid: <uuid>}}
Get Alltag
- URL :
/grader/alltag
- Method :
GET
- Auth required :
Yes
- Body :
none
- Params :
none
- Status code :
200
Response Body:{ data: {tagid: <integer>, tagname: <varchar>}}
Get contest
- URL :
/grader/contest
- Method :
GET
- Auth required :
Yes
- Body :
none
- Params : { "id": integer }
- Status code :
200
Response Body:{ data: {conno: <integer>, title: <varchar>, conruletype: <varchar>, description: <text>, starttime: <timestamp>, endtime: <timestamp>, status: <boolean>, adminid: <uuid>}}
Get contestquestion
- URL :
/grader/conntestquestion
- Method :
GET
- Auth required :
Yes
- Body :
none
- Params : { "conno": integer }
- Status code :
200
Response Body:{ data: {conquestionno: <integer>, id: <integer>, difficulty: <varchar>, visibility: <boolean>, displayName: <varchar>, adminid: <uuid>}}
Get addexistingquestion
- URL :
/grader/addexistingquestion
- Method :
GET
- Auth required :
Yes
- Body :
none
- Params : { "id": integer }
- Status code :
200
Response Body:{ data: {id: <integer>, title: <varchar>}}
Get question
- URL :
/grader/question
- Method :
GET
- Auth required :
Yes
- Body :
none
- Params : { "id": integer }
- Status code :
200
Response Body:{ data: {id: <integer>, title: <varchar>, description: <text>, hint: <text>, intputdes: <text>, outputdes: <text>, timelimit: <integer>, memorylimit: <integer>, difficulty: <varchar>, visibility: <boolean>, ruletype: <varchar>, adminid: <uuid>}}
Get questionsample
- URL :
/grader/questionsample
- Method :
GET
- Auth required :
Yes
- Body :
none
- Params : { "id": integer }
- Status code :
200
Response Body:{ intput: <text>, output: <text>, sampleno: <integer>}}
Get questiontag
- URL :
/grader/questiontag
- Method :
GET
- Auth required :
Yes
- Body :
none
- Params : { "id":
questionid
}
- Status code :
200
Response Body:{ tagid: <integer>, tagname: <varchar>}}
Get questiontestcase
- URL :
/grader/questiontestcase
- Method :
GET
- Auth required :
Yes
- Body :
none
- Params : { "id":
questionid
}
- Status code :
200
Response Body:{ questionid: <integer>, fileno: <integer>, filepath: <varchar>}}
Post questiontestcase
- URL :
/grader/questiontestcase
- Method :
POST
- Auth required :
Yes
- Body :
none
- Params :
none
- Status code :
200
Response Body:none
Post Annoucement
- URL :
/grader/cann
- Method :
POST
- Auth required :
Yes
- Body : { "title": String, "description": String, "adminid": String, "visible": boolean; }
- Params :
none
- Status code :
200
Response Body:none
Post question
- URL :
/grader/cquestion
- Method :
POST
- Auth required :
Yes
- Body : { "title": String, "description": String, "hint": String, "intputDes": String, "outputDes": String, "timeLimit": Integer, "memoryLimit": Integer, "difficulty": String, "visibility": Boolean, "ruleType": String, "adminid": String, "newTags": Array of String, "existTags": Array of String; }
- Params :
none
- Status code :
200
Response Body:none
Post contestexistquestion
- URL :
/grader/ccontestexistquestion
- Method :
POST
- Auth required :
Yes
- Body : { "conno": Integer, "question": Array of Integer, "adminid": String, "totalquestion": Integer; }
- Params :
none
- Status code :
200
Response Body:none
Post questionsample
- URL :
/grader/ccontestexistquestion
- Method :
POST
- Auth required :
Yes
- Body : { "questionId": Integer, "samples": Array of String; }
- Params :
none
- Status code :
200
Response Body:none
Post contest
- URL :
/grader/ccontest
- Method :
POST
- Auth required :
Yes
- Body : { "title": String, "conRuleType": String, "description": String, "startTime": String, "endTime": String, "status": String, "adminid": String; }
- Params :
none
- Status code :
200
Response Body:none
Post contestann
- URL :
/grader/ccontestann
- Method :
POST
- Auth required :
Yes
- Body : { "title": String, "description": String, "conId": Integer, "adminId": String, "isVisible": Boolean; }
- Params :
none
- Status code :
200
Response Body:none
Post contestquestion
- URL :
/grader/ccontestquestion
- Method :
POST
- Auth required :
Yes
- Body : { "conid": Integer, "questionId": Integer, "adminid": String, "title": String; }
- Params :
none
- Status code :
200
Response Body:none
Put contest
- URL :
/grader/econtest
- Method :
PUT
- Auth required :
Yes
- Body : { "conno": Integer, "title": String, "conRuleType": String, "description": String, "startTime": String, "endTime": String, "status": String, "adminid": String; }
- Params :
none
- Status code :
200
Response Body:none
Put contestann
- URL :
/grader/econtestann
- Method :
PUT
- Auth required :
Yes
- Body : { "title": String, "description": String, "conId": Integer, "adminId": String, "isVisible": Boolean; }
- Params :
none
- Status code :
200
Response Body:none
Put question
- URL :
/grader/equestion
- Method :
PUT
- Auth required :
Yes
- Body : { "title": String, "description": String, "hint": String, "intputDes": String, "outputDes": String, "timeLimit": Integer, "memoryLimit": Integer, "difficulty": String, "visibility": Boolean, "ruleType": String, "adminid": String, "id": Integer; }
- Params :
none
- Status code :
200
Response Body:none
Put questionsample
- URL :
/grader/equestionsample
- Method :
PUT
- Auth required :
Yes
- Body : { "questionId": Integer, "sampleNo": Integer, "intput": String, "output": String; }
- Params :
none
- Status code :
200
Response Body:none
Put questiontestcase
- URL :
/grader/equestiontestcase
- Method :
PUT
- Auth required :
Yes
- Body : { "questionId": Integer, "fileNo": Integer, "filepath": String; }
- Params :
none
- Status code :
200
Response Body:none
Delete questiontestcase
- URL :
/grader/dquestiontestcase
- Method :
Delete
- Auth required :
Yes
- Body :
none
- Params : { "id": String}
- Status code :
200
Response Body:none
Delete questionsample
- URL :
/grader/dquestionsample
- Method :
Delete
- Auth required :
Yes
- Body :
none
- Params : { "id": String}
- Status code :
200
Response Body:none
Delete question
- URL :
/grader/dquestion
- Method :
Delete
- Auth required :
Yes
- Body :
none
- Params : { "id": String, "title": String, "adminid": String;}
- Status code :
200
Delete conquestion
- URL :
/grader/dconquestion
- Method :
Delete
- Auth required :
Yes
- Body :
none
- Params : { "questionid": Integer, "conid": String, "title": String, "adminid": String;}
- Status code :
200
Response Body:none
show sticker in sticker store
- URL :
/api/coin/stickers
- Method :
GET
- Auth required :
none
- Headers :
Token
- Body :
none
- Params :
none
- Status code :
200
- Response Body:
[
{
"id": int,
"title": String,
"price": int,
"img": String,
"type": int
}
]
show pack sticker each of sticker in payment sticker store
- URL :
/api/coin/stickers/:id
- Method :
GET
- Auth required :
none
- Body :
none
- Params :
none
- Status code :
200
- Response Body:
{
"mycoins": int,
"stickers": [
{
"stickername": String,
"stickerimg": String,
"stickerprice": int,
"stickernumber": int
}
]
}
show sticker which user has.
- URL :
/api/coin/stickerOwner
- Method :
GET
- Auth required :
yes
- Body :
none
- Params :
none
- Status code :
200
- Response Body:
{
"mycoins": int,
"stickers": [
{
"stickername": String,
"stickerimg": String,
"stickerprice": int,
"stickernumber": int
}
]
}
check user ever get daily reward
- URL :
/api/coin/dailyReward
- Method :
GET
- Auth required :
yes
- Body :
none
- Params :
none
- Status code :
200
- Response Body:
{
"canGet" : boolean
}
show coin owner in history
- URL :
/api/coin/coinOwner
- Method :
GET
- Auth required :
yes
- Body :
none
- Params :
none
- Status code :
200
- Response Body:
{
"amountofCoin" : int
}
update amount coin of user and insert sticker that user buy sticker.
- URL :
/api/coin/buySticker
- Method :
POST
- Auth required :
yes
- Body :
{
"stcikerId" : int
}
- Params :
none
- Status code :
201
- Response Body:
{
"amountofCoin" : int
}
update amount coin of user and insert coupon owner that user buy coupon.
- URL :
/api/coin/buyCoupon
- Method :
POST
- Auth required :
yes
- Body :
{
"pcode" : int
}
- Params :
none
- Status code :
201
- Response Body:
{
"coin" : int
}
if user who gonna winner Rank 1,2,3, User will get coin for reward.
- URL :
/api/coin/getCoinFromEdqiz
- Method :
POST
- Auth required :
yes
- Body :
{
"userIds" : String
}
- Params :
none
- Status code :
201
- Response Body:
{
"success" : boolean
}
Get the info of the question
- URL :
/api/grader/getPreviewQuestion
- Method :
GET
- Auth required :
No
- Parameters :
"offset" : Integer
- Body :
None
-
Status code :
200
Response Body:
{ "id" : Integer, "title" : String, "description" : String, "difficulty" : String }
-
Status code :
400
Response Error :
{ "message" : "Error" }
Get the total number of questions
- URL :
/api/grader/countAllQuestion
- Method :
GET
- Auth required :
No
- Parameters :
none
- Body :
None
-
Status code :
200
Response Body:
{ "count" : Integer }
-
Status code :
400
Response Error :
{ "message" : "Error" }
Get info of the announcement
- URL :
/api/grader/getAnnouncement
- Method :
GET
- Auth required :
No
- Parameters :
none
- Body :
None
-
Status code :
200
Response Body:
[ { "id" : Integer, "title" : String, "time" : Timestamp, "displayname" : String } ]
-
Status code :
400
Response Error :
{ "message" : "Error" }
Get info of the the contest
- URL :
/api/grader/getPreviewContest
- Method :
GET
- Auth required :
No
- Parameters :
none
- Body :
None
-
Status code :
200
Response Body:
[ { "conno": Integer, "title": String, "conruletype": String, "starttime": Timestamp, "endtime": Timestamp, "status": Boolean } ]
-
Status code :
400
Response Error :
{ "message" : "Error" }
Get the detail of the contest
- URL :
/api/grader/getContestDetail
- Method :
GET
- Auth required :
No
- Parameters :
"contestId" : Integer
- Body :
None
-
Status code :
200
Response Body:
{ "conno": Integer, "title": String, "description": String, "conruletype": String, "starttime": String, "endtime": String, "status": Boolean, "displayname": String }
-
Status code :
400
Response Error :
{ "message" : "Error" }
Get the all visible announcements in the contest
- URL :
/api/grader/getContestAnnouncement
- Method :
GET
- Auth required :
No
- Parameters :
"contestId" : Integer
- Body :
None
-
Status code :
200
Response Body:
[ { "coannno": Integer, "title": String, "description": String, "displayname": String, "time": Timestamp } ]
-
Status code :
400
Response Error :
{ "message" : "Error" }
Get all the problem in the particular contest
- URL :
/api/grader/getContestProblem
- Method :
GET
- Auth required :
No
- Parameters :
"contestId" : Integer
- Body :
None
-
Status code :
200
Response Body:
{ "id" : Integer, "title" : String, "conquestionno" : int, "difficulty" : String, "description" : String }
-
Status code :
400
Response Error :
{ "message" : "Error" }
Get all of the problem submissions in a particular contest
- URL :
/api/grader/getContestSubmission
- Method :
GET
- Auth required :
Yes
- Parameters :
"contestId" : Integer
- Body :
None
-
Status code :
200
Response Body:
[ { "whentime" : Timestamp, "displayname" : String, "status" : String, "conquestionno" : Integer, "language" : String, "time" : Integer, "memory" : Integer, "score" : Integer } ]
-
Status code :
400
Response Error :
{ "message" : "Error" }
Get all of the question tags
- URL :
/api/grader/getQuestionTag
- Method :
GET
- Auth required :
No
- Parameters :
None
- Body :
None
-
Status code :
200
Response Body:
[ { "tagid" : Integer, "tagname" : String } ]
-
Status code :
400
Response Error :
{ "message" : "Error" }
> Get the questions by tag
- URL :
/api/grader/getQuestionByTag
- Method :
GET
- Auth required :
No
- Parameters :
"tag": String
- Body :
None
-
Status code :
200
Response Body:
{ "tagid" : Integer, "title" : String, "description" : String, "difficulty" : String }
-
Status code :
400
Response Error :
{ "message" : "Error" }
​
Get the overview details of the contest
- URL :
/api/grader/getHomePreviewContest
- Method :
GET
- Auth required :
No
- Parameters :
None
- Body :
None
-
Status code :
200
Response Body:
{ "conno": Integer, "title": String, "description": String, "conruletype": String, "starttime": Timestamp, "endtime": Timestamp }
-
Status code :
400
Response Error :
{ "message" : "Error" }
Get the announcement details from the id of the announcement
- URL :
/api/grader/getAnnouncementById
- Method :
GET
- Auth required :
No
- Parameters :
"id" : Integer
- Body :
None
-
Status code :
200
Response Body:
{ "conno": Integer, "title": String, "description": String, "conruletype": String, "starttime": Timestamp, "endtime": Timestamp }
-
Status code :
400
Response Error :
{ "message" : "Error" }
​
Get the first six people from OI ranking
- URL :
/api/grader/getOIRankingTopSix
- Method :
GET
- Auth required :
No
- Parameters :
none
- Body :
None
-
Status code :
200
Response Body:
[ { "name" : String, "totalcorrect" : Integer, "avatar" : URL } ]
-
Status code :
400
Response Error :
{ "message" : "Error" }
​
Get the first six people from OI ranking
- URL :
/api/grader/getACMRankingTopSix
- Method :
GET
- Auth required :
No
- Parameters :
none
- Body :
None
-
Status code :
200
Response Body:
[ { "name": String, "totalcorrect": Integer, "avatar": URL } ]
-
Status code :
400
Response Error :
{ "message" : "Error" }
​
Get the detail of the announcement in the cotests
- URL :
/api/grader/getContestAnnouncementDetail
- Method :
GET
- Auth required :
No
- Parameters :
"id" : Integer, "contestId" : Integer
- Body :
None
-
Status code :
200
Response Body:
{ "coannno": Integer, "title": String, "description": String, "displayname": String, "time": Timestamp }
-
Status code :
400
Response Error :
{ "message" : "Error" }
​
Get the details of the problem in the contest
- URL :
/api/grader/getContestQuestionDetail
- Method :
GET
- Auth required :
No
- Parameters :
"id" : Integer, "contestId" : Integer
- Body :
None
-
Status code :
200
Response Body:
{ "conquestionno": Integer, "id": Integer, "title": String, "description": String, "hint": String, "intputdes": String, "outputdes": String, "timelimit": Integer, "memorylimit": Integer, "difficulty": String, "ruletype": String, "displayname": String }
-
Status code :
400
Response Error :
{ "message" : "Error" }
​
Get all of the test cases of the question
- URL :
/api/grader/getQuestionTestCase
- Method :
GET
- Auth required :
No
- Parameters :
"id" : Integer
- Body :
None
-
Status code :
200
Response Body:
[ { "questionid": Integer, "sampleno": Integer, "intput": String, "output": String } ]
-
Status code :
400
Response Error :
{ "message" : "Error" }
​
Get the details of the problem that is not in the contest
- URL :
/api/grader/getQuestionDetail
- Method :
GET
- Auth required :
No
- Parameters :
"id" : Integer
- Body :
None
-
Status code :
200
Response Body:
{ "id": Integer, "title": String, "description": String, "hint": String, "intputdes": String, "outputdes": String, "timelimit": Integer, "memorylimit": Integer, "difficulty": String, "ruletype": String, "displayname": String }
-
Status code :
400
Response Error :
{ "message" : "Error" }
​
Get all of the submissions of that problem
- URL :
/api/grader/getQuestionSubmission
- Method :
GET
- Auth required :
Yes
- Parameters :
"questionId" : Integer, "userId" : Integer
- Body :
None
-
Status code :
200
Response Body:
[ { "score": Integer, "status": String, "time": Integer, "memory": Integer, "displayname": String, "whentime": Timestamp }, ]
-
Status code :
400
Response Error :
{ "message" : "Error" }
​
Get the number of all questions that have that tag
- URL :
/api/grader/getCountQuestionByTag
- Method :
GET
- Auth required :
No
- Parameters :
"tag" : String
- Body :
None
-
Status code :
200
Response Body:
{ "count" : Integer }
-
Status code :
400
Response Error :
{ "message" : "Error" }
​
Get name and score of the top five users in the contest
- URL :
/api/grader/getContestRanking
- Method :
GET
- Auth required :
No
- Parameters :
"contestId" : Integer
- Body :
None
-
Status code :
200
Response Body:
[ { "displayname" : String "totalscore" : Integer } ]
-
Status code :
400
Response Error :
{ "message" : "Error" }
​
Sent the code to the online compiler.
-
URL :
/api/grader/submission
-
Method :
POST
-
Auth required :
Yes
-
Parameters :
None
-
Body :
{ "source_code": <base64 encode source-code>, "problem_id": <Integer>, "language": <Java|C|C++|Python3|Python2> }
-
Status code :
201
Response Body:
{ "attemptId" : Integer "tokens" : String <base64> }
-
Status code :
400
Response Error :
{ "message" : "Error" }
​
Return details of each courses
-
URL :
/api/course/getAllCourse
-
Method :
GET
-
Auth required :
NO
-
Parameters :
None
-
Body :
None
-
Status code :
200
Response Body:
{ "courseid": String, "coursename": String, "coursedescription": String, "coursepicture": String, "samplevideo": String, "price": integer, "language": String, "havecert": Boolean, "ownerid": String, "status": String, "certpath": String, "instructorid": String, "userid": String, "isverified": Boolean, "createat": String, "approveat": Date, "approver": String, "avatar": String, "wallpaper": String, "biography": String, "firstname": String, "lastname": String, "birthdate": Date, "initial": String, "phoneno": String, "displayname": String, "bio": String, "updateat": Date, "cataid": String, "cataname": String }
-
Status code :
400
Response Body:
{ success: false, error: String }
Return description of each courses in specific
-
URL :
/api/course/getCourseFromID
-
Method :
GET
-
Auth required :
YES
-
Parameters :
id: integer
-
Body :
None
-
Status code :
200
Response Body:
{ "approveat": Date, "approver": String, "avatar": String, "bio": String, "biography": String, "birthdate": Date, "certpath": String, "coursedescription": String, "courseid": String, "coursename": String, "coursepicture": String, "createat": String, "displayname": String, "firstname": String, "havecert": Boolean, "initial": String, "instructorid": String, "isOwn": Boolean, "isWishlist": Boolean, "isverified": Boolean, "language": String, "lastname": String, "ownerid": String, "phoneno": String, "price": String, "samplevideo": String, "status": String, "updateat": Date, "userid": String>, "wallpaper": String }
-
Status code :
400
Response Body:
{ error: String }
-
Status code :
500
Response Body:
{ success: false, error: String }
Return video, material, quiz of each courses
-
URL :
/api/course/getCourseSectionPart
-
Method :
GET
-
Auth required :
YES
-
Parameters :
id: integer
-
Body :
None
-
Status code :
200
Response Body:
{ "courseName": String, "id": String, "section": Array{ "ansChoice": Array, "choiceNow": Array, "questionNow": Integer, "sectionName": String, "submitValid": Integer, "submitYet": Integer, "time": Integer, "part": Array{ "id": Integer, "partDescript": String, "partName": String, "src": String, "type": Integer, "questionNum": Array{ "id": Integer, "question": String, "answer": Integer, "choice": Array } } } }
-
Status code :
400
Response Body:
{ success: false, error: <String> }
Show all support request
- URL :
/api/support
- Method :
GET
- Auth required :
Yes
- Parameters :
None
- Body :
None
-
Status code :
200
Response Body:
json{ data: {ticketid: <integer>, title: <varchar>, name: <varchar>, requesttime: <timestamp>, subname: <varchar>, typename: <varchar>}}
Create new request
- URL :
/api/support/create
- Method :
POST
- Auth required :
No
- Parameters :
None
- Body :
{name: <varchar>, email: <varchar>, title: <varchar>, content: <varchar>, priority: <integer>,subCat: <varchar>}
-
Status code :
200
Response Body:
json{ data: {name: <varchar>, email: <varchar>, title: <varchar>, content: <varchar>, priority: <integer>,subCat: <varchar>}}
Show information of each request
- URL :
/api/support/:id
- Method :
GET
- Auth required :
Yes
- Parameters :
id: <integer>
- Body :
None
-
Status code :
200
Response Body:
json{ data : {ticketid: <integer>, requesttime: <timestamp>, title: <varchar>, description: <varchar>, name: <varchar>, subname: <varchar>, typename: <varchar>}}
Create answer for request
- URL :
/api/support
- Method :
POST
- Auth required :
Yes
- Parameters :
None
- Body :
{id: <uuid>, answer: <string> }
-
Status code :
200
Response Body:
json{ success: true }
Show all forum
- URL :
/api/forum
- Method :
GET
- Auth required :
Yes
- Parameters :
None
- Body :
None
-
Status code :
200
Response Body:
json{ data: {forumid: <integer>, titlethread: <varchar>, userid: <uuid>, displayname: <varchar>, posttime: <timestamp>, subtypename: <varchar>, typename: <varchar>}}
Show all category
- URL :
/api/forum/category
- Method :
GET
- Auth required :
No
- Parameters :
None
- Body :
None
- Status code :
200
Response Body:json{ data: {typename: <varchar>} }
Show all sub category
- URL :
/api/forum/subcategory
- Method :
GET
- Auth required :
No
- Parameters :
None
- Body :
None
-
Status code :
200
Response Body:
json{ data: {typename: <varchar>, subtypename: <varchar>}}
Show information of each forums
- URL :
/api/forum/:id
- Method :
GET
- Auth required :
Yes
- Parameters :
id: <integer>
- Body :
None
-
Status code :
200
Response Body:
json{ data : {forumid: <integer>, titlethread: <varchar>, userid: <uuid>, displayname: <varchar>, posttime: <timestamp>, subcategoryiid: <integer>, content: <text>, isdelete: <boolean>, likes:<bigint>, comments:<bigint>, is_like: <uuid>, answerno: <integer>, anstime: <timestamp>, answer: <text> }}
show that is this forum liked ?
- URL :
/api/forum/like/:id
- Method :
POST
- Auth required :
Yes
- Parameters :
forumid : <integer>
- Body :
None
-
Status code :
201
Response Body:
None
Create new comment
- URL :
/api/forum/comment
- Method :
POST
- Auth required :
Yes
- Parameters :
None
- Body :
{id: <uuid>, comment: <string> }
-
Status code :
200
Response Body:
json{ data: {forumid: <integer>, answerno: <integer>, userid: <uuid>, anstime: <timestamp>, answer: <text>}}
Create new forum
- URL :
/api/forum/create
- Method :
POST
- Auth required :
Yes
- Parameters :
None
- Body :
{title: <varchar>, comment: <string> }
-
Status code :
200
Response Body:
json{ data: {userid: <uuid>, titlethread: <varchar>, subcategoryiid: <integer>, content: <text>}}
Show all forum in room which you select
- URL :
/api/forum/room/:roomname
- Method :
GET
- Auth required :
Yes
- Parameters :
roomname: <varchar>
- Body :
None
-
Status code :
200
Response Body:
json{ data : {forumid: <integer>, titlethread: <varchar>, userid: <uuid>, displayname: <varchar>, posttime: <timestamp>, subtypename: <varchar>, typename: <varchar>, categorytypeid: <integer>, content: <text>, isdelete: <boolean>, likes:<bigint>, comments:<bigint>, is_like: <uuid>, answerno: <integer>, anstime: <timestamp>, answer: <text> }}
Delete comment
- URL :
/api/forum/comment/:id
- Method :
POST
- Auth required :
Yes
- Parameters :
forumid : <integer>
- Body :
{answerno: <integer> }
-
Status code :
200
Response Body:
None
Delete forum
- URL :
/api/forum/:id
- Method :
DELETE
- Auth required :
Yes
- Parameters :
forumid : <integer>
- Body :
None
-
Status code :
200
Response Body:
None
Edit forum
- URL :
/api/forum/:id
- Method :
PUT
- Auth required :
Yes
- Parameters :
forumid : <integer>
- Body :
{content: <text>, titlethread: <varchar>, oldcontent: <text> }
-
Status code :
200
Response Body:
None
Search forum
- URL :
/api/forum/search
- Method :
POST
- Auth required :
Yes
- Parameters :
None
- Body :
{search: <string> }
-
Status code :
200
Response Body:
json{ data: {forumid: <integer>, titlethread: <varchar>, userid: <uuid>, displayname: <varchar>, posttime: <timestamp>, subtypename: <varchar>, typename: <varchar>,likes:<bigint>, comments:<bigint>, is_like: <uuid>}}
Get Categories
- URL :
/api/package/getCategories
- Method :
GET
- Auth required :
No
- Parameters :
None
- Body :
None
-
Status code :
200
Response Body:
{cateid: <integer>, cate_name: <varchar>}
-
Status code :
500
Response Error :
{msg: 'Not Found'}
Create package
- URL :
/api/package/createPackage
- Method :
POST
- Auth required :
Yes
- Parameters :
None
- Body :
{packagename: <char>, instructorid: <uuid> ,discount: <numeric>, ispublic: <boolean>, detail: <varchar>, image: <varchar>, cateid: <integer>, packageid: <uuid>, courseid: <uuid>}
-
Status code :
200
Response Body:
{packagename: <char>, instructorid: <uuid>, discount: <numeric>, ispublic: <boolean>, detail: <varchar>, image: <varchar>, cateid: <integer>}
-
Status code :
500
Response Error :
{msg: 'Not Found'}
Delete package
-
URL :
/api/package/delete/package
-
Method :
POST
-
Auth required :
Yes
-
Parameters :
None
-
Body :
{packageid: <uuid>}
-
Status code :
200
Response Body:
{success: true}
-
Status code :
500
Response Error :
{msg: 'Not Found'}
Get package
-
URL :
/api/package/getPackage
-
Method :
GET
-
Auth required :
No
-
Parameters :
None
-
Body :
None
-
Status code :
200
Response Body:
{ package: {packageid: <uuid>, packagename: <char>, instructorid: <uuid> ,firstname: <varchar>, lastname: <varchar>, discount: <numeric>, detail: <varchar>, image: <varchar>, price: <nemeric> }, courseCount: {courseid: <uuid> , coursename: <varchar>, firstname: <varchar>, lastname: <varchar>,coursepicture: <varchar>, avatar: <varchar>}, instructorList:{firstname: <varchar>, lastname: <varchar>, avatar: <varchar>}, courseList:{courseid: <uuid> , coursename: <varchar>, firstname: <varchar>, lastname: <varchar>,coursepicture: <varchar>, avatar: <varchar>}}
-
Status code :
500
Response Error :
{msg: 'Not Found'}
Get all package
-
URL :
/api/package/getAllPackage
-
Method :
GET
-
Auth required :
No
-
Parameters :
None
-
Body :
None
-
Status code :
200
Response Body:
{instructorid: <uuid>, userid: <uuid> ,packagename: <char>, detail: <varchar>, image: <varchar>, discount: <numeric>, ispublic: <boolean>, cateid: <integer>, firstname: <varchar>, lastname: <varchar> }
-
Status code :
500
Response Error :
{msg: 'Not Found'}
Get course of creating package
-
URL :
/api/package/getCoursesOfCreatingPackage
-
Method :
GET
-
Auth required :
No
-
Parameters :
None
-
Body :
None
-
Status code :
200
Response Body:
{courseid: <uuid> , coursename: <varchar>, coursepicture: <varchar>, price: <numeric>,totalPrice: {price: <numeric>}}
-
Status code :
500
Response Error :
{msg: 'Not Found'}
Upload package picture
-
URL :
/api/package/uploadPackagePic
-
Method :
POST
-
Auth required :
Yes
-
Parameters :
None
-
Body :
None
-
Status code :
200
Response Body:
None
-
Status code :
500
Response Error :
{msg: 'Not Found'}
Get course
-
URL :
/api/package/courses
-
Method :
GET
-
Auth required :
No
-
Parameters :
None
-
Body :
None
-
Status code :
200
Response Body:
{courseid: <uuid> , coursename: <varchar>, coursepicture: <varchar>, price: <numeric>, firstname: <varchar>, lastname: <varchar>}
-
Status code :
500
Response Error :
{msg: 'Not Found'}
Get course from ID
-
URL :
/api/package/coursesFromIds
-
Method :
GET
-
Auth required :
No
-
Parameters :
None
-
Body :
None
-
Status code :
200
Response Body:
{courseid: <uuid> , coursename: <varchar>, price: <numeric>}
-
Status code :
500
Response Error :
{msg: 'Not Found'}
Get package from ID
-
URL :
/api/package/packagesFromIds
-
Method :
GET
-
Auth required :
No
-
Parameters :
None
-
Body :
None
-
Status code :
200
Response Body:
{packageid: <uuid>, packagename: <char>, firstname: <varchar>, lastname: <varchar>, price: <numeric>, image: <varchar>}
-
Status code :
500
Response Error :
{msg: 'Not Found'}
Get instructor package
-
URL :
/api/package/getInstructorPackage
-
Method :
GET
-
Auth required :
Yes
-
Parameters :
None
-
Body :
None
-
Status code :
200
Response Body:
{price: <numeric>, packageid: <uuid>, packagename: <char>, discount: <numeric>, ispublic: <boolean>, detail: <varchar>, image: <varchar>, cateid: <integer>, cate_name: <varchar> }
-
Status code :
500
Response Error :
{msg: 'Not Found'}
Get number of courses
-
URL :
/api/package/numCourses
-
Method :
GET
-
Auth required :
No
-
Parameters :
None
-
Body :
None
-
Status code :
200
Response Body:
{count: {coursename: <varchar>, courseid: <uuid> ,coursedescription: <varchar>, coursepicture: <varchar>, samplevideo: <varchar>, price: <numeric>, languege: <varchar>, havecert: <boolean>, ownerid: <uuid>, status: <varchar>, certpath: <varchar>} }
-
Status code :
500
Response Error :
{msg: 'Not Found'}
Show publish package
-
URL :
/api/package/publishPackage
-
Method :
POST
-
Auth required :
Yes
-
Parameters :
None
-
Body :
{packageid: <uuid>}
-
Status code :
200
Response Body:
{success: true, packages: {ispublic: <boolean>} }
-
Status code :
500
Response Error :
{msg: 'Not Found'}
Edit package
-
URL :
/api/package/:id
-
Method :
PUT
-
Auth required :
Yes
-
Parameters :
{packageid: <uuid>}
-
Body :
{packagename: <char>, discount: <numeric>, detail: <varchar>, image: <varchar>, cateid: <integer>, packageid: <uuid> }
-
Status code :
200
Response Body:
{success: true}
-
Status code :
500
Response Error :
{msg: 'Unauthorize'}
Get all course
-
URL :
/api/course/getAllCourse
-
Method :
GET
-
Auth required :
No
-
Parameters :
None
-
Body :
None
-
Status code :
200
Response Body:
{coursename: <varchar>, courseid: <uuid> ,coursedescription: <varchar>, coursepicture: <varchar>, samplevideo: <varchar>, price: <numeric>, languege: <varchar>, havecert: <boolean>, ownerid: <uuid>, status: <varchar>, certpath: <varchar>, instructorid: <uuid>, userid: <uuid> , isverified: <boolean>, createat: <timestamp>, approveat: <timestamp>, approver: <uuid>, avatar: <varchar>, wallpaper: <varchar>, biography: <varchar>, firstname: <varchar>, lastname: <varchar>, birthdate: <date>, initial: <varchar>, phoneno: <varchar>, display: <varchar>, bio: <varchar>,updateat: <timestamp>,cataid: <integer>, cataname: <varchar>, courseid: <uuid>}
-
Status code :
400
Response Error :
{msg: 'Not Found'}
Search course
-
URL :
/api/course/search
-
Method :
POST
-
Auth required :
No
-
Parameters :
None
-
Body :
None
-
Status code :
200
Response Body:
{success: true, data: {coursename: <varchar>, courseid: <uuid> ,coursedescription: <varchar>, coursepicture: <varchar>, samplevideo: <varchar>, price: <numeric>, languege: <varchar>, havecert: <boolean>, ownerid: <uuid>, status: <varchar>, certpath: <varchar>}}
-
Status code :
404
Response Error : ```{msg: 'Not Found'}``
Get course
-
URL :
/api/course/getCourse
-
Method :
GET
-
Auth required :
No
-
Parameters :
None
-
Body :
None
-
Status code :
200
Response Body:
{ firstname: <varchar>, lastname: <varchar>, coursename: <varchar>, coursepicture: <varchar>, price: <numeric>, ownerid: <uuid>, courseid: <uuid>}
-
Status code :
400
Response Error :
{msg: 'Not Found'}
Get category
-
URL :
/api/course/getCategory
-
Method :
GET
-
Auth required :
No
-
Parameters :
None
-
Body :
None
-
Status code :
200
Response Body:
{ success: true, category: {cataname: <varchar>}}
Search category of course
-
URL :
/api/course/categorySearch/:cataname
-
Method :
GET
-
Auth required :
No
-
Parameters :
{cataname: <varchar>}
-
Body :
None
-
Status code :
200
Response Body:
{success: true, coursename: <varchar>, courseid: <uuid> ,coursedescription: <varchar>, coursepicture: <varchar>, samplevideo: <varchar>, price: <numeric>, languege: <varchar>, havecert: <boolean>, ownerid: <uuid>, status: <varchar>, certpath: <varchar>, instructorid: <uuid>, userid: <uuid> , isverified: <boolean>, createat: <timestamp>, approveat: <timestamp>, approver: <uuid>, avatar: <varchar>, wallpaper: <varchar>, biography: <varchar>, firstname: <varchar>, lastname: <varchar>, birthdate: <date>, initial: <varchar>, phoneno: <varchar>, display: <varchar>, bio: <varchar>,updateat: <timestamp>,cataid: <integer>, cataname: <varchar>, courseid: <uuid>}
-
Status code :
404
Response Error :
{msg: 'Not Found'}
Add Course to Wishlist
-
URL :
/api/course/addCourseToWishlist
-
Method :
POST
-
Auth required :
Yes
-
Parameters :
None
-
Body :
{courseid: <uuid>}
-
Status code :
201
Response Body:
{success: true}
-
Status code :
400
Response Error :
{success: false}
-
Status code :
500
Response Error :
{msg: 'Not Found'}
Add Course to Wishlist
-
URL :
/api/course/addCourseToWishlist
-
Method :
POST
-
Auth required :
Yes
-
Parameters :
None
-
Body :
{courseid: <uuid>}
-
Status code :
201
Response Body:
{success: true}
-
Status code :
500
Response Error :
{msg: 'Not Found'}
Create review
-
URL :
/api/review/create
-
Method :
POST
-
Auth required :
Yes
-
Parameters :
None
-
Body :
{userid: <uuid>, courseid: <uuid>, reviewrate: <numeric>, comment: <char>, date: <date>}
-
Status code :
201
Response Body:
{success : true}
Get review
-
URL :
/api/review
-
Method :
GET
-
Auth required :
Yes
-
Parameters :
None
-
Body :
None
-
Status code :
200
Response Body:
{ success : true, reviewrate: <numeric>, count:{ reviewrate: <numeric>, comment: <char>, date: <date>, displayname: <varchar>, avatar: <varchar> }, data:{ reviewrate: <numeric>, comment: <char>, date: <date>, displayname: <varchar>, avatar: <varchar> } }
Get the info of the global event
- URL :
/api/event/getGlobalEvent
- Method :
GET
- Auth required :
No
- Parameters :
None
- Body :
None
-
Status code :
200
Response Body:
{ "eventid": <Integer>, "title": String, "startdate": date, "enddate": date, "starttime": time, "endtime": time, "detail": String, "place": String, "lastupdate": timestamp, "typeid": <Integer>, "adminid": <Integer> }
Get the info of the course event
- URL :
/api/event/getCourseEvent
- Method :
GET
- Auth required :
No
- Parameters :
None
- Body :
None
-
Status code :
200
Response Body:
{ "eventid": <Integer>, "courseid": <Integer>, "instructorid": <Integer>, "title": String, "startdate": date, "enddate": date, "starttime": time, "endtime": time, "datail": String, "place": String, "lastupdate": timestamp, "typeid": <Integer> }
Search event by month and year
- URL :
/api/event/getEventInMonthYear
- Method :
GET
- Auth required :
Yes
- Parameters :
None
- Body :
None
-
Status code :
200
Response Body:
{ "startdate": date, "enddate": date }
Search event by month and year by Admin
- URL :
/api/event/getAdminEventInMonthYear
- Method :
GET
- Auth required :
Yes
- Parameters :
None
- Body :
None
-
Status code :
200
Response Body:
{ "startdate": date, "enddate": date }
Get the info of the event
- URL :
/api/event/getEvent
- Method :
GET
- Auth required :
Yes
- Parameters :
"eventid": <Integer>
- Body :
None
-
Status code :
200
Response Body:
{ "eventid": <Integer>, "courseid": <Integer>, "instructorid": <Integer>, "title": String, "startdate": date, "enddate": date, "starttime": time, "endtime": time, "detail": String, "place": String, "lastupdate": timestamp, "typeid": <Integer> }
Get the info of the course who student enrolled
- URL :
/api/event/getMyCourse
- Method :
GET
- Auth required :
Yes
- Parameters :
None
- Body :
None
-
Status code :
200
Response Body:
{ "courseid": <Integer>, "coursename": String }
Get the info of the admin event
- URL :
/api/event/getAdminEvent
- Method :
GET
- Auth required :
Yes
- Parameters :
"eventid": <Integer>
- Body :
None
-
Status code :
200
Response Body:
{ "eventid": <Integer>, "title": String, "startdate": date, "enddate": date, "starttime": time, "endtime": time, "detail": String, "place": String, "lastupdate": timestamp, "typeid": <Integer>, "adminid": <Integer> }
Get the info of the overview each day event by instructor
- URL :
/api/event/getEventbyDate
- Method :
GET
- Auth required :
Yes
- Parameters :
"date": date
- Body :
None
-
Status code :
200
Response Body:
{ "title": String, "startdate": date, "enddate": date }
Create Course Event
- URL :
/api/event/createEvent
- Method :
POST
- Auth required :
Yes
- Parameters :
None
- Body : { "title": String, "startdate": date, "enddate": date, "starttime": time, "endtime": time, "datail": String, "place": String, "instructorid": , "courseid": }
-
Status code :
200
Response Body:
None
Create Global Event
- URL :
/api/event/createAdminEvent
- Method :
POST
- Auth required :
Yes
- Parameters :
None
- Body : { "title": String, "startdate": date, "enddate": date, "starttime": time, "endtime": time, "datail": String, "place": String, "adminid": }
-
Status code :
200
Response Body:
None
Edit event by instructor
- URL :
/api/event/eEvent
- Method :
POST
- Auth required :
Yes
- Parameters :
None
- Body : { "title": String, "startdate": date, "enddate": date, "starttime": time, "endtime": time, "datail": String, "place": String }
-
Status code :
200
Response Body:
None
Edit event by admin
- URL :
/api/event/eAdminEvent
- Method :
POST
- Auth required :
Yes
- Parameters :
None
- Body : { "title": String, "startdate": date, "enddate": date, "starttime": time, "endtime": time, "datail": String, "place": String }
-
Status code :
200
Response Body:
None
Delete Global Event
- URL :
/api/event/dAdminEvent
- Method :
DELETE
- Auth required :
Yes
- Parameters :
None
- Body : { "id": String }
-
Status code :
200
Response Body:
None
Delete Course Event
- URL :
/api/event/dEvent
- Method :
DELETE
- Auth required :
Yes
- Parameters :
None
- Body : { "id": String }
-
Status code :
200
Response Body:
None