{ "info": { "name": "Library Book Management API", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ { "name": "Get All Books", "request": { "method": "GET", "header": [], "url": { "raw": "http://localhost:3000/api/books", "protocol": "http", "host": [ "localhost" ], "port": "3000", "path": [ "api", "books" ] } } }, { "name": "Get Book by ID", "request": { "method": "GET", "header": [], "url": { "raw": "http://localhost:3000/api/books/:id", "protocol": "http", "host": [ "localhost" ], "port": "3000", "path": [ "api", "books", ":id" ] }, "description": "Replace `:id` with the book ID, e.g., /api/books/1" } }, { "name": "Add New Book", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"New Book Title\",\n \"author\": \"Author Name\",\n \"publishedYear\": 2023\n}" }, "url": { "raw": "http://localhost:3000/api/books", "protocol": "http", "host": [ "localhost" ], "port": "3000", "path": [ "api", "books" ] } } }, { "name": "Delete Book", "request": { "method": "DELETE", "header": [], "url": { "raw": "http://localhost:3000/api/books/:id", "protocol": "http", "host": [ "localhost" ], "port": "3000", "path": [ "api", "books", ":id" ] }, "description": "Replace `:id` with the book ID to delete, e.g., /api/books/1" } } ] }