-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenapi.yaml
More file actions
107 lines (102 loc) · 2.79 KB
/
openapi.yaml
File metadata and controls
107 lines (102 loc) · 2.79 KB
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
openapi: 3.1.0
info:
title: Blank OpenAPI
description: |-
This is a Blank Server based on the OpenAPI 3.1 specification.
Some useful links:
- [The Blank repository](https://github.com/lg-labs/blank-service)
- [The source API definition for the Blank](https://github.com/lg-labs/blank-service/tree/main/blank-api/src/main/resources/spec/openapi.yaml)
termsOfService: https://github.com/lg-labs/blank-service
contact:
email: 105936384+lglabs@users.noreply.github.com
license:
name: MIT License
url: https://github.com/lg-labs/blank-service/tree/main/LICENSE
version: v3.0
externalDocs:
description: Find out more about Blank System
url: https://lg-labs.github.io/blank-service/
servers:
- url: http://localhost:8181
tags:
- name: blank
description: Operations about blank
externalDocs:
description: Find out more about our blank system
url: https://lg-labs.github.io/blank-service/
paths:
/blank:
post:
tags:
- blank
summary: Add a new blank to the blank system
description: Add a new blank to the blank system
operationId: addBlank
requestBody:
$ref: '#/components/requestBodies/Blank'
responses:
'202':
description: Accepted
'400':
description: Invalid input
'422':
description: Validation exception
security:
- blank_auth:
- write:blank
components:
schemas:
Blank:
type: object
properties:
id:
type: string
format: uuid
username:
type: string
examples: [ username ]
firstName:
type: string
examples: [ firstName ]
lastName:
type: string
examples: [ lastName ]
requestBodies:
Blank:
description: Blank object that needs to be added to the blank system
content:
application/json:
schema:
$ref: '#/components/schemas/Blank'
examples:
customer1:
$ref: '#/components/examples/blank1'
customer2:
$ref: '#/components/examples/blank2'
examples:
blank1:
summary: An example of a Blank 1
value:
id: d215b5f8-0249-4dc5-89a3-51fd148cfb41
username: blank1
firstName: blank1
lastName: blank1
blank2:
summary: An example of a Blank 2
value:
id: d215b5f8-0249-4dc5-89a3-51fd148cfb42
username: blank2
firstName: blank2
lastName: blank2
securitySchemes:
blank_auth:
type: oauth2
flows:
implicit:
authorizationUrl: https://lg-labs.github.io/blank-service/
scopes:
write:blank: add blank in your system
api_key:
type: apiKey
name: api_key
in: header