Skip to content

aditya0562/socialcops

Repository files navigation

Socialcops-microservice

Microservice for patching document and getting image thumbnail

Getting Started

npm start -> to start the server

npm run swagger -> for updating swagger documentation

Prerequisites

Installing

npm install -> to install all the dependencies

API Endpoints

/login -> to fetch jwt tokens

/patch -> to patch any document(pass bearer jwt token in headers)

/thumbnail -> to get thumbnail of an image-url(pass bearer jwt token in headers)

/doc -> swagger documentation(use this for detail documentation)

Running the tests

Run "npm test" to run the tests and get test coverage results.

Built With

  • Express - The web framework used
  • Mocha - Test framework used

Authors

  • Aditya Anand