Skip to content

Commit

Permalink
Updated pickup api
Browse files Browse the repository at this point in the history
  • Loading branch information
skynexus committed Jul 3, 2024
1 parent 8617d56 commit 8ae4fbf
Showing 1 changed file with 20 additions and 7 deletions.
27 changes: 20 additions & 7 deletions api-pickup-openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ paths:
application/json:
schema:
type: boolean
/results/{uploadId}:
/uploads/{uploadId}:
description: |
Available result status of uploaded file group.
get:
Expand All @@ -52,7 +52,7 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Error'
/results/{uploadId}/{fileId}:
/uploads/{uploadId}/files/{fileId}:
description: |
Invoice parser results.
get:
Expand Down Expand Up @@ -108,11 +108,11 @@ components:
type: object
required:
- id
- results
- files
properties:
id:
$ref: "#/components/schemas/ResourceId"
results:
files:
type: array
items:
$ref: "#/components/schemas/ResultHead"
Expand All @@ -121,23 +121,36 @@ components:
- $ref: '#/components/schemas/ResultHead'
- type: object
required:
- content
- result
properties:
content:
result:
type: object
ResultHead:
type: object
required:
- id
- file_name
- content_type
- checksum
- size
- status
properties:
id:
$ref: "#/components/schemas/ResourceId"
file_name:
type: string
maxLength: 1024
content_type:
type: string
maxLength: 1024
size:
type: integer
format: int64
status:
$ref: "#/components/schemas/ResultStatus"
ResultStatus:
type: string
enum: [unknown, processed, failed]
enum: [unknown, pending, processed, failed]
Error:
type: object
required:
Expand Down

0 comments on commit 8ae4fbf

Please sign in to comment.