Skip to content

suru33/users-api-java

Repository files navigation

How to

Pre req:

  • docker
  • docker-compose
  • JDK-11
  • maven

To start dev and test database

docker-compose up

To stop dev and test database

docker-compose down

To test

mvn clean test

To run

mvn spring-boot:run

Example request

curl --request POST \
  --url http://localhost:8080/api/user \
  --header 'Content-Type: application/json' \
  --data '{
	"firstName": "Tim",
	"lastName": "Page",
	"phone": "+378 85 34",
	"email": "james@bloom.cok",
	"addressLine1": "Brook Street Lane 67",
	"addressLine2": null,
	"city": "Berlin",
	"state": "Brandenburg",
	"zip": "36413",
	"countryCode": "DE"
}'