generated from mariusconjeaud/neo4j-mean-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopen-api-definition.yml
97 lines (97 loc) · 2.31 KB
/
open-api-definition.yml
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
openapi: 3.0.0
info:
title: neo4j-mean-api
version: "1.0-oas3"
description: Import from "neo4j-mean-api" Function App
paths:
'/cat/{name}':
get:
operationId: getCat
summary: Returns cat with provided name
parameters:
- name: name
in: path
required: true
schema:
type: string
responses:
'200':
description: Cat object
content:
application/json:
schema:
$ref: '#/components/schemas/Cat'
example:
name: Apollo
'400':
description: Missing required parameter (name)
put:
operationId: updateCat
summary: Updates cat with provided name
parameters:
- name: name
in: path
required: true
schema:
type: string
responses:
'200':
description: Success
'400':
description: Missing required parameter (name)
delete:
operationId: deleteCat
summary: Deletes cat with provided name
parameters:
- name: name
in: path
required: true
schema:
type: string
responses:
'204':
description: Success
'400':
description: Missing required parameter (name)
/cats:
get:
operationId: getAllCats
summary: Returns all cats
responses:
'200':
description: A list of cats
content:
application/json:
schema:
$ref: '#/components/schemas/ArrayOfCats'
post:
operationId: createCat
summary: Creates cat provided in body
requestBody:
description: Cat object
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/Cat'
example:
name: Apollo
responses:
'201':
description: Success
'400':
description: Missing required parameter (name)
tags: []
servers:
- url: 'https://neo4j-mean-api-apim.azure-api.net/neo4j-mean-api'
components:
schemas:
Cat:
type: object
properties:
name:
type: string
ArrayOfCats:
type: array
items:
$ref: '#/components/schemas/Cat'