Giter Club home page Giter Club logo

by22shh / user-microservices-with-camel Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 86 KB

Microservice architecture project that contains a web service and processing service. The web service receives requests from the client and sends them to the message queue and creates a callback queue to receive a response for a specific request from another service. The processing service receives messages from the queue, processes the requests accordingly and sends a response to the callback queue. Spring(web, amqp, data), RabbitMQ, Apache Camel..

License: MIT License

Java 100.00%
spring rabbitmq apachecamel microservice-architecture

user-microservices-with-camel's Introduction

Microservices for working with users + Apache Camel

Microservice architecture project that contains a web service and processing service. Spring(web, data), RabbitMQ, Apache Camel.

REST API Reference

Response Codes

200: Success
400: Bad request
404: Cannot be found

Create user


Request URL:

POST /api/v1/users

Request Body:

{
    "name": "Ivan",
    "surname": "Ivanov", 
    "patronymic": "Ivanovich", 
    "email": "[email protected]"
 }

Successful Response:

Status: 200

{   "id": 1,
    "name": "Ivan",
    "surname": "Ivanov", 
    "patronymic": "Ivanovich", 
    "email": "[email protected]"
 }

Failed Response:

Status: 400

{
    "message": "User with email [[email protected]] has already been created"
}

Update user


Request URL:

PUT /api/v1/users/{id}

Request Body:

{
    "name": "Nikita",
    "surname": "Ivanov", 
    "patronymic": "Ivanovich", 
    "email": "[email protected]"
 }

Successful Response:

Status: 200

{   "id": 1,
    "name": "Nikita",
    "surname": "Ivanov", 
    "patronymic": "Ivanovich", 
    "email": "[email protected]"
 }

Failed Response:

Status: 404

{
    "message": "User with id [2] not found"
}

Get user


Request URL:

GET /api/v1/users/{id}

Successful Response:

Status: 200

{
    "id": 1,
    "name": "Nikita",
    "surname": "Ivanov", 
    "patronymic": "Ivanovich", 
    "email": "[email protected]"
}

Failed Response:

Status: 404

{
    "message": "User with id [2] not found"
}

Delete user


Request URL:

DELETE /api/v1/users/{id}

Successful Response:

Status: 200

Failed Response:

Status: 404

{
    "message": "User with id [2] not found"
}

License

MIT


GitHub: @baymxs VK: @baymxs

user-microservices-with-camel's People

Contributors

by22shh avatar

Watchers

James Cloos avatar  avatar

Forkers

kprabhatgit

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.