From 0dc6784f7316f23610f746d3ae7c53f40103fe59 Mon Sep 17 00:00:00 2001 From: Arlo Date: Fri, 22 Mar 2024 23:54:08 +0000 Subject: [PATCH] Add get_user_tests --- get_user_tests.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 get_user_tests.md diff --git a/get_user_tests.md b/get_user_tests.md new file mode 100644 index 0000000..b7503a9 --- /dev/null +++ b/get_user_tests.md @@ -0,0 +1,32 @@ +# Get User Tests + +Retrieves tests associated with a specific user from the database. + +## GET `/api/get_tests//` + +## Parameters + +| Parameter | Type | Description | +| - | - | - | +| user_id | integer | User ID of the user whose tests need to be retrieved | +| secret | String | Secret key for authentication | + +## Example Request + +```bash +curl -X GET "https://example.com/api/get_tests/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 +} +``` \ No newline at end of file