-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a7075ac
commit 1cb14ed
Showing
14 changed files
with
225 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
PORT = 8080 | ||
|
||
URL = /venecodollar | ||
API = v1.1.10 | ||
API = v1.2.0 | ||
API_VER_URL = /api/v1 | ||
|
||
API_DOC = /api/doc | ||
|
||
BASE_URL = https://monitordolarvenezuela.com/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var swagger_jsdoc_1 = __importDefault(require("swagger-jsdoc")); | ||
var swaggerOptions = { | ||
openapi: '3.0.0', | ||
definition: { | ||
info: { | ||
title: 'Venecodollar API Documentation', | ||
version: '1.2.0', | ||
description: "This section represents the Swagger documentation of the API designed with Venecodollar's NPM package. Here it is possible to test the endpoints provided by this API.\n\nIf you wish to make use of the NPM package in your javascript or typescript project, please [click here](https://www.npmjs.com/package/venecodollar), where you will be redirected to the official Venecodollar NPM package page.", | ||
contact: { | ||
name: 'the developer', | ||
email: '[email protected]', | ||
}, | ||
license: { | ||
name: 'MIT', | ||
url: 'https://github.com/gustavoerivero/venecodollar/blob/main/LICENSE' | ||
}, | ||
schemes: ['http', 'https'], | ||
servers: [{ url: 'https://venecodollar.vercel.app/api/v1' }], | ||
} | ||
}, | ||
apis: ["".concat(__dirname, "/routes/*.ts"), './build/routes/*.js'] | ||
}; | ||
exports.default = (0, swagger_jsdoc_1.default)(swaggerOptions); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"watch": ["src"], | ||
"ext": ".ts,.js,.json", | ||
"ext": ".ts, .js, .json, .yml", | ||
"ignore": [], | ||
"exec": "npx ts-node ./src/index.ts" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import swaggerJsonDoc from 'swagger-jsdoc' | ||
|
||
const swaggerOptions = { | ||
openapi: '3.0.0', | ||
definition: { | ||
info: { | ||
title: 'Venecodollar API Documentation', | ||
version: '1.2.0', | ||
description: "This section represents the Swagger documentation of the API designed with Venecodollar's NPM package. Here it is possible to test the endpoints provided by this API.\n\nIf you wish to make use of the NPM package in your javascript or typescript project, please [click here](https://www.npmjs.com/package/venecodollar), where you will be redirected to the official Venecodollar NPM package page.", | ||
contact: { | ||
name: 'the developer', | ||
email: '[email protected]', | ||
}, | ||
license: { | ||
name: 'MIT', | ||
url: 'https://github.com/gustavoerivero/venecodollar/blob/main/LICENSE' | ||
}, | ||
schemes: ['http', 'https'], | ||
servers: [{ url: 'https://venecodollar.vercel.app/api/v1' }], | ||
} | ||
}, | ||
apis: [`${__dirname}/routes/*.ts`, './build/routes/*.js'] | ||
} | ||
|
||
export default swaggerJsonDoc(swaggerOptions) |
1cb14ed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
venecodollar – ./
venecodollar.vercel.app
venecodollar-git-main-gustavoerivero.vercel.app
venecodollar-gustavoerivero.vercel.app