przpiw / CRUD_API_swagger

Express CRUD app demonstrates integrate and document API with Swagger(Open API 3.0)

Home Page:https://damiandev.space/hero_api_docs/#/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NodeJS CRUD API with swagger docs

This example is a good example for people who wants to start documenting Node.js API with Swagger.

Example covers requests documentation and documenting responses with schemas and example data

  • GET
  • POST
  • PUT
  • DELETE

demo

demo_detail

How to use

Execute node index.js to run the example as an app

OR

Run in docker container

docker-compose -f docker-compose.yml pull && docker-compose -f docker-compose.yml up -d --build


Swagger Page - Navigate to http://localhost:4000/docs

Documentation in JSON format avaliable http://localhost:4000/docs.json

Example

JSON Format

How to import to Postman Downloaded JSON documentation can be imported to postman Postman Import

About

Express CRUD app demonstrates integrate and document API with Swagger(Open API 3.0)

https://damiandev.space/hero_api_docs/#/


Languages

Language:JavaScript 95.9%Language:Dockerfile 4.1%