Directus / @directus/sdk / rest / rest
Function: rest() ​
rest(
config
): <Schema
>(client
) =>RestClient
<Schema
>
Creates a client to communicate with the Directus REST API.
Parameters ​
• config: Partial
<RestConfig
> = {}
Returns ​
Function
A Directus REST client.
Type Parameters ​
• Schema
Parameters ​
• client: DirectusClient
<Schema
>
Returns ​
RestClient
<Schema
>