Fix API documentation to match actual implementation

Co-authored-by: dreamstarsky <150928331+dreamstarsky@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-11-13 12:42:30 +00:00
parent 06c269e083
commit 02f48fb86b
2 changed files with 14 additions and 12 deletions

View File

@@ -226,7 +226,7 @@ Content-Type: application/json
{ {
"code": "your code here", "code": "your code here",
"language": "cpp", "language": "c++20",
"stdin": "input data", "stdin": "input data",
"run": true "run": true
} }
@@ -236,8 +236,9 @@ Content-Type: application/json
```json ```json
{ {
"id": "uuid-string", "message": "Created",
"message": "Paste created successfully" "paste_id": "uuid-string",
"url": "/api/pastes/uuid-string"
} }
``` ```
@@ -251,9 +252,9 @@ GET /api/pastes/:id
```json ```json
{ {
"id": "uuid-string", "ID": "uuid-string",
"code": "your code here", "code": "your code here",
"language": "cpp", "language": "c++20",
"stdin": "input data", "stdin": "input data",
"stdout": "program output", "stdout": "program output",
"stderr": "error output", "stderr": "error output",
@@ -277,7 +278,7 @@ GET /api/languages
```json ```json
{ {
"languages": ["cpp", "python", "java", "go"] "languages": ["c++20"]
} }
``` ```

View File

@@ -228,7 +228,7 @@ Content-Type: application/json
{ {
"code": "your code here", "code": "your code here",
"language": "cpp", "language": "c++20",
"stdin": "input data", "stdin": "input data",
"run": true "run": true
} }
@@ -238,8 +238,9 @@ Response:
```json ```json
{ {
"id": "uuid-string", "message": "Created",
"message": "Paste created successfully" "paste_id": "uuid-string",
"url": "/api/pastes/uuid-string"
} }
``` ```
@@ -253,9 +254,9 @@ Response:
```json ```json
{ {
"id": "uuid-string", "ID": "uuid-string",
"code": "your code here", "code": "your code here",
"language": "cpp", "language": "c++20",
"stdin": "input data", "stdin": "input data",
"stdout": "program output", "stdout": "program output",
"stderr": "error output", "stderr": "error output",
@@ -279,7 +280,7 @@ Response:
```json ```json
{ {
"languages": ["cpp", "python", "java", "go"] "languages": ["c++20"]
} }
``` ```