Coder Social home page Coder Social logo

book-management-api's Introduction

This is a Book Record Management API build with node js & express js

Documentation

https://documenter.getpostman.com/view/23950566/2s847LLAX1

Routes and EndPoints

NOTE: _ Date Is In mm/dd/yyyy Format _

✅ => DONE

1) /users

POST: Create a new user    ✅
GET: Get all list of users ✅

1.1) /users/{id}

GET: Get a user by id ✅
PUT: Update a user by id ✅
DELETE: Delete a user by id ✅ (check if he/she still has an issued book) (is there any fine to be paid)

1.2) /users/subscription-details/{id}

GET: Get user subscription details ✅
  1. Date of subscription ✅
  2. Valid till ✅
  3. Fine if any ✅

2) /books

GET: Get all books ✅
POST: Create/Add a new book ✅

2.1) /books/{id}

GET: Get a book by id ✅
PUT: Update a book by id ✅

2.2) /books/issued/by-user

GET: Get all issued books ✅

2.3) /books/issued/withFine

GET: Get all issued books with fine ✅

Subscription Types

Basic (3 months) Standard (6 months) Premium (12 months)

NOTE: dates will be in format mm/dd/yyyy

If the subscription date is 01/01/22 and Subscription type is Standard then it will be valid till date will be 01/06/22

Fines

If he/She has an issued book he did not return within return date, then he gets a fine of $69

If he/she has an issued book and he misses the date of return, and his subscription also expires, then he will get a fine of $169

book-management-api's People

Contributors

akash-prasad7 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.