You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The **Matching Service** is responsible for pairing users in PeerPrep based on selected topic, difficulty, and programming language. It manages user queues, handles match creation, and communicates with other services such as:
6
+
7
+
-**User Service**
8
+
-**Question Service**
9
+
-**Collaboration Service**
10
+
11
+
This service is built using **FastAPI** and is designed to be **containerised using Docker**.
12
+
13
+
---
14
+
15
+
## Features
16
+
17
+
- Join a match queue for a specific topic, difficulty, and programming language
18
+
- Automatic peer matching from the queue
19
+
- Cancel a queue request
20
+
- Integration points for collaboration sessions
21
+
- Health check endpoint for service monitoring
22
+
23
+
---
24
+
25
+
## API Testing with Postman
26
+
27
+
A **Postman collection** is provided to test the Matching Service:
28
+
29
+
1. Open Postman -> Import -> File -> `postman/PeerPrep.postman_collection.json`
30
+
2. The collection includes:
31
+
- Join queue (`/match/request`)
32
+
- Cancel queue (`/match/cancel`)
33
+
3. Update environment variables if needed (e.g., `url`)
34
+
35
+
---
36
+
37
+
## WebSocket Testing
38
+
39
+
To test real-time events such as match found or timeout:
0 commit comments