mirror of
https://github.com/dreamstarsky/runbin.git
synced 2026-05-15 14:23:07 +00:00
Fix API documentation to match actual implementation
Co-authored-by: dreamstarsky <150928331+dreamstarsky@users.noreply.github.com>
This commit is contained in:
13
README.md
13
README.md
@@ -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"]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
13
README_EN.md
13
README_EN.md
@@ -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"]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user