Coder Social home page Coder Social logo

bookstore-api's Introduction

๐Ÿ“š Bookstore API

A simple backend CRUD application for managing book categories and books.

Features

  • Create, read, update, and delete book categories.
  • Create, read, update, and delete books.
  • Establish a one-to-many relationship between categories and books (one category can have many books).
  • Ensure that each book belongs to exactly one category.

Technologies Used

  • Java: Backend language.
  • Spring Boot: Framework for building Java applications.
  • Spring Data JPA: For database interaction.
  • MySQL: Relational database management system.
  • H2 Database: Relational database management system for tests.
  • Maven: Build and dependency management.

Getting Started

  1. Clone this repository.
  2. Set up your MySQL database.
  3. Configure the database connection in application.properties.
  4. Run the application using Maven: mvn spring-boot:run.

API Endpoints

  • Categories:

    • GET /api/categorias: Get a list of all categories.
    • GET /api/categorias/{categoryId}: Get details of a specific category.
    • POST /api/categorias: Create a new category.
    • PUT /api/categorias/{categoryId}: Update an existing category.
    • DELETE /api/categorias/{categoryId}: Delete a category.
  • Books:

    • GET /api/livros?categoria={categoryId}: Get a list of all books of a specific category.
    • GET /api/livros/{bookId}: Get details of a specific book.
    • POST /api/livros?categoria={categoryId}: Create a new book in a specific category.
    • PUT /api/livros/{bookId}: Update an existing book.
    • DELETE /api/livros/{bookId}: Delete a book.

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, feel free to open a pull request or submit an issue.

Author

Gustavo Sรก

bookstore-api's People

Contributors

gsbad avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.