From 02f48fb86b3c38cb8284767e5788fedd259cdda8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 13 Nov 2025 12:42:30 +0000 Subject: [PATCH] Fix API documentation to match actual implementation Co-authored-by: dreamstarsky <150928331+dreamstarsky@users.noreply.github.com> --- README.md | 13 +++++++------ README_EN.md | 13 +++++++------ 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 01f5b33..e0b461d 100644 --- a/README.md +++ b/README.md @@ -226,7 +226,7 @@ Content-Type: application/json { "code": "your code here", - "language": "cpp", + "language": "c++20", "stdin": "input data", "run": true } @@ -236,8 +236,9 @@ Content-Type: application/json ```json { - "id": "uuid-string", - "message": "Paste created successfully" + "message": "Created", + "paste_id": "uuid-string", + "url": "/api/pastes/uuid-string" } ``` @@ -251,9 +252,9 @@ GET /api/pastes/:id ```json { - "id": "uuid-string", + "ID": "uuid-string", "code": "your code here", - "language": "cpp", + "language": "c++20", "stdin": "input data", "stdout": "program output", "stderr": "error output", @@ -277,7 +278,7 @@ GET /api/languages ```json { - "languages": ["cpp", "python", "java", "go"] + "languages": ["c++20"] } ``` diff --git a/README_EN.md b/README_EN.md index 11518e5..dea7e3b 100644 --- a/README_EN.md +++ b/README_EN.md @@ -228,7 +228,7 @@ Content-Type: application/json { "code": "your code here", - "language": "cpp", + "language": "c++20", "stdin": "input data", "run": true } @@ -238,8 +238,9 @@ Response: ```json { - "id": "uuid-string", - "message": "Paste created successfully" + "message": "Created", + "paste_id": "uuid-string", + "url": "/api/pastes/uuid-string" } ``` @@ -253,9 +254,9 @@ Response: ```json { - "id": "uuid-string", + "ID": "uuid-string", "code": "your code here", - "language": "cpp", + "language": "c++20", "stdin": "input data", "stdout": "program output", "stderr": "error output", @@ -279,7 +280,7 @@ Response: ```json { - "languages": ["cpp", "python", "java", "go"] + "languages": ["c++20"] } ```