637dcb5cc1
update micro to v3.1.1
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
v3.1.1
2021-01-16 01:24:38 +03:00
b9ccb43243
use own fork
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-01-10 14:30:04 +03:00
Asim Aslam
cf3186c481
Move api/router/util to util/router ( #1909 )
2021-01-10 14:28:08 +03:00
Asim Aslam
ac0f3bcbd5
dont process endpoint unless absolutely necessary
2021-01-10 14:28:08 +03:00
Asim Aslam
a4a73bac67
v3 refactor ( #1868 )
...
* Move to v3
Co-authored-by: Ben Toogood <bentoogood@gmail.com>
2021-01-10 14:28:08 +03:00
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