/Library-Microservice

A web based library app using the microservices architecture

Primary LanguageJavaScript

Library-Microservice

A web based library app using the microservices architecture

This is a library web application with different components communicating with each other

Services

  • Book services
  • Customer services
  • Oder services
  • Book Services

    Book services is a service that handles all the book related operations

    Routes/Paths

  • GET /find : Get all books available in the library
  • GET /book/:id Get a particular book from the library
  • POST /create Add a new boook to the library
  • DELETE /delete/:id Delete a book from the library
  • Book Model

    Book model is the model that is used to create a book object

    Properties

  • title : String
  • author : String
  • numberOfPages : int
  • API Visualization and Doc

    API visualization and documentation is done using Swagger

  • Swagger is a tool that is used to visualize and document RESTful APIs
  • Url:

    Replace the YOUR_URI with your MongoDB URI

    Customer Services

    Customer service handles all customer related requests

    Routes/Paths

  • GET /find : Get all customers
  • GET /customer/:id Get a particular customer
  • POST /create Add a new customer
  • DELETE /delete/:id Delete a customer
  • Customer Model

    Customer model is the model that is used to create a customer object

    Properties

  • name : String
  • age : int
  • address : String
  • API Visualization and Doc

    API visualization and documentation is done using Swagger

  • Swagger is a tool that is used to visualize and document RESTful APIs
  • Url:

    Replace the YOUR_URI with your MongoDB URI

    Order Services

    Order service handles all order related requests

    Routes/Paths

  • GET /find : Get all orders
  • GET /order/:id Get a particular order
  • POST /create Add a new order
  • DELETE /delete/:id Delete a order
  • Order Model

    Order model is the model that is used to create a order object

    Properties

  • bookId : String
  • customerId : String
  • orderDate : Date
  • deliveryDate: Date
  • API Visualization and Doc

    API visualization and documentation is done using Swagger

  • Swagger is a tool that is used to visualize and document RESTful APIs
  • Url:

    Replace the YOUR_URI with your MongoDB URI