-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathv0.yml
More file actions
128 lines (123 loc) · 2.85 KB
/
v0.yml
File metadata and controls
128 lines (123 loc) · 2.85 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
124
125
126
127
128
openapi: 3.1.0
info:
version: 1.0.0
title: v0.remote.ref.access.test
description: Library test schema
license:
name: MIT
servers:
- url: "http://dev.remote.ref.access.test/v0/"
description: Development Environment
- url: "https://ref,remote.access.test/v0/"
description: Production Environment
tags:
- name: test
components:
schemas:
BookID:
type: string
format: uuid
Book:
type: object
required:
- id
- metadata
properties:
id:
$ref: "#/components/schemas/BookID"
author:
type: object
properties:
name:
type: string
age:
type: string
publisher:
type: object
properties:
name:
type: String
address:
type: string
metadata:
type: object
required:
- description
properties:
description:
type: string
Author:
$ref: "#/components/schemas/Book/properties/author"
Publisher:
$ref: "#/components/schemas/Book/properties/publisher"
paths:
/get/book/{id}:
parameters:
- name: id
in: path
required: true
description: Book ID
schema:
$ref: "#/components/schemas/BookID"
get:
operationId: getBook
responses:
200:
description: Get Books
content:
application/json:
schema:
$ref: "#/components/schemas/Book"
/get/book/{id}/description:
parameters:
- name: id
in: path
required: true
description: Book ID
schema:
$ref: "#/components/schemas/BookID"
get:
operationId: getDescription
responses:
200:
description: Get Book Description
content:
application/json:
schema:
$ref: "#/components/schemas/Book/properties/metadata/properties/description"
/get/author/{id}:
parameters:
- name: id
in: path
required: true
description: Author Id
schema:
type: string
format: uuid
get:
operationId: getAuthor
responses:
200:
description: Get Author
content:
application/json:
schema:
$ref: "#/components/schemas/Book/properties/author"
/get/publisher/{id}:
parameters:
- name: id
in: path
required: true
description: Publisher ID
schema:
type: string
format: uuid
get:
operationId: getPublisher
responses:
200:
description: Get Publisher
content:
application/json:
schema:
$ref: "#/components/schemas/Publisher"