Skip to content

Examples of how to use nodejs and swagger, three different examples.

License

Notifications You must be signed in to change notification settings

damiancipolat/node_swagger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NODE.JS & SWAGGER

Differentes ways of how to handle money values using JS, some recommended libraries and a custom implementation.

I makes this project because I consider that it is necessary to demonstrate how JS in what is the handling of numbers, this in part is due to certain inaccuracies in operations

Plain files:

They are examples of how to document an api using only text .yml files from a simple project created MyApi.

MyApi example:

Express & Swagger:

Examples of how to use the module swagger-ui-express in an api rest created with node.js.

npm install
node app.js

To change the swagger file go to: /express_swagger/swagger.yml, to see the doc enter: http:https://127.0.0.1/doc

Express + JOI + Swagger:

Example of how to use the module joi-to-swagger in an api rest created with node.js, here we use joi to define the schema objects.

npm install
node app.js

TODO:

  • Add api rest.
  • Include the swagger doc to the api.
  • Add yaml instead of json files.

Readings

Continue readings this links:

About

Examples of how to use nodejs and swagger, three different examples.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published