-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathswagger.yaml
More file actions
123 lines (123 loc) · 2.75 KB
/
swagger.yaml
File metadata and controls
123 lines (123 loc) · 2.75 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
swagger: '2.0'
info:
title: ORDS generated API for EMPLOYEES
version: 1.0.0
host: 129.152.129.171
basePath: /ords/pdb1/hr/employees
schemes:
- https
produces:
- application/json
paths:
/:
get:
produces:
- application/json
responses:
'200':
description: output of the endpoint
schema:
type: object
properties: {}
post:
produces:
- application/json
responses:
'200':
description: output of the endpoint
schema:
type: object
properties: {}
parameters:
- name: payload
in: body
required: true
schema:
$ref: '#/definitions/PAYLOAD1'
'/{id}':
get:
produces:
- application/json
responses:
'200':
description: output of the endpoint
schema:
type: object
properties: {}
parameters:
- name: id
in: path
required: true
type: string
description: implicit
pattern: '^[^/]+$'
put:
produces:
- application/json
responses:
'200':
description: output of the endpoint
schema:
type: object
properties: {}
parameters:
- name: id
in: path
required: true
type: string
description: implicit
pattern: '^[^/]+$'
- name: payload
in: body
required: true
schema:
$ref: '#/definitions/PAYLOAD1'
delete:
produces:
- application/json
responses:
'200':
description: output of the endpoint
schema:
type: object
properties: {}
parameters:
- name: id
in: path
required: true
type: string
description: implicit
pattern: '^[^/]+$'
definitions:
DATE:
type: string
pattern: >-
^\d{4}-[01]\d-[0123]\dT[012]\d:[0-5]\d:[0-5]\d(.\d+)?(Z|([-+][012]\d:[0-5]\d))$
NUMBER:
type: number
VARCHAR2:
type: string
PAYLOAD1:
properties:
EMPLOYEE_ID:
$ref: '#/definitions/NUMBER'
FIRST_NAME:
$ref: '#/definitions/VARCHAR2'
LAST_NAME:
$ref: '#/definitions/VARCHAR2'
EMAIL:
$ref: '#/definitions/VARCHAR2'
PHONE_NUMBER:
$ref: '#/definitions/VARCHAR2'
HIRE_DATE:
$ref: '#/definitions/DATE'
JOB_ID:
$ref: '#/definitions/VARCHAR2'
SALARY:
$ref: '#/definitions/NUMBER'
COMMISSION_PCT:
$ref: '#/definitions/NUMBER'
MANAGER_ID:
$ref: '#/definitions/NUMBER'
DEPARTMENT_ID:
$ref: '#/definitions/NUMBER'