-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenapi.yaml
55 lines (55 loc) · 1.15 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
openapi: 3.0.0
info:
description: "API"
version: "1.0.0"
title: "API"
paths:
/api/v1/products/{id}:
get:
summary: "Get an information about the product"
description: ""
operationId: "GetProduct"
security:
- bearerAuth: []
parameters:
- in: "path"
name: "id"
required: true
schema:
type: string
responses:
"200":
description: "Expected response to a valid request"
content:
application/json:
schema:
$ref: "#/components/schemas/Product"
default:
description: "Unexpected error"
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
components:
schemas:
Product:
type: object
required:
- id
- name
properties:
id:
type: integer
format: int64
name:
type: string
Error:
type: object
required:
- code
- message
properties:
code:
type: string
message:
type: string