Skip to content

GOZEBRAHEAD/SpringBoot-API-base

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Base for a Spring Boot API

The main idea behind this is to have a ready-to-go class as a base to use it as an API. In this case, I decided to just create one class (Product), so it can be something simple but easy to modify, giving us a good starting point for our project.

[API documentation]

Get all products

  GET /products/get/all
Description
Returns all the products from the database.

Get a specific product

  GET /products/get/{id}
Description
{id} represents the product ID to get

Create a new product

  POST /products/new
Description
It uses a RequestBody, so you have to pass a product when calling the function.

Edit a product

  PUT /products/edit/{id}
Description
{id} represents the product ID to edit
It uses a RequestBody, so you have to pass a product when calling the function.

Delete a product

  DELETE /products/delete/{id}
Description
{id} represents the product ID to delete

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages