Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new requests to docs #38

Merged
merged 2 commits into from
Jan 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
182 changes: 181 additions & 1 deletion docs/references/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,14 @@ components:
type: apiKey

schemas:
envelope_item_status:
type: string
enum:
- unsigned
- awaiting_upload
- signed
- cancelled

language:
type: string
enum:
Expand Down Expand Up @@ -762,6 +770,23 @@ paths:
required: true
content:
application/pdf: {}
application/json:
schema:
properties:
files:
type: array
items:
type: object
properties:
url:
type: string
format: url
description: |
DA URL of the documents to sign.
name:
type: string
description: |
Name of the document. This is used in the signature request email.
application/x-www-form-urlencoded:
schema:
properties:
Expand Down Expand Up @@ -906,7 +931,7 @@ paths:
contentType: application/pdf
responses:
200:
description: All pending signature requests for the file were cancelled.
description: List of signature requests for the file.
content:
application/json:
schema:
Expand All @@ -933,6 +958,161 @@ paths:
description: The file provided was not found. Check that the file was processed and that you used it in a signature request.
tags:
- Signing
/request/status:
post:
operationId: request_status
summary: Show status of signature request
parameters:
- name: request_url
in: query
required: true
schema:
type: string
format: url
description: The URL of the signature request to check.
- name: password
in: query
schema:
type: string
description: Password for password encrypted requests
responses:
200:
description: Status of the signature request.
content:
application/json:
schema:
properties:
url:
type: string
format: url
id:
type: string
createdAt:
type: string
format: date-time
cancelled:
type: boolean
envelope_items:
type: object
properties:
legal_weight:
$ref: "#/components/schemas/legal_weight"
jurisdiction:
type: string
status:
$ref: "#/components/schemas/envelope_item_status"
signed_at:
type: string
format: date-time
file_url:
type: string
format: url
file_id:
type: string
signer:
type: object
properties:
email:
type: string
format: email
used_identification_at:
type: string
format: date-time
identification_method:
type: string
400:
description: Check that the file provided has been prepared and can be read.
401:
$ref: "#components/responses/unauthorized"
403:
description: You cannot list signature requests for this file.
404:
description: The file provided was not found. Check that the file was processed and that you used it in a signature request.
tags:
- Signing

/request/file/status:
post:
operationId: file_requests_status
summary: Show status of signature requests of given file
parameters:
- name: file_url
in: query
required: true
schema:
type: string
format: url
description: The DA URL of the file to check.
- name: password
in: query
schema:
type: string
description: Password for password encrypted document.
responses:
200:
description: File status across all signature requests.
content:
application/json:
schema:
properties:
file_url:
type: string
format: url
file_id:
type: string
signature_requests:
type: array
items:
type: object
properties:
url:
type: string
format: url
id:
type: string
createdAt:
type: string
format: date-time
cancelled:
type: boolean
envelope_items:
type: object
properties:
legal_weight:
$ref: "#/components/schemas/legal_weight"
jurisdiction:
type: string
status:
$ref: "#/components/schemas/envelope_item_status"
signed_at:
type: string
format: date-time
file_url:
type: string
format: url
file_id:
type: string
signer:
type: object
properties:
email:
type: string
format: email
used_identification_at:
type: string
format: date-time
identification_method:
type: string
400:
description: Check that the file provided has been prepared and can be read.
401:
$ref: "#components/responses/unauthorized"
403:
description: You cannot list signature requests for this file.
404:
description: The file provided was not found. Check that the file was processed and that you used it in a signature request.
tags:
- Signing

/qes/check:
post:
Expand Down