Interface: UseApiOptions
Defined in: use-api.ts:6
Options for configuring the API request.
Properties
body?
optionalbody?:BodyInit
Defined in: use-api.ts:12
The body of the request for methods that require it (e.g., POST, PUT).
headers?
optionalheaders?:HeadersInit
Defined in: use-api.ts:10
Headers to include in the request.
method?
optionalmethod?:"GET"|"POST"|"PUT"|"PATCH"|"DELETE"
Defined in: use-api.ts:8
The HTTP method to use for the request. Default is GET.