Create an API endpoint to get detailed information about one book in the library catalogue.
The endpoint should accept GET requests. Use the book's id to query for a specific book.
The response should be a JSON object of information about one book. Include all the information about the book that is available in the database.
For now, use the testing database in this repo to query the information. (We will eventually change this to use the actual library catalogue database on the CSC servers.)
Create an API endpoint to get detailed information about one book in the library catalogue.
The endpoint should accept GET requests. Use the book's id to query for a specific book.
The response should be a JSON object of information about one book. Include all the information about the book that is available in the database.
For now, use the testing database in this repo to query the information. (We will eventually change this to use the actual library catalogue database on the CSC servers.)
Some potentially helpful resources:
- https://nextjs.org/docs/api-routes/introduction
- https://www.sqlitetutorial.net/sqlite-nodejs/
Create an API endpoint to get detailed information about one book in the library catalogue.
The endpoint should accept GET requests. Use the book's id to query for a specific book.
The response should be a JSON object of information about one book. Include all the information about the book that is available in the database.
For now, use the testing database in this repo to query the information. (We will eventually change this to use the actual library catalogue database on the CSC servers.)
Some potentially helpful resources: