Refactor the tenant page title.
1 file changed
tree: 2d40dc3879f6c816b2e3a47ac359bdafbecfb03d
  1. etc/
  2. patron_app/
  3. patron_rest/
  4. static/
  5. .gitignore
  6. db.sqlite3
  7. LICENSE
  8. manage.py
  9. README.md
  10. run.bat
README.md

patron_rest

A RESTful API for Patron UI.

API

  1. GET /tenants: Get all tenants, each tenant has an ID and a name.
  2. GET /<TENANT_ID>: Get the metadata.json for a tenant <TENANT_ID>.
  3. GET /<TENANT_ID>/<POLICY_NAME>: Get the <POLICY_NAME>.json for a tenant <TENANT_ID>.
  4. POST /<TENANT_ID>: Set the metadata.json for a tenant <TENANT_ID>.
  5. POST /<TENANT_ID>/<POLICY_NAME>: Set the <POLICY_NAME>.json for a tenant <TENANT_ID>.
  6. GET /reset: Reset all data to the initial state.

Examples

  1. http://osvt.net:3000/tenants
  2. http://osvt.net:3000/tenants/85c8848b1dd64c7ebb2c5baeb12e25c3
  3. http://osvt.net:3000/tenants/85c8848b1dd64c7ebb2c5baeb12e25c3/custom-policy