Giter VIP home page Giter VIP logo

library-management-system's Introduction

library-management-system

This is a CRUD API for Library Management System

Technologies and Packages used

Node js

NPM(Node Package Manager)

Express

Body Parser

uuid

Installation

1->Initialise npm in your folder

2->Install the following dependencies using the command npm install Screenshot (223)

3->Start the server using node index.js

4->The API will be accessible at http://localhost:3000

API Endpoints

Get all books

URL: /books

Method: GET

Description: Retrieves all books in the library.

Get a single book

URL: /books/{bookId}

Method: GET

Description: Retrieves a specific book by ID.

Create a new book

URL: /books

Method: POST

Description: Creates a new book.

Update a book

URL: /books/{bookId}

Method: PATCH

Description: Updates an existing book.

Delete a book

URL: /books/{bookId}

Method: DELETE

Description: Deletes a book.

Request and Response Examples

We can test this API on applications like POSTMAN and THUNDERCLIENT

Creating new book

post1

post2

Getting details of all the books

get1

Getting details of books based on id

getBYId

Updating an existing book by its id

update1

uodate2

Deleting an existing book

delete1

delete2

library-management-system's People

Contributors

malayt04 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.