Skip to content

scewdoosh/SpringBootCRUD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot CRUD

A demo Spring Boot project implementing basic CRUD (Create, Read, Update, Delete) operations using MySQL.

Dependencies

  • Spring Boot Starter Data JPA

  • Spring Boot Starter Web MVC

  • MySQL Connector/J

Database Configuration

Configure your application.properties with your MySQL database details.

How to Run

Install Dependencies:

mvn clean install

Run the Application:

mvn spring-boot:run

API Endpoints

exported json file for api endpoints is available in postman_api_collection dir

Here are the available API endpoints for the Spring Boot CRUD application:

Test Endpoint

URL: http://localhost:3000/api/test

Method: GET

Description: Checks if the API is running.


Create Cartoon

URL: http://localhost:3000/api/postcartoon

Method: POST

Description: Creates a new cartoon entry in the database.


Get All Cartoons

URL: http://localhost:3000/api/all

Method: GET

Description: Retrieves all cartoon entries from the database.


Update Cartoon

URL: http://localhost:3000/api/update/{id}

Method: PUT

Description: Updates the cartoon entry with the specified ID.


Delete Cartoon

URL: http://localhost:3000/api/delete/{id}

Method: DELETE

Description: Deletes the cartoon entry with the specified ID.

About

crud application using springboot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages