Skip to content

tisenres/bookstorage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Book Storage API

Introduction

This project is an API for storing books. It provides endpoints for retrieving books, searching for books by author, getting authors by symbol, and adding new books.

Usage

Endpoints

  • GET /api/v1/books-desc: Get all books in descending order.
  • GET /api/v1/books/books-by-author?author={author}: Get books by a specific author.
  • GET /api/v1/books/authors-by-symbol?symbol={symbol}&limit={limit}: Get authors by a specific symbol with a limit.
  • POST /api/v1/books: Add a new book.

Request Examples

Get all books in descending order

GET /api/v1/books-desc

Get books by author

GET /api/v1/books/books-by-author?author=AuthorName

Get authors by symbol

GET /api/v1/books/authors-by-symbol?symbol=a&limit=10

Add a book

POST /api/v1/books
Content-Type: application/json

{
    "title": "Crime and Punishment",
    "author": "F. Dostoevsky",
    "description": null
}

Technologies Used

  • Spring Boot
  • PostgreSQL
  • Java Stream API
  • Maven

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages