Skip to content

Commit

Permalink
Merge pull request #4437 from LibreSign/fix/path-of-url
Browse files Browse the repository at this point in the history
fix: path of url
  • Loading branch information
vitormattos authored Jan 22, 2025
2 parents 0fb451a + acf677f commit 95b6c6b
Show file tree
Hide file tree
Showing 5 changed files with 185 additions and 185 deletions.
2 changes: 1 addition & 1 deletion lib/Controller/SignatureElementsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ public function getSignatureElement(int $nodeId): DataResponse {
#[PublicPage]
#[NoCSRFRequired]
#[RequireSignRequestUuid(skipIfAuthenticated: true)]
#[ApiRoute(verb: 'PATCH', url: '/api/{apiVersion}/signature/elements/preview/{nodeId}', requirements: ['apiVersion' => '(v1)'])]
#[ApiRoute(verb: 'PATCH', url: '/api/{apiVersion}/signature/elements/{nodeId}', requirements: ['apiVersion' => '(v1)'])]
public function patchSignatureElement(int $nodeId, string $type = '', array $file = []): DataResponse {
try {
$element['nodeId'] = $nodeId;
Expand Down
114 changes: 57 additions & 57 deletions openapi-full.json
Original file line number Diff line number Diff line change
Expand Up @@ -7629,47 +7629,23 @@
}
}
}
},
"patch": {
"operationId": "signature_elements-patch-signature-element",
"summary": "Update signature element",
}
},
"/ocs/v2.php/apps/libresign/api/{apiVersion}/signature/elements/{nodeId}": {
"get": {
"operationId": "signature_elements-get-signature-element",
"summary": "Get signature element of signer",
"tags": [
"signature_elements"
],
"security": [
{},
{
"bearer_auth": []
},
{
"basic_auth": []
}
],
"requestBody": {
"required": false,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"type": {
"type": "string",
"default": "",
"description": "The type of signature element"
},
"file": {
"type": "object",
"default": {},
"description": "Element object",
"additionalProperties": {
"type": "object"
}
}
}
}
}
}
},
"parameters": [
{
"name": "apiVersion",
Expand Down Expand Up @@ -7726,22 +7702,7 @@
"$ref": "#/components/schemas/OCSMeta"
},
"data": {
"type": "object",
"required": [
"elements",
"message"
],
"properties": {
"elements": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UserElement"
}
},
"message": {
"type": "string"
}
}
"$ref": "#/components/schemas/UserElement"
}
}
}
Expand All @@ -7750,8 +7711,8 @@
}
}
},
"422": {
"description": "Error",
"404": {
"description": "Invalid data",
"content": {
"application/json": {
"schema": {
Expand Down Expand Up @@ -7789,23 +7750,47 @@
}
}
}
}
},
"/ocs/v2.php/apps/libresign/api/{apiVersion}/signature/elements/{nodeId}": {
"get": {
"operationId": "signature_elements-get-signature-element",
"summary": "Get signature element of signer",
},
"patch": {
"operationId": "signature_elements-patch-signature-element",
"summary": "Update signature element",
"tags": [
"signature_elements"
],
"security": [
{},
{
"bearer_auth": []
},
{
"basic_auth": []
}
],
"requestBody": {
"required": false,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"type": {
"type": "string",
"default": "",
"description": "The type of signature element"
},
"file": {
"type": "object",
"default": {},
"description": "Element object",
"additionalProperties": {
"type": "object"
}
}
}
}
}
}
},
"parameters": [
{
"name": "apiVersion",
Expand Down Expand Up @@ -7862,7 +7847,22 @@
"$ref": "#/components/schemas/OCSMeta"
},
"data": {
"$ref": "#/components/schemas/UserElement"
"type": "object",
"required": [
"elements",
"message"
],
"properties": {
"elements": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UserElement"
}
},
"message": {
"type": "string"
}
}
}
}
}
Expand All @@ -7871,8 +7871,8 @@
}
}
},
"404": {
"description": "Invalid data",
"422": {
"description": "Error",
"content": {
"application/json": {
"schema": {
Expand Down
114 changes: 57 additions & 57 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -7533,47 +7533,23 @@
}
}
}
},
"patch": {
"operationId": "signature_elements-patch-signature-element",
"summary": "Update signature element",
}
},
"/ocs/v2.php/apps/libresign/api/{apiVersion}/signature/elements/{nodeId}": {
"get": {
"operationId": "signature_elements-get-signature-element",
"summary": "Get signature element of signer",
"tags": [
"signature_elements"
],
"security": [
{},
{
"bearer_auth": []
},
{
"basic_auth": []
}
],
"requestBody": {
"required": false,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"type": {
"type": "string",
"default": "",
"description": "The type of signature element"
},
"file": {
"type": "object",
"default": {},
"description": "Element object",
"additionalProperties": {
"type": "object"
}
}
}
}
}
}
},
"parameters": [
{
"name": "apiVersion",
Expand Down Expand Up @@ -7630,22 +7606,7 @@
"$ref": "#/components/schemas/OCSMeta"
},
"data": {
"type": "object",
"required": [
"elements",
"message"
],
"properties": {
"elements": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UserElement"
}
},
"message": {
"type": "string"
}
}
"$ref": "#/components/schemas/UserElement"
}
}
}
Expand All @@ -7654,8 +7615,8 @@
}
}
},
"422": {
"description": "Error",
"404": {
"description": "Invalid data",
"content": {
"application/json": {
"schema": {
Expand Down Expand Up @@ -7693,23 +7654,47 @@
}
}
}
}
},
"/ocs/v2.php/apps/libresign/api/{apiVersion}/signature/elements/{nodeId}": {
"get": {
"operationId": "signature_elements-get-signature-element",
"summary": "Get signature element of signer",
},
"patch": {
"operationId": "signature_elements-patch-signature-element",
"summary": "Update signature element",
"tags": [
"signature_elements"
],
"security": [
{},
{
"bearer_auth": []
},
{
"basic_auth": []
}
],
"requestBody": {
"required": false,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"type": {
"type": "string",
"default": "",
"description": "The type of signature element"
},
"file": {
"type": "object",
"default": {},
"description": "Element object",
"additionalProperties": {
"type": "object"
}
}
}
}
}
}
},
"parameters": [
{
"name": "apiVersion",
Expand Down Expand Up @@ -7766,7 +7751,22 @@
"$ref": "#/components/schemas/OCSMeta"
},
"data": {
"$ref": "#/components/schemas/UserElement"
"type": "object",
"required": [
"elements",
"message"
],
"properties": {
"elements": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UserElement"
}
},
"message": {
"type": "string"
}
}
}
}
}
Expand All @@ -7775,8 +7775,8 @@
}
}
},
"404": {
"description": "Invalid data",
"422": {
"description": "Error",
"content": {
"application/json": {
"schema": {
Expand Down
Loading

0 comments on commit 95b6c6b

Please sign in to comment.