Skip to content

Latest commit

 

History

21 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Version Test & Build

Books API

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.

Flowchart

cicd.png

About the API

Endpoints

Get All Books

  GET /books
  • URL: /books
  • Method: GET
  • Description: Retrieves a list of all books.
  • Response:
    • Status Code: 200 OK /
    • Body: JSON array of book objects.

Get Book by ID

  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 OK if found, 404 Not Found if not found.
    • Body: JSON object of the book.
Example Book Object
{
  "id": "1",
  "title": "Clean Code",
  "author": "Uncle Bob",
  "isbn": "978-0132350884"
}

About

RESTful API of books with CI/CD on Github Actions, built in Go.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages