@lelantos-org/sdk / core / JsonClient
Interface: JsonClient โ
Defined in: @lelantos-org/sdk/dist/core/json-client.d.ts:30
Properties โ
raw โ
ts
readonly raw: HttpClient;Defined in: @lelantos-org/sdk/dist/core/json-client.d.ts:35
Escape hatch for non-JSON responses.
Methods โ
del() โ
ts
del(path, opts?): Promise<void>;Defined in: @lelantos-org/sdk/dist/core/json-client.d.ts:33
Parameters โ
| Parameter | Type |
|---|---|
path | string |
opts? | JsonRequestOptions |
Returns โ
Promise<void>
get() โ
ts
get<T>(path, opts?): Promise<T>;Defined in: @lelantos-org/sdk/dist/core/json-client.d.ts:31
Type Parameters โ
| Type Parameter |
|---|
T |
Parameters โ
| Parameter | Type |
|---|---|
path | string |
opts? | JsonRequestOptions |
Returns โ
Promise<T>
post() โ
ts
post<T>(
path,
body,
opts?
): Promise<T>;Defined in: @lelantos-org/sdk/dist/core/json-client.d.ts:32
Type Parameters โ
| Type Parameter |
|---|
T |
Parameters โ
| Parameter | Type |
|---|---|
path | string |
body | unknown |
opts? | JsonRequestOptions |
Returns โ
Promise<T>