Skip to content
/ RestBase Public template

Base template for Rest API with Spring + MySql

License

Notifications You must be signed in to change notification settings

csuardev/RestBase

Repository files navigation

RestBase

This is a basic template for starting up new REST API with Spring + MySql running on docker containers. It’s also a GitHub template so you can use it quickly as described here

This is by no mean a production usable template. Use it just for quick testing purposes

API Endpoints

GET /api/user

http://localhost:8080/api/user Find all users

GET /api/user/{id}

http://localhost:8080/api/user/1 Find a user by its ID

POST /api/user

http://localhost:8080/api/user Generates a new User

Body id is autogenerated

JSON
{
  "name": "ChangeName"
}

PUT /api/user/{id}?name={newName}

http://localhost:8080/api/user/1?name=newName Updates an existing user name

DEL /api/user/{id}

http://localhost:8080/api/user/1 Delete an existing user by its id

About

Base template for Rest API with Spring + MySql

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published