-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswagger.yaml
105 lines (105 loc) · 2.51 KB
/
swagger.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
95
96
97
98
99
100
101
102
103
104
105
swagger: "2.0"
info:
description: "This is a sample server breachedemails server."
version: "1.0.0"
title: "Swagger breached emails"
termsOfService: "http://swagger.io/terms/"
contact:
email: "[email protected]"
license:
name: "Apache 2.0"
url: "http://www.apache.org/licenses/LICENSE-2.0.html"
host: "breachedemails.swagger.io"
basePath: "/v2"
tags:
- name: "breachedemail"
description: "Everything about your breached emails"
externalDocs:
description: "Find out more"
url: "http://swagger.io"
schemes:
- "https"
- "http"
paths:
/breachedemails/:
post:
tags:
- "breachedemail"
summary: "Add a breached email"
description: "Add a breached email"
operationId: "Add"
consumes:
- "application/json"
- "application/xml"
produces:
- "application/xml"
- "application/json"
parameters:
- in: "body"
name: "body"
description: "Add a breached email"
required: true
schema:
$ref: "#/definitions/Breachedemail"
responses:
"200":
description: "Created or Conflict"
schema:
type: string
example: Created or Conflict
/breachedemails/{breachedemail}:
get:
tags:
- "breachedemail"
summary: "Confirm ok if breached email exist"
description: "Returns OK or NotFound"
operationId: "Get"
produces:
- "application/xml"
- "application/json"
parameters:
- name: "breachedemail"
in: "path"
description: "Breachedemail to return"
required: true
type: "string"
responses:
"200":
description: "OK or NotFound"
schema:
type: string
example: OK or NotFound
delete:
tags:
- "breachedemail"
summary: "Deletes a breachedemail"
description: "Deletes a breachedemail"
operationId: "Delete"
produces:
- "application/xml"
- "application/json"
parameters:
- name: "breachedemail"
in: "path"
description: "Breached email to delete"
required: true
type: "string"
responses:
"200":
description: "OK"
schema:
type: string
example: OK
definitions:
Breachedemail:
type: "object"
required:
- "name"
properties:
name:
type: "string"
xml:
name: "Breachedemail"
externalDocs:
description: "Find out more about Swagger"
url: "http://swagger.io"