Function: RolesApiAxiosParamCreator
clients/platform-client/src.RolesApiAxiosParamCreator
RolesApiAxiosParamCreator(
configuration?):object
RolesApi - axios parameter creator
Parameters
▪ configuration?: Configuration
Returns
object
rolesControllerCreate
rolesControllerCreate: (
CreateUserRole,options?) =>Promise<RequestArgs>Parameters
▪ CreateUserRole:
CreateUserRole▪ options?:
AxiosRequestConfig<any>={}Override http request option.
Returns
Promise<RequestArgs>Throws
rolesControllerFindAll
rolesControllerFindAll: (
page?,limit?,filter_id?,filter_name?,sortBy?,search?,searchBy?,select?,options?) =>Promise<RequestArgs>Parameters
▪ page?:
numberPage number to retrieve.If you provide invalid value the default page number will applied <p> <b>Example: </b> 1 </p> <p> <b>Default Value: </b> 1 </p>
▪ limit?:
numberNumber of records per page. <p> <b>Example: </b> 20 </p> <p> <b>Default Value: </b> 50 </p> <p> <b>Max Value: </b> 100 </p> If provided value is greater than max value, max value will be applied.
▪ filter_id?:
string[]Filter by id query param. <p> <b>Format: </b> filter.id={$not}:OPERATION:VALUE </p> <p> <b>Example: </b> filter.id=$not:$like:John Doe&filter.id=like:John </p> <h4>Available Operations</h4><ul><li>$eq</li> <li>$in</li></ul>
▪ filter_name?:
string[]Filter by name query param. <p> <b>Format: </b> filter.name={$not}:OPERATION:VALUE </p> <p> <b>Example: </b> filter.name=$not:$like:John Doe&filter.name=like:John </p> <h4>Available Operations</h4><ul><li>$contains</li></ul>
▪ sortBy?:
string[]Parameter to sort by. <p>To sort by multiple fields, just provide query param multiple types. The order in url defines an order of sorting</p> <p> <b>Format: </b> fieldName:DIRECTION </p> <p> <b>Example: </b> sortBy=id:DESC&sortBy=createdAt:ASC </p> <p> <b>Default Value: </b> createdAt:DESC,id:DESC </p> <h4>Available Fields</h4><ul><li>id</li> <li>name</li> <li>createdAt</li> <li>updatedAt</li></ul>
▪ search?:
stringSearch term to filter result values <p> <b>Example: </b> John </p> <p> <b>Default Value: </b> No default value </p>
▪ searchBy?:
stringList of fields to search by term to filter result values <p> <b>Example: </b> name,roleType </p> <p> <b>Default Value: </b> By default all fields mentioned below will be used to search by term </p> <h4>Available Fields</h4><ul><li>name</li> <li>roleType</li></ul>
▪ select?:
stringList of fields to select. <p> <b>Example: </b> id,name,createdAt,updatedAt,roleType </p> <p> <b>Default Value: </b> By default all fields returns. If you want to select only some fields, provide them in query param </p>
▪ options?:
AxiosRequestConfig<any>={}Override http request option.
Returns
Promise<RequestArgs>Throws
rolesControllerFindOne
rolesControllerFindOne: (
id,options?) =>Promise<RequestArgs>Parameters
▪ id:
stringEntity id, uuid v4 format
▪ options?:
AxiosRequestConfig<any>={}Override http request option.
Returns
Promise<RequestArgs>Throws
rolesControllerSoftDelete
rolesControllerSoftDelete: (
id,version,options?) =>Promise<RequestArgs>Parameters
▪ id:
stringEntity id, uuid v4 format
▪ version:
numberVersion number of entity that you want to delete
▪ options?:
AxiosRequestConfig<any>={}Override http request option.
Returns
Promise<RequestArgs>Throws
rolesControllerTestProxy
rolesControllerTestProxy: (
options?) =>Promise<RequestArgs>Parameters
▪ options?:
AxiosRequestConfig<any>={}Override http request option.
Returns
Promise<RequestArgs>Throws
rolesControllerUpdateOne
rolesControllerUpdateOne: (
id,UpdateUserRole,options?) =>Promise<RequestArgs>Parameters
▪ id:
stringEntity id, uuid v4 format
▪ UpdateUserRole:
UpdateUserRole▪ options?:
AxiosRequestConfig<any>={}Override http request option.
Returns
Promise<RequestArgs>Throws
Export
Source
libs/clients/platform-client/src/lib/generated/api.ts:1391
Generated using typedoc-plugin-markdown and TypeDoc