About 9,620,000 results
Open links in new tab
  1. Retrieving A Book By ID - Implementation | RESTful Node.js: A ...

    const getBookById = catchException (async (req, res, next) => { const book = await bookService.getBookById (req.params.id) return res.json ( globalResponseDTO ( { status: …

  2. node.js - Nodejs restful API: how to get data by id - Stack Overflow

    Jul 29, 2019 · I am building a node/express app and I want to return a specific data by handling id params. Here is the structure of my files:

  3. Books Directory Project with nodejs - CRUD operation using mongoose

    Dec 7, 2021 · In this NodeJS tutorial, We will develop backend RESTAPI a “ Book directory project”, where we will perform CRUD operation like Create, Read, Update & Delete data from …

  4. Building a REST API with Node and Express - Stack Abuse

    Aug 31, 2023 · This is typically done by parsing the URL parameter for an id and searching for the book with the corresponding id. For an example, if the ISBN is 9781593275846 the URL would …

  5. GitHub - chandrangreat/books-directory-nodejs: A practice …

    For this purpose, I’d like to suggest you build a book directory, where you would need to create endpoints, using the four most basic methods: GET, POST, PUT and DELETE. You’d use …

  6. Book list page - Learn web development | MDN

    Apr 11, 2025 · The route handler calls the find() function on the Book model, selecting to return only the title and author as we don't need the other fields (it will also return the _id and virtual …

  7. node.js - GET request 'find by name' instead of find by id - Stack Overflow

    Jun 5, 2019 · Is there a way for me use this code or a similar code to find by username instead of findById? Router.route ('/:id').get (function (req, res) { let id = req.params.id; Books.findById …

  8. How to Implement Search and Filtering in a REST API with Node.js

    Jan 7, 2025 · In this article, we'll see how we can build a Node.js REST API that can accept these query strings, filter a list of users based on these provided parameters, and then return the …

  9. Retrieving A Book By ID - Planning | RESTful Node.js: A …

    The first is the book with the specified ID if it does exist in the database. { "status": "success", "code": 200, "message": "Here is the book with the specified ID."

  10. node.js - Node GET by ID API - Stack Overflow

    Aug 7, 2021 · To reach the /viewstores/:id route, the URL should be something likes http://localhost:5000/viewstores/12345 then Express will capture the 12345 part in the URL to …

Refresh