$matcho
Dev endpoint to test matcho engine
Macho DSL is used as engine in AccessPolicy and Subscription

Definition

Matcho DSL definition is described here

Debug endpoint

POST /$matcho is a REST endpoint to test matcho engine, which is used in AccessPolicy and Subscriptions.
1
POST /$matcho
2
3
matcho: {'a': 1}
4
resource: {'a': 2}
5
context: { user: 'u-1' }
6
7
--
8
9
matcho: {a: 1}
10
resource: {a: 2}
11
result:
12
- expected: 1
13
but: 2
14
path: [a]
Copied!
Copy link