WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

asusoda/springboot-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Soda Workshop on Spring Boot

Link to slides - https://github.com/asusoda/springboot-workshop/blob/master/Springboot%20Workshop.pdf

Getting Started

Using the Spring Initializer (Not Recommended)

  1. Go to https://start.spring.io/
  2. Click on "Add Dependencies" and add "Spring Web"
  3. Click on "Generate"
  4. Download the zip file and extract it
  5. Open the project in your IDE

Clone this repository (Recommended)

git clone https://github.com/asusoda/springboot-workshop.git

And then, open the project in your IDE

Running the API

./mvnw spring-boot:run

GET all users (GET /user)

curl --location 'http://localhost:8080/user'

CREATE a user (POST /user)

curl --location 'http://localhost:8080/user' \
--header 'Content-Type: application/json' \
--data '{
    "asurite": "sparky",
    "name": "Sun Devil",
    "number": "3689071223"
}'

UPDATE a user (PUT /user/{asurite})

curl --location --request PUT 'http://localhost:8080/user/sparky' \
--header 'Content-Type: application/json' \
--data '{
    "name": "Sparky the Sun-Devil",
    "number": "3689071223"
}'

DELETE a user (DELETE /user)

curl --location --request DELETE 'http://localhost:8080/user' \
--header 'Content-Type: application/json' \
--data '{
    "asurite": "sparky"
}'

About

Simple RESTful API for user management, built for the Springboot Workshop in Fall '25

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages