项目作者: Hyunk3l

项目描述 :
User bounded context example with Spring Boot, Spring Cloud, Elasticsearch & Kafka all written in Kotlin
高级语言: Kotlin
项目地址: git://github.com/Hyunk3l/user-api.git
创建时间: 2017-07-22T09:39:30Z
项目社区:https://github.com/Hyunk3l/user-api

开源协议:

下载


Build Status

User Api

How to run

  1. ./gradlew bootRun

Endpoints

  1. Get list of users

    1. GET http://localhost:8000/v1/users
  2. Create a new user

    1. curl -XPOST http://127.0.0.1:8000/v1/users \
    2. -H 'Accept: application/json' \
    3. -H 'Content-Type: application/json' \
    4. -d '{
    5. "name": "Fabrizio",
    6. "surname": "Di Napoli",
    7. "email": "your-mail@gmail.com",
    8. "password": "123456"
    9. }'

you’ll get something like:

  1. {
  2. "id": "6fbf4ef5-d84b-4dcd-b227-3bce550ba8db"
  3. }

Testing

Run tests:

  1. ./gradlew test

Libraries