⚡Express
Reviewed and tested stable app version https://orion-meet.herokuapp.com/
Staging area for new features https://orion-meet-testing.herokuapp.com/
Main URL: https://orion-meet.herokuapp.com/
End Point: /api/auth/signin
Method: POST
Request Body:
{
"username" : " ",
"password" : " "
}
Response: 200 Ok
{
"roles": [
" "
],
"id": "",
"username": "",
"email": " ",
"accessToken": ""
}
End Point: /api/auth/signup
Method: POST
Request Body:
NB: with gender male == true and female == false
{
"username": " ",
"email": " ",
"password": " ",
"dob": " ",
"gender": "true",
"roles": [
" ",
" ",
" "
]
}
NB: When user signs up a mail is sent to their email address for email verification. For calls made from the
app, roles...
should be omitted.
Response: 200 Ok
{
"message": "user registered successfully",
"userId": " "
}
NB: When user signs up a mail is sent to their email address for email verification. For calls made from the
app, roles...
should be ommitted.
End Point: /api/resetPassword
Method: POST
Request Body:
{
"email": " "
}
Response: 200 Ok
Password Reset link has been sent to your mail.
End Point: /api/test/admin
Method: GET
Request Header:
Host
User-Agent
Accept
Accept-Encoding
Connection
x-access-token
NB: In Request headers access token for the admin should be set in order to make a successful request.
End Point: /api/test/all
Method: GET
Request Header:
Host
User-Agent
Accept
Accept-Encoding
Connection
End Point: /api/test/mod
Method: GET
Request Header:
Host
User-Agent
Accept
Accept-Encoding
Connection
x-access-token
End Point: /api/test/all
Method: GET
Request Header:
Host
User-Agent
Accept
Accept-Encoding
Connection
x-access-token
End Point: /api/test/matches/ID
Method: GET
No request body.
End Point: /api/test/users
Method: GET
Request Headers:
x-acces-token
Response: 200 Ok
{
"users": [
{
"id": " ",
"username": " ",
"password": " ",
"dateOfBirth": " ",
"isMailVerified": " ",
"createdAt": " ",
"updatedAt": " "
}
]
}
End Point: /api/user
Method: GET
Request Body:
{
"userId": ""
}
End Point: /api/user/profile/ID
Method: GET
Request Body: null
End Point: /api/user/bio
Method: POST
Request Body:
{
"userId": "",
"bio": ""
}
NB: "ID" is the user ID for the user.
End Point: /api/interest/ID
Method: GET
End Point: /api/interest/ID
Method: POST
Request Body:
{
"interests": [
"sports",
"photography",
"comedy"
]
}
Response: 200 Ok
[
[
{
"userId": " ",
"roleId": " ",
"createdAt": " ",
"updatedAt": " "
}
]
]
End Point: /api/interests/ID
Method: PUT
Request Body:
{
"interests": [
"science"
]
}
Response: 200 Ok
[
{
"userId": " ",
"roleId": " ",
"createdAt": " ",
"updatedAt": " "
}
]
End Point: /api/interests/ID
Method: DELETE
Request Body:
{
"interests": [
"sorts"
]
}
End Point: /api/user/location/:userId
Method: GET
No Request body:
{
"latitude": "",
"longitude": ""
}
End Point: /api/user/location
Method: POST
Request body:
{
"userId": "",
"latitude": "",
"longitude": ""
}
End Point: /api/test/match/location/:id
Method: GET
No Request body:
{
"userId": "",
"username": "",
"bio": "",
"proximity": ""
}
End Point: /api/conversation/
Method: PUT
Request Body:
{
"userId": ""
}
End Point: /api/conversation/:conversationId
Method: GET
Request Body: null
End Point: /api/message/ID
Method: GET
Request Body: null
End Point: /api/messages/ID
Method: GET
Request Body: null
End Point: /api/message/last/:ID
Method: GET
Request Body: null
End Point: /api/messages/
Method: PUT
Request Body:
{
"userId": "",
"messageText": "",
"conversationId": ""
}
End Point: /api/message
Method: DELETE
Request Body:
{
"messageId": ""
}
Response: 200 Ok
1
End Point: /api/conversation/user
Method: PUT
Request Body:
{
"userId": "",
"conversationId": ""
}
End Point: /api/event
Method: POST
Request Body:
{
"name": "",
"date": "",
"time": "",
"venue": "",
"location": "longitude latitude",
"organizers": "",
"mcs": "",
"guests": "",
"age_restriction": "",
"description": "",
"organizer": "",
"cover_image": "",
"ticket_price": decimal,
"interests": [
"",
"",
""
]
}
End Point: /api/event/id
Method: GET
End Point: /api/events
Method: GET
End Point: /api/event/id
Method: DELETE
End Point: /api/event/id
Method: PUT
Request Body:
{
"name": "",
"date": "",
"time": "",
"venue": "",
"location": "latitude longitude",
"organizers": "",
"mcs": "",
"guests": "",
"age_restriction": "",
"description": "",
"organizer": "",
"cover-image": "",
"ticket_price": decimal,
"interests": [
"",
"",
""
]
}
End Point: /api/events/:id
Method: GET
No Request Body.
End Point: /api/event/like
Method: POST
Request Body:
{
"eventId": "",
"userId": ""
}
End Point: /api/event/unlike
Method: POST
Request Body:
{
"eventId": "",
"userId": ""
}
End Point: /api/event/likes/:id
Method: GET
No Request Body
End Point: /api/conversation/user
Method: DELETE
Request Body:
{
"userId": "",
"conversationId": ""
}
End Point: /api/conversation/users/all/ID
Method: GET
Request Body: null
End Point: /api/conversation/user/all/ID
Method: GET
Request Body: null
End Point: /api/account/delete
Method: POST
Request Body:
{
"usedId" : "",
"username": "",
"password": ""
}