> For the complete documentation index, see [llms.txt](https://docs.codebattles.ru/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.codebattles.ru/api/checker-api/test.md).

# Test

Endpoints for submitting and validating test cases

## Test endpoint

> Handles test requests.

```json
{"openapi":"3.0.3","info":{"title":"Program Check System API","version":"1.0.0"},"tags":[{"name":"Test","description":"Endpoints for submitting and validating test cases"}],"servers":[{"url":"http://localhost:7070","description":"Local development server"}],"paths":{"/api/v1/test":{"post":{"tags":["Test"],"summary":"Test endpoint","description":"Handles test requests.","requestBody":{"description":"Input data for the test","required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"source":{"type":"string","description":"Source code to be tested"},"compiler":{"type":"string","description":"Compiler to be used"},"tests":{"type":"array","description":"List of test cases","items":{"type":"object","properties":{"input":{"type":"string","description":"Input data for the test"},"expectedOutput":{"type":"string","description":"Expected output for the test"}}}},"meta":{"type":"string","description":"Additional metadata"}}}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Response message"}}}}}},"400":{"description":"Bad request"},"500":{"description":"Internal server error"}}}}}}
```
