Code Monkey home page Code Monkey logo

quotes-spring_boot's Introduction

Quotes API using Spring Boot

Welcome to the Quotes API project! This project is designed to showcase the creation of a simple API for managing quotes using Spring Boot.

Table of Contents

Description

This project demonstrates the creation of a RESTful API for managing quotes. The API is built using Spring Boot and utilizes an SQL database to store quotes. It provides endpoints to retrieve, create, update, delete, and even retrieve random quotes.

Features

  • Retrieve a list of all quotes.
  • Create a new quote.
  • Update an existing quote.
  • Delete a quote.
  • Retrieve a random quote.

Endpoints

  • GET /api/quotes: Retrieve a list of all quotes.
  • GET /api/quotes/{id}: Retrieve a specific quote by ID.
  • POST /api/quotes: Create a new quote.
  • PUT /api/quotes/{id}: Update an existing quote.
  • DELETE /api/quotes/{id}: Delete a quote.
  • GET /api/quotes/random: Retrieve a random quote.

Database Table

The quotes are stored in an SQL table named quotes. Here is the conceptual structure of the quotes table:

  • id (Primary Key)
  • author (String)
  • text (String)
  • source (String, optional)
  • dateCreation (Date/Time)
  • dateUpdate (Date/Time)

Getting Started

  1. Clone the repository.
  2. Configure your database settings in application.properties.
  3. Build and run the project using your preferred IDE or command line.
  4. Access the API using the provided endpoints.

Usage

  1. Retrieve a list of all quotes: GET /api/quotes
  2. Retrieve a specific quote: GET /api/quotes/{id}
  3. Create a new quote: POST /api/quotes
  4. Update an existing quote: PUT /api/quotes/{id}
  5. Delete a quote: DELETE /api/quotes/{id}
  6. Retrieve a random quote: GET /api/quotes/random

Contributing

Contributions are welcome! If you'd like to contribute to this project, feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License.

quotes-spring_boot's People

Contributors

elkhiari avatar

Watchers

 avatar

quotes-spring_boot's Issues

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.