ReactionApiClient
Contains all the endpoints needed to manage features.
Constructors
new ReactionApiClient()
new ReactionApiClient():
ReactionApiClient
Returns
Methods
getAllReactions()
static
getAllReactions(params
?,config
?):Promise
<SCPaginatedResponse
<SCReactionType
>>
This endpoint retrieves all reactions.
Parameters
Parameter | Type | Description |
---|---|---|
params ? | ReactionParams | |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCPaginatedResponse
<SCReactionType
>>
Source
services/reactions/index.ts:22
getAllReactionsList()
static
getAllReactionsList(params
?,config
?):Promise
<SCReactionType
[]>
This endpoint retrieves all reactions data without pagination.
Parameters
Parameter | Type | Description |
---|---|---|
params ? | ReactionParams | |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCReactionType
[]>
Source
services/reactions/index.ts:32
getSpecificReaction()
static
getSpecificReaction(id
,config
?):Promise
<SCReactionType
>
This endpoint retrieves a specific reaction.
Parameters
Parameter | Type | Description |
---|---|---|
id | number | |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCReactionType
>