Skip to content

A REST API with Express. Using Swagger for documentation and Docker to deploy

Notifications You must be signed in to change notification settings

theoribbi/express-rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Express Rest API Swagger Base Project

A REST API with Express. Using Swagger for documentation and Docker to deploy

API Reference

Base URL

  GET /api/v1

Swagger URL

  GET /api-docs

Auth

Register

  POST /api/v1/register

Login

  POST /api/v1/login

Logout

  POST /api/v1/logout

User

Get all user

  GET /api/v1/user

Get user by ID

  GET /api/v1/user/:id
Parameter Type Description
id string Required. Id of item to fetch

Create user

  POST /api/v1/user

Update user by ID

  PUT /api/v1/user/:id
Parameter Type Description
id string Required. Id of item to fetch

Delete user by ID

  DELETE /api/v1/user/:id
Parameter Type Description
id string Required. Id of item to fetch

Installation

After cloning the project, make sure you have docker installed.

  docker-compose up --build
  http://localhost:3000/api-docs

About

A REST API with Express. Using Swagger for documentation and Docker to deploy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published