From 7785fbe78d7376ce89269d8cc4b5a298450d8bbd Mon Sep 17 00:00:00 2001 From: Arlo Date: Mon, 25 Mar 2024 10:21:35 +0000 Subject: [PATCH] Add get_user_test --- get_user_test.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 get_user_test.md diff --git a/get_user_test.md b/get_user_test.md new file mode 100644 index 0000000..671e9bf --- /dev/null +++ b/get_user_test.md @@ -0,0 +1,30 @@ +# Get User Test + +## GET `/api/user/test//` + +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 +} +``` \ No newline at end of file