This is a simple RESTful API of books built using Go. allows you to perform two actions (get book by ID and get all books).
This project have a CI/CD pipeline using Gh Actions to automate testing and deployment to AWS EC2 instance.
GET /books- URL:
/books - Method:
GET - Description: Retrieves a list of all books.
- Response:
- Status Code:
200 OK/ - Body: JSON array of book objects.
- Status Code:
GET /books/{id}- URL:
/books/{id} - Method:
GET - Description: Retrieves a book by its ID.
- URL Parameters:
id(required): The ID of the book to retrieve.
- Response:
- Status Code:
200 OKif found,404 Not Foundif not found. - Body: JSON object of the book.
- Status Code:
{
"id": "1",
"title": "Clean Code",
"author": "Uncle Bob",
"isbn": "978-0132350884"
}