Skip to content

Commit

Permalink
Some API spec fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
LostLuma committed Nov 16, 2024
1 parent 1171d89 commit 0d11dc8
Showing 1 changed file with 23 additions and 5 deletions.
28 changes: 23 additions & 5 deletions echo/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,18 @@
}
},
"400": {
"description": "The body data was malformed or incorrect.",
"description": "Request body malformed or incorrect.",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"422": {
"description": "Request body contained semantic errors.",
"content": {
"application/json": {
"schema": {
Expand Down Expand Up @@ -144,7 +155,7 @@
}
],
"get": {
"summary": "Security Token Info.",
"summary": "Security Token Info",
"description": "View which Paste a particular security token is associated with.",
"operationId": "security-info",
"tags": ["Security"],
Expand Down Expand Up @@ -172,7 +183,7 @@
}
},
"delete": {
"summary": "Delete Paste with Security Token.",
"summary": "Delete Paste with Security Token",
"description": "Delete the Paste associated with this security token.",
"operationId": "security-delete",
"tags": ["Security"],
Expand Down Expand Up @@ -417,11 +428,18 @@
"ErrorResponse": {
"title": "ErrorResponse",
"type": "object",
"description": "Generic response when something went wrong.",
"properties": {
"message": {
"type": "string"
"type": "string",
"description": "The error message."
},
"errors": {
"type": "object",
"description": "Detailed information on the error. May not be present."
}
}
},
"required": ["message"]
}
}
}
Expand Down

0 comments on commit 0d11dc8

Please sign in to comment.