-
Notifications
You must be signed in to change notification settings - Fork 15
/
swagger.ts
39 lines (39 loc) · 813 Bytes
/
swagger.ts
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
import { getUsers } from './src/open-api/get-users';
export const swaggerDocument = {
openapi: '3.0.1',
info: {
version: '1.0.0',
title: 'APIs Document',
description: 'your description here',
termsOfService: '',
contact: {
name: 'Mohammad Faisal',
email: 'mohammadfaisal@gmail.com',
url: 'https://www.mohammadfaisal.dev/',
},
license: {
name: 'Apache 2.0',
url: 'https://www.apache.org/licenses/LICENSE-2.0.html',
},
},
tags: [
{
name: 'Users',
},
],
paths: {
'/auth/users': {
get: getUsers,
},
},
servers: [
{
url: 'http://localhost:4000/api/v1',
description: 'Local server',
},
{
url: 'https://your_production_url/api/v1',
description: 'Production Env',
},
],
};