Commit Graph

13 Commits

Author SHA1 Message Date
Asim Aslam
cf117e2b46 fix typo (#1789) 2021-01-10 14:28:08 +03:00
ben-toogood
9a13b816be api/router/registry: use resolved domain (#1774) 2021-01-10 14:28:08 +03:00
ben-toogood
7c4047a900 api/resolver: update resolver to enable subdomain routing (#1747)
* api/resolver: update domain / service prefix usage

* api/resolver/subdomain: implement subdomain resolver for domain resolution

* api/handler: fix tests
2021-01-10 14:28:08 +03:00
Dominic Wong
a1d60688e1 Fix regex detection. Fixes #1663 (#1696) 2021-01-10 14:28:08 +03:00
750283cefd api/router: avoid unneeded loops and fix path match (#1594)
* api/router: avoid unneeded loops and fix path match

* if match found in google api path syntax, not try pcre loop
* if path is not ending via $ sign, append it to pcre to avoid matching other strings like
  /api/account/register can be matched to /api/account
* api: add tests and validations

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-01-10 14:28:08 +03:00
930b329310 api/router: support pcre and google.api pattern matching (#1549)
* api/router: support pcre and google.api pattern matching

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-01-10 14:28:08 +03:00
2f5eaa0127 api/router/registry: extract path based parameters from url to req (#1530)
* api/router/registry: extract path based parameters from url to req
* api/handler/rpc: fix empty body request parsing
* bundle grpc-gateway util funcs

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-01-10 14:28:08 +03:00
Asim Aslam
f34a4d29de Strip namespace from registry router 2021-01-10 14:28:08 +03:00
7970ee41af api: add static router and improve path parser in rpc handler (#1437)
* api: add static router and improve path parser in rpc handler

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>

* expose metadata context key to be able to get unmodified map keys

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>

* server/grpc: fix jsonpb codec for protobuf msg

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>

* api/handler/rpc: write 204 status code when rsp is nil

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>

* api/handler/rpc: add check for nil response for non javascript

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-01-10 14:28:08 +03:00
Asim Aslam
d5927581d2 Move error for api validation to trace level (#1432)
* remove error on endpoint validation

* trace level
2021-01-10 14:28:08 +03:00
c580879955 api/router/registry: use logger (#1402)
* api/router/registry: use logger

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>

* api/server/acme: use logger

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-01-10 14:28:08 +03:00
e15ad46e01 fix import paths for v2 release
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-01-10 14:28:08 +03:00
Asim Aslam
e43ffb92a3 Further consolidate the libraries 2021-01-10 14:28:08 +03:00