# 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"}}}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.codebattles.ru/api/checker-api/test.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
