Skip to content
This repository was archived by the owner on Jun 4, 2025. It is now read-only.

Commit ce27c46

Browse files
committed
add new fields
Signed-off-by: Vitor Mattos <vitor@php.rio>
1 parent 315040f commit ce27c46

File tree

1 file changed

+117
-0
lines changed

1 file changed

+117
-0
lines changed

site/.vuepress/public/specs/api.yaml

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -713,10 +713,127 @@ paths:
713713
type: integer
714714
description: Node id of a Nextcloud file
715715
example: 2312
716+
fileId:
717+
type: integer
718+
description: Node id of a Nextcloud file
719+
example: 2312
720+
file:
721+
type: string
722+
description: URL to download signed file
723+
example: 'http://cloud.test.coop/apps/libresign/pdf/46d30465-ae11-484b-aad5-327249a1e8ef'
724+
name:
725+
type: string
726+
example: filename
727+
description: The name of file to sign
716728
uuid:
717729
type: string
718730
format: uuid
719731
description: File identifier. It is necessary to keep it because it must be used to update or delete a signature request and will also be used in the callback request.
732+
status:
733+
type: integer
734+
enum:
735+
- 0
736+
- 1
737+
- 2
738+
description: |
739+
Numeric code of status * 0 - no signers * 1 - signed * 2 - pending
740+
example: 1
741+
statusText:
742+
type: string
743+
description: Translated text of status
744+
example: able to sign
745+
request_date:
746+
type: string
747+
format: date-time
748+
pattern: '\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}'
749+
nullable: true
750+
description: Date the file was requested to be signed
751+
example: '2021-12-31 22:45:50'
752+
requested_by:
753+
$ref: '#/components/schemas/basicAccount'
754+
settings:
755+
$ref: '#/components/schemas/signSettings'
756+
signers:
757+
type: array
758+
description: Collection of users who must sign the document
759+
items:
760+
type: object
761+
description: Person who will sign
762+
properties:
763+
email:
764+
type: string
765+
format: email
766+
description: Unique email to identify user
767+
example: user@test.coop
768+
me:
769+
type: boolean
770+
description: It's me?
771+
example: true
772+
sign_uuid:
773+
type: string
774+
format: uuid
775+
description: 'Received from sign request, only returned when me=true'
776+
displayName:
777+
type: string
778+
nullable: true
779+
description: Persons name
780+
example: John Doe
781+
fullName:
782+
type: string
783+
description: The person full name
784+
example: John Doe
785+
nullable: true
786+
signed:
787+
type: string
788+
pattern: '\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}'
789+
description: 'Signing date, when signed'
790+
example: '2021-12-31 22:45:50'
791+
nullable: true
792+
identifyMethods:
793+
type: array
794+
items:
795+
type: object
796+
properties:
797+
method:
798+
type: string
799+
example: account
800+
description: The identify method name
801+
value:
802+
type: string
803+
example: signer1
804+
description: The value that identify the signer in the authentication method
805+
uid:
806+
type: string
807+
nullable: true
808+
description: Nextcloud user id of who requested the file to be signed when the person created account.
809+
example: johndoe
810+
description:
811+
type: string
812+
nullable: true
813+
description: Description that will be displayed to the person
814+
example: 'As the company''s CEO, you must sign this contract'
815+
sign_date:
816+
type: string
817+
format: date-time
818+
pattern: '\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}'
819+
nullable: true
820+
description: Date the file was signed
821+
example: '2021-12-31 22:45:50'
822+
identify:
823+
type: string
824+
nullable: true
825+
default: nextcloud
826+
example: nextcloud
827+
description: 'When is requested to a person to sign a file, is necessary identify what is the identification method. The identification method is used to define how will be the sign flow.'
828+
enum:
829+
- nextcloud
830+
- email-link
831+
- email-token
832+
- sms-token
833+
signRequestId:
834+
type: integer
835+
description: ID of relation between file and user. Each relation between file and user has an ID that is returned on validation endpoints.
836+
example: 1request_sign_date
720837
'422':
721838
description: Request failed
722839
content:

0 commit comments

Comments
 (0)