-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathswaggerOpts.js
More file actions
26 lines (26 loc) · 882 Bytes
/
swaggerOpts.js
File metadata and controls
26 lines (26 loc) · 882 Bytes
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
module.exports = {
routePrefix: '/v1/docs',
swagger: {
info: {
title: 'api.telos.net',
description: 'Telos Network APIs',
version: '0.1.0'
},
externalDocs: {
url: 'https://docs.telos.net',
description: 'Find more info here'
},
host: process.env.SERVER_ENDPOINT,
schemes: ['https', 'http'],
tags: [
{ name: 'stats', description: 'Chain statistics endpoints' },
{ name: 'testnet', description: 'Testnet endpoints' },
{ name: 'tokens', description: 'Token endpoints' },
{ name: 'evm', description: 'EVM endpoints' },
{ name: 'accounts', description: 'Account creation endpoints' }
],
consumes: ['application/json'],
produces: ['application/json']
},
exposeRoute: true
}