prashantkalkar / user-service

Repo to contain producer code. Part of the CDC expert talk.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

user-service

Repo to contain producer code. Part of the CDC expert talk.

How to start a service:

Make sure you have jdk and mvn installed and added in the path

Run following command to make service up:

mvn spring-boot:run -Dserver.port=8888

Service endpoints:

/user GET request:

curl -X GET http://localhost:8888/user/myID 

Response: HTTP 200 with body:

{
    "name": "paresh",
    "email": "paresh@ee.com",
    "contact": "9888988786",
    "address": "pune"
}

How to run CDC test:

mvn clean install or mvn test

It will run the CDC test generated by Consumer (Order) service.

About

Repo to contain producer code. Part of the CDC expert talk.


Languages

Language:Java 100.0%