Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 728 Bytes

usdmatcho.md

File metadata and controls

32 lines (22 loc) · 728 Bytes
description
Dev endpoint to test matcho engine

$matcho

Matcho DSL is used to define rules for AccessPolicy and Subscription resources.

Definition

Matcho DSL syntax is described here.

Debug endpoint

POST /$matcho is a REST endpoint to test matcho engine, which is used in AccessPolicy and Subscriptions.

POST /$matcho

matcho: {'a': 1}
resource: {'a': 2}
context: { user: 'u-1' }

-- 

matcho: {a: 1}
resource: {a: 2}
result:
- expected: 1
  but: 2
  path: [a]