Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Janky Quick Example of RPC API being cool

POST /check-v1

Request

{
  "user_uuid" : "12345",
  "policy_action" : "do-a-thing"
}

Response

{
  "result" : true
}

POST /check-all-v1

Request

{
  "user_uuid" : "12345",
  "policy_actions" : [
    "do-a-thing",
    "and-this",
    "what-about-that"
  ]
}

Response

{
  "result" : true
}

POST /check-matrix-v1

Request

{
  "user_uuid" : "12345",
  "policy_actions" : [
    "do-a-thing",
    "and-this",
    "what-about-that"
  ]
}

Response

{
  "result" : {
    "do-a-thing": true,
    "and-this": false,
    "what-about-that": true
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.