Create an API endpoint to get a list of all books in the library catalogue.
The endpoint should accept GET requests.
The response should be a JSON array of all books. Include the following information about each book:
id
title
authors
isbn
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 a list of all books in the library catalogue.
The endpoint should accept GET requests.
The response should be a JSON array of all books. Include the following information about each book:
- id
- title
- authors
- isbn
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 a list of all books in the library catalogue.
The endpoint should accept GET requests.
The response should be a JSON array of all books. Include the following information about each book:
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: