tiny-rest-task
How to start
-
Clone the repo
-
Create Mysql database:
create database user_database
- Change username and password:
open application.properties,
change spring.datasource.username and spring.datasource.password and url to yours database
- Build and run the app with your favorite IDE or with maven. The app will start running at http://localhost:8080.
The app defines following CRUD APIs:
GET:
/users
/users/{id}
/users/searchbyname/{name}
/users/{id}/phonebook
/contacts/{contactId}
POST:
/users
/contacts
PUT:
/users/{id}
/contacts/{contactId}
:DELETE
/users/{id}
/contacts/{contactId}