Skip to content

bhubam/book-catalog-interview-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Book Catalog API — Interview Starter

A simple REST API for managing a book catalog, built with Spring Boot and H2.

No external database setup is required — data is stored in a local H2 file database created automatically on first run.

Your task: see ASSIGNMENT.md for the coding exercise (library checkout/return).


Prerequisites

  • JDK 17 or higher (java -version must show 17+)
  • Maven 3.9+

If mvn uses an older JDK, set JAVA_HOME to your JDK 17+ installation before building.


Run locally

mvn spring-boot:run

Server runs on http://localhost:8080 by default.

curl http://localhost:8080/api/books

Baseline API

Method Path Description
GET / Welcome message
POST /api/books Create a book
GET /api/books List books; optional ?author= filter
GET /api/books/available List available books
GET /api/books/{id} Get one book
PUT /api/books/{id} Update a book
DELETE /api/books/{id} Delete a book

Tests

mvn test

About

Spring Boot book catalog API — coding interview starter (checkout/return exercise)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors