Skip to content

Commit

Permalink
Merge pull request #3901 from LibreSign/chore/update-api-documentation
Browse files Browse the repository at this point in the history
chore: update api documentation
  • Loading branch information
vitormattos authored Nov 6, 2024
2 parents 4627f84 + efa07b3 commit 91e45be
Show file tree
Hide file tree
Showing 4 changed files with 572 additions and 0 deletions.
194 changes: 194 additions & 0 deletions openapi-full.json
Original file line number Diff line number Diff line change
Expand Up @@ -3769,6 +3769,24 @@
"nullable": true
}
},
{
"name": "sortBy",
"in": "query",
"description": "Name of the column to sort by",
"schema": {
"type": "string",
"nullable": true
}
},
{
"name": "sortDirection",
"in": "query",
"description": "Ascending or descending order",
"schema": {
"type": "string",
"nullable": true
}
},
{
"name": "OCS-APIRequest",
"in": "header",
Expand Down Expand Up @@ -4198,6 +4216,182 @@
}
}
},
"/ocs/v2.php/apps/libresign/api/{apiVersion}/file/file_id/{fileId}": {
"delete": {
"operationId": "file-delete-all-request-signature-using-file-id",
"summary": "Delete File",
"description": "This will delete the file and all data",
"tags": [
"file"
],
"security": [
{
"bearer_auth": []
},
{
"basic_auth": []
}
],
"parameters": [
{
"name": "apiVersion",
"in": "path",
"required": true,
"schema": {
"type": "string",
"enum": [
"v1"
],
"default": "v1"
}
},
{
"name": "fileId",
"in": "path",
"description": "Node id of a Nextcloud file",
"required": true,
"schema": {
"type": "integer",
"format": "int64"
}
},
{
"name": "OCS-APIRequest",
"in": "header",
"description": "Required to be true for the API request to pass",
"required": true,
"schema": {
"type": "boolean",
"default": true
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {
"type": "object",
"required": [
"message"
],
"properties": {
"message": {
"type": "string"
}
}
}
}
}
}
}
}
}
},
"401": {
"description": "Failed",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {
"type": "object",
"required": [
"message"
],
"properties": {
"message": {
"type": "string"
}
}
}
}
}
}
}
}
}
},
"422": {
"description": "Failed",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {
"type": "object",
"required": [
"action",
"errors"
],
"properties": {
"action": {
"type": "integer",
"format": "int64"
},
"errors": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
}
}
}
}
}
}
}
}
},
"/ocs/v2.php/apps/libresign/api/{apiVersion}/file-element/{uuid}": {
"post": {
"operationId": "file_element-post",
Expand Down
Loading

0 comments on commit 91e45be

Please sign in to comment.