Comment on page
BaseApi
interface SuccessResponse {
success: boolean,
message: string
}
The
User
that this API is associated with.The base URL of this API.
This should only get called by classes that inherit the
BaseApi
class.apiUrl
should be the base API URL.
class SomeVulosIdentityApi extends BaseApi {
constructor(user, endpoint) {
super(user, endpoint + '/api/v1/some_api')
}
}
const someApi = new SomeVulosIdentityApi(user, endpoint)
Preform an authenticated request to the API.
const response = await someApi.request('endpoint', 'put', { key: 'value' }, 'some:endpoint')
Last modified 1yr ago