User bounded context example with Spring Boot, Spring Cloud, Elasticsearch & Kafka all written in Kotlin
./gradlew bootRun
Get list of users
GET http://localhost:8000/v1/users
Create a new user
curl -XPOST http://127.0.0.1:8000/v1/users \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"name": "Fabrizio",
"surname": "Di Napoli",
"email": "your-mail@gmail.com",
"password": "123456"
}'
you’ll get something like:
{
"id": "6fbf4ef5-d84b-4dcd-b227-3bce550ba8db"
}
Run tests:
./gradlew test