forked from swagger-api/swagger-ui
/
syntax-highlighting-json-oas3.yaml
94 lines (94 loc) · 2.34 KB
/
syntax-highlighting-json-oas3.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
83
84
85
86
87
88
89
90
91
92
93
94
openapi: 3.0.1
info:
title: json syntax highlighting
description: sample OAS 3 definition to test syntax highlighting
version: 1.0.0
servers:
- url: https://localhost:3200/v1
- url: http://localhost:3200/v1
paths:
/setServices:
post:
summary: simple service
requestBody:
content:
'*/*':
schema:
$ref: '#/components/schemas/setServicesBody'
required: true
responses:
200:
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/setServicesResponse'
404:
description: Page not found
content: {}
x-codegen-request-body-name: body
components:
schemas:
setServicesBody:
required:
- appid
- details
- station_objectid
- userid
type: object
properties:
appid:
type: string
description: application ID
example: Website
userid:
type: integer
description: user id available to test
station_objectid:
type: string
description: station id available to test
example: 22a124b4-594b-4452-bdf5-fc3ef1477ba7
details:
type: array
items:
type: object
properties:
station_serviceid:
type: integer
description: optional service id
example: 34
name:
type: string
example: hooray
amount:
type: string
example: "0.00"
quantity:
type: integer
example: 999999
date:
type: string
format: date-time
setServicesResponse:
type: object
properties:
status:
type: boolean
example: true
count:
type: boolean
example: false
response:
type: object
properties:
status:
type: integer
example: 200
station_serviceid:
type: integer
example: 3
userid:
type: integer
statusId:
type: string
example: f0009babde9dbe204540d79cf754408e