Warrant APIs
Number of APIs: 27
This collection contains sample requests for creating Object Types, Users, Tenants, Warrants, Roles and Permissions, everything needed to build an access model using Warrant (including role based access control).
Check out the Warrant Docs for more details and guides. You can also try this collection out on your own account by following these steps:
- Create an account on https://warrant.dev.
- Retrieve your API key from the dashboard.
- Set your key as the {{API_KEY}} variable in Qodex (local var or in Warrant Global Env).
- You're all set!
-
Objects - Delete an Object DELETE https://api.warrant.dev/v1/objects/:objectType/:objectId
-
Object Types - Create an Object Type POST https://api.warrant.dev/v1/object-types
-
Object Types - Get Object Types GET https://api.warrant.dev/v1/object-types
-
Role Based Access Control - Assign a Permission to a User POST https://api.warrant.dev/v1/users/:userId/permissions/:permissionId
-
Object Types - Get an Object Type by Id GET https://api.warrant.dev/v1/object-types/:type
-
Object Types - Delete an Object Type by Id DELETE https://api.warrant.dev/v1/object-types/:type
-
Users - Get a User by Id GET https://api.warrant.dev/v1/users/:userId
-
Tenants - Get a Tenant by Id GET https://api.warrant.dev/v1/tenants/:tenantId
-
Warrants - Create a Warrant POST https://api.warrant.dev/v1/warrants