You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Function names are generated from endpoint descriptions (fallback: method + path).
awaitapi.auth.login('user@example.com','password');// Optional manual re-sync if endpoints changed server-sideawaitapi.dynamic.refresh({page: 1,page_size: 50,sort_field: 'inserted_at',sort_direction: 'asc',});// GET exampleconstusers=awaitapi.dynamic.endpoints.getAllUsers({query: {limit: 2000,offset: 0,page: 1,page_size: 20,sort_field: 'name',sort_direction: 'asc'},});// GET with filters exampleconstfilteredUsers=awaitapi.dynamic.endpoints.getAllUsers({query: {limit: 2000,offset: 0,page: 1,page_size: 20,sort_field: 'inserted_at',sort_direction: 'desc',name: 'Jane',},});// GET with path params exampleconstrole=awaitapi.dynamic.endpoints.getARolesById({pathParams: {id: '9cac5fac-e862-4f90-ab04-c6e023a87313'},});// POST exampleconstcreated=awaitapi.dynamic.endpoints.createARole({body: {name: 'Editor',permissions: {users: ['read']},registerable: false},});// PUT exampleconstreplaced=awaitapi.dynamic.endpoints.updateARole({pathParams: {id: '9cac5fac-e862-4f90-ab04-c6e023a87313'},body: {name: 'Editor',permissions: {users: ['read','update']},registerable: false},});// PATCH exampleconstpatched=awaitapi.dynamic.endpoints.patchARole({pathParams: {id: '9cac5fac-e862-4f90-ab04-c6e023a87313'},body: {registerable: true},});// DELETE exampleawaitapi.dynamic.endpoints.deleteARole?.({pathParams: {id: '9cac5fac-e862-4f90-ab04-c6e023a87313'},});// OPTIONS example (only if such an endpoint exists)constoptionsMeta=awaitapi.dynamic.endpoints.optionsRoles();// HEAD example (only if such an endpoint exists)constheadMeta=awaitapi.dynamic.endpoints.headRoles();