Matching service matches 2 users into a collaborative session.
Run cd matching-services from the root of the project.
Run npm install to install dependencies
Ensure that environment variables are set.
- After installing dependencies, run
npm run devto start the application. - The service should be started on http://localhost:8001.
Run npm run test to execute tests. Tests depend on the deployment URL in the environment variables.
GET request to /api/match/sessions/:sessionId
POST request to /api/match/request
Example request body:
{
"username": String,
"difficulty": String,
"requestId": String,
}
POST request to /api/match/cancel
Example request body:
{
"username": String,
"difficulty": String,
}
DELETE request to /api/match/request
Example request body:
{
"username": String,
"difficulty": String,
}