forked from algonacci/express-docker-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi-docs.yaml
55 lines (50 loc) · 1.4 KB
/
api-docs.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.2'
info:
title: API Documentation
description: Optional multiline or single-line description in [CommonMark](http://commonmark.org/help/) or HTML.
version: '1.0.0'
servers:
- url: "http://localhost:8080"
description: Optional server description, e.g. Main (development) server
components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
security:
- bearerAuth: []
paths:
/:
get:
summary: Returns a list of users.
description: Optional extended description in CommonMark or HTML.
tags:
- 'Index'
security:
- bearerAuth: []
responses:
'200':
description: Response success for index routes.
content:
application/json:
schema:
type: object
properties:
status:
type: object
properties:
code:
type: integer
format: int64
example: 200
message:
type: string
example: "Success fetching the API!"
data:
type: string
example: null
'401':
description: Unauthorized user.
default:
description: Unexpected error