-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
83f8a55
commit 965aa28
Showing
2 changed files
with
4 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# gRPC API GATEWAY | ||
|
||
more details in wiki page [api-gateway-grpc](https://github.com/FrogDevelopment/micronaut-api-gateway/wiki/api-gateway-grpc) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,3 @@ | ||
# HTTP API GATEWAY | ||
|
||
## Direct Gateway | ||
|
||
Requests will be directly redirect to the Service set in the URI. | ||
For example, given the configuration | ||
|
||
```yaml | ||
gateway: | ||
direct: true | ||
``` | ||
- `{host}/api/my-service/foo/bar` will be proxied to `{my-service-endpoint}/foo/bar` | ||
- `{host}/api/my-service/my-endpoint` will be proxied to `{my-service-endpoint}/my-endpoint` | ||
|
||
## Routed Gateway | ||
|
||
Requests will be re-routed based on configured routes and context. | ||
For example, given the configuration | ||
|
||
```yaml | ||
gateway: | ||
direct: false | ||
routes: | ||
my-service: | ||
service-id: my-service-id | ||
mapping: | ||
- route: foo-bar | ||
context: /foo/bar | ||
- route: my-endpoint | ||
some-remote-application: | ||
uri: https://example.com | ||
mapping: | ||
- route: example | ||
``` | ||
|
||
- `{host}/api/foo-bar` will be proxied to `{service-endpoint}/foo/bar` | ||
- `{host}/api/my-endpoint` will be proxied to `{service-endpoint}/my-endpoint` | ||
- `{host}/api/example` will be proxied to `https://example.com` | ||
more details in wiki page [api-gateway-http](https://github.com/FrogDevelopment/micronaut-api-gateway/wiki/api-gateway-http) |