Endpoint
Sourceimport  { Endpoint } from "@prestojs/rest";
Endpoint<ReturnT = any>
Constructor
Arguments:
| Argument | Type | Description | |
|---|---|---|---|
| * | urlPattern | UrlPattern | |
options An object with the properties below  | |||
| options.baseUrl | string | ||
| options.decodeBody | |||
| options.getMiddleware | |||
| options.middleware | (|)[] | ||
| options.resolveUrl | |||
| ... | any | Any properties from ExecuteInitOptions  | |
Methods
Arguments:
| Argument | Type | Description | |
|---|---|---|---|
options An object with the properties below  | |||
| ... | any | Any properties from ExecuteInitOptions  | |
| ... | any | Any properties from UrlResolveOptions  | |
Returns:Promise
Arguments:
| Argument | Type | Description | |
|---|---|---|---|
| * | url | string | |
| * | requestInit | undefined|RequestInit | 
Returns:Promise
Arguments:
| Argument | Type | Description | |
|---|---|---|---|
options An object with the properties below  | |||
| ... | any | Any properties from ExecuteInitOptions  | |
| ... | any | Any properties from UrlResolveOptions  | |
Returns:PreparedAction
Component Props:
| Prop | Type | Description | |
|---|---|---|---|
| * | urlPattern | UrlPattern | 
Properties
baseUrl
Sourcemiddleware
SourcerequestInit
SourceStatic Properties
defaultConfig
Source| An object with these properties: | |||
|---|---|---|---|
| Property | Type | Description | |
| * | baseUrl | string | |
| * | getMiddleware | ||
| * | middleware | (|)[] | |
| * | requestInit | RequestInit | |