Skip to content

Commit

Permalink
fix: documentation
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Mattos <[email protected]>
  • Loading branch information
vitormattos committed May 28, 2024
1 parent d240ff8 commit 879ebd7
Show file tree
Hide file tree
Showing 5 changed files with 124 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Controller/RequestSignatureController.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,11 @@ public function deleteOneRequestSignatureUsingFileId(int $fileId, int $signReque
* You can only request exclusion as any sign
*
* @param integer $fileId Node id of a Nextcloud file
* @return DataResponse<Http::STATUS_OK, array{message: string}, array{}>|DataResponse<Http::STATUS_UNAUTHORIZED, array{message: string}, array{}>
* @return DataResponse<Http::STATUS_OK, array{message: string}, array{}>|DataResponse<Http::STATUS_UNAUTHORIZED, array{message: string}, array{}>|DataResponse<Http::STATUS_UNPROCESSABLE_ENTITY, array{action: integer, errors: string[]}, array{}>
*
* 200: OK
* 401: Failed
* 422: Failed
*/
#[NoAdminRequired]
#[NoCSRFRequired]
Expand Down
46 changes: 46 additions & 0 deletions openapi-full.json
Original file line number Diff line number Diff line change
Expand Up @@ -5589,6 +5589,52 @@
}
}
}
},
"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"
}
}
}
}
}
}
}
}
}
}
}
}
},
Expand Down
46 changes: 46 additions & 0 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -5474,6 +5474,52 @@
}
}
}
},
"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"
}
}
}
}
}
}
}
}
}
}
}
}
},
Expand Down
15 changes: 15 additions & 0 deletions src/types/openapi/openapi-full.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2371,6 +2371,21 @@ export type operations = {
};
};
};
/** @description Failed */
422: {
content: {
"application/json": {
ocs: {
meta: components["schemas"]["OCSMeta"];
data: {
/** Format: int64 */
action: number;
errors: string[];
};
};
};
};
};
};
};
/**
Expand Down
15 changes: 15 additions & 0 deletions src/types/openapi/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2306,6 +2306,21 @@ export type operations = {
};
};
};
/** @description Failed */
422: {
content: {
"application/json": {
ocs: {
meta: components["schemas"]["OCSMeta"];
data: {
/** Format: int64 */
action: number;
errors: string[];
};
};
};
};
};
};
};
/**
Expand Down

0 comments on commit 879ebd7

Please sign in to comment.