Add get_user_test
parent
4d1b243c71
commit
7785fbe78d
30
get_user_test.md
Normal file
30
get_user_test.md
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
# Get User Test
|
||||||
|
|
||||||
|
## GET `/api/user/test/<user_id>/<secret>`
|
||||||
|
|
||||||
|
Retrieves tests associated with a specific user from the database.
|
||||||
|
|
||||||
|
## Parameters
|
||||||
|
|
||||||
|
- `user_id` - User ID of the user whose tests need to be retrieved
|
||||||
|
- `secret` - Secret key for authentication
|
||||||
|
|
||||||
|
## Example Request
|
||||||
|
|
||||||
|
```bash
|
||||||
|
curl -X GET "https://url/api/user/test/123/your_secret_key_here"
|
||||||
|
```
|
||||||
|
|
||||||
|
## Example Response
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"test_type": "words",
|
||||||
|
"test_length": 100,
|
||||||
|
"test_time": 300,
|
||||||
|
"test_seed": 987654321,
|
||||||
|
"quote_id": 123,
|
||||||
|
"wpm": 65,
|
||||||
|
"accuracy": 98
|
||||||
|
}
|
||||||
|
```
|
Loading…
Reference in New Issue
Block a user