From 01abd6efe78aee801c5ad641024f2e98ddcc5b7f Mon Sep 17 00:00:00 2001 From: Arlo Date: Mon, 25 Mar 2024 10:22:29 +0000 Subject: [PATCH] Delete page "create_test" --- create_test.md | 51 -------------------------------------------------- 1 file changed, 51 deletions(-) delete mode 100644 create_test.md diff --git a/create_test.md b/create_test.md deleted file mode 100644 index 0b86c72..0000000 --- a/create_test.md +++ /dev/null @@ -1,51 +0,0 @@ -# Post Test Data -This API endpoint allows you to post test data, recording the results of a test taken by a user. - -## POST `/api/post_test` - -## Request Parameters -| Parameter | Type | Description | -| ---------- | :-----: | ---------------------------------------------------- | -| testType | String | Type of the test (e.g., "typing", "multiple choice") | -| testLength | Integer | Length of the test in number of items or questions | -| testTime | Integer | Duration of the test in seconds | -| testSeed | String | Seed for generating randomized test content | -| quoteId | String | Identifier for a specific quote, if applicable | -| wpm | Integer | Words per minute (typing speed) | -| accuracy | Integer | Accuracy of responses (e.g., percentage) | -| userId | String | Identifier of the user taking the test | -| secret | String | Secret key for authentication and authorization | - -## Example Request - -```bash -curl -X POST "https://example.com/api/post_test" \ - -H "Content-Type: application/json" \ - -d '{ - "testType": "typing", - "testLength": 100, - "testTime": 600, - "testSeed": "random_seed_123", - "quoteId": "quote_456", - "wpm": 65.5, - "accuracy": 98.2, - "userId": "user_789", - "secret": "your_secret_key_here" - }' -``` - -## Example Response - -Upon successful submission, you will receive a JSON response with the following structure: - -```json -{ - "status": "success", - "message": "Test results successfully recorded", - "testId": "test_123456789" -} -``` - -- `status`: Indicates the status of the request (either "success" or "error"). -- `message`: Describes the outcome of the request. -- `testId`: Unique identifier assigned to the recorded test data.