https://github.com/hyunk3l/user-api
User bounded context example with Spring Boot, Spring Cloud, Elasticsearch & Kafka all written in Kotlin
https://github.com/hyunk3l/user-api
ddd ddd-architecture domain-driven-design elasticsearch hexagonal-architecture kafka kotlin spring spring-boot springboot
Last synced: over 1 year ago
JSON representation
User bounded context example with Spring Boot, Spring Cloud, Elasticsearch & Kafka all written in Kotlin
- Host: GitHub
- URL: https://github.com/hyunk3l/user-api
- Owner: Hyunk3l
- Created: 2017-07-22T09:39:30.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2025-03-02T18:27:09.000Z (over 1 year ago)
- Last Synced: 2025-03-02T19:29:44.298Z (over 1 year ago)
- Topics: ddd, ddd-architecture, domain-driven-design, elasticsearch, hexagonal-architecture, kafka, kotlin, spring, spring-boot, springboot
- Language: Kotlin
- Homepage:
- Size: 187 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://travis-ci.org/Hyunk3l/user-api)
# User Api
## How to run
```
./gradlew bootRun
```
## Endpoints
1. Get list of users
```
GET http://localhost:8000/v1/users
```
2. 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"
}
```
## Testing
Run tests:
```
./gradlew test
```
## Libraries
* [Kluent](https://markusamshove.github.io/Kluent/).
* [AssertJ](http://joel-costigliola.github.io/assertj/)
* [JSONAssert](https://github.com/skyscreamer/JSONassert)
## Other links
* [JSONAssert examples](https://www.baeldung.com/jsonassert)
* [My blog](https://www.fabridinapoli.com)