Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement request mapping #4

Open
edwardUL99 opened this issue Mar 7, 2022 · 1 comment
Open

Implement request mapping #4

edwardUL99 opened this issue Mar 7, 2022 · 1 comment
Assignees

Comments

@edwardUL99
Copy link
Owner

Request mapping takes an inbound request into the gateway and maps it to the microservice that can handle that request. Mapping should take place as follows:

  • Inbound URL: http://localhost:8080/api/gateway/microservice/items
  • Mapping removes the /api/gateway/ string
  • microservice is the name of the client microservice that can handle the request
  • The host and port of the registered microservice is used and the remainder of the URL is passed to the microservice, so the URL becomes http://host:port/items
  • The request is sent to the microservice
  • The response is then sent back to the client through the gateway

Interception should take place before and after mapping

@edwardUL99 edwardUL99 self-assigned this Mar 7, 2022
@edwardUL99
Copy link
Owner Author

Mostly completed, just need to test it when real microservices are linked up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant