-
Notifications
You must be signed in to change notification settings - Fork 0
/
swagger.yaml
52 lines (49 loc) · 1.1 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
openapi: "3.0.0"
info:
title: Ecom store API
description: A project about making the backend for a ecom store
version: 1.1.0
contact:
email: [email protected]
url: "https://github.com/abhiraj-ku/Ecom-App"
servers:
- url: "{protocol}://localhost:4000/api/{version}"
description: for local host
variables:
version:
enum:
- v1
- v2
default: v1
protocol:
enum:
- http
- https
default: http
components:
securitySchemes:
cookieAuth:
type: apiKey
in: cookie
name: token
BearerAuth:
type: http
scheme: bearer
paths:
/dummy:
get:
tags:
- Home
summary: returns a greet message from backend
responses:
200:
description: All good success
content:
application/json:
schema:
type: string
example: "mystring"
400:
description: Bad request
500:
description: internal server error