-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathswagger.yaml
More file actions
58 lines (54 loc) · 1.31 KB
/
swagger.yaml
File metadata and controls
58 lines (54 loc) · 1.31 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
openapi: 3.0.0
info:
title: Tshirt store API
description: This for learning create API for ecommerce store
version: 1.1.0
contact:
email: fjmoradiya@gmail.com
url: "https://devfenil.hashnode.dev/"
# servers:
# - url: http://api.example.com/v1
# description: Optional server description, e.g. Main (production) server
# - url: http://staging-api.example.com
# description: Optional server description, e.g. Internal staging server for testing
servers:
- url: "{protocol}://localhost:1353/api/{version}"
description: Local Server - regular
variables:
version:
default: v1
enum:
- v1
- v2
protocol:
default: http
enum:
- http
- https
components:
securitySchemes:
cookieAuth:
type: apiKey
in: cookie
name: token
BearerAuth:
type: http
scheme: bearer
paths:
/dummy:
get:
tags:
- Home
summary: return a greet message from /codex
responses:
200:
description: All good success
content:
application/json:
schema:
type: string
example: "mystring"
400:
description: All Client Bad request
500:
description: All Server Bad responses