This repository has been archived by the owner on Aug 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
openapi.yaml
83 lines (78 loc) · 2.08 KB
/
openapi.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
openapi: 3.0.2
info:
title: sdx-gateway
description: A service for handling sdx receipts
version: "1.0"
servers:
- url: http://localhost:8191/
description: The path used by sdx-gateway when port forwarded by kubectl (8191:8080)
tags:
- name: receipts
description: Receipt endpoints
paths:
/receipts:
post:
summary: acknowledges receipt
description: |
Acknowledges receipt and sends it off to the case service
tags:
- receipts
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/Receipt'
responses:
'201':
description: response receipt was successfully created
content:
application/json:
schema:
$ref: '#/components/schemas/Receipt'
'400':
$ref: '#/components/responses/InvalidRequestBodyError'
/paperquestionnairereceipts:
post:
summary: Upload paper receipts
description: Upload paper receipts
tags:
- receipts
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
properties:
file:
type: string
format: binary
responses:
'201':
description: The file was successfully received
components:
securitySchemes:
basicAuth:
type: http
scheme: basic
responses:
InvalidRequestBodyError:
description: One or more of the fields provided in the RequestBody wasn't part of the schema, wasn't set to a valid value, or the ID provided wasn't a proper UUID.
schemas:
Receipt:
type: object
properties:
caseId:
type: string
format: uuid
example: 34597808-ec88-4e93-af2f-228e33ff7946
userId:
type: string
format: uuid
example: 34597808-ec88-4e93-af2f-228e33ff7946
caseRef:
type: string
example: "12343543"
security:
- basicAuth: []