You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`params`| ParamsObject | Provide `path` and `query` params from the OpenAPI schema |
33
-
|`params.path`|`{ [name]: value }`| Provide all `path` params (params that are part of the URL) |
34
-
|`params.query`|`{ [name]: value }`| Provide all `query params (params that are part of the <ahref="https://developer.mozilla.org/en-US/docs/Web/API/URL/searchParams"target="_blank"rel="noopener noreferrer">searchParams</a> |
35
-
|`body`|`{ [name]:value }`| The <ahref="https://spec.openapis.org/oas/latest.html#request-body-object"target="_blank"rel="noopener noreferrer">requestBody</a> data, if needed (PUT/POST/PATCH/DEL only) |
36
-
|`querySerializer`| QuerySerializer | (optional) Serialize query params for this request only (default: `new URLSearchParams()`) |
37
-
|`bodySerializer`| BodySerializer | (optional) Serialize request body for this request only (default: `JSON.stringify()`) |
38
-
|`parseAs`|`"json"`\|`"text"`\|`"arrayBuffer"`\|`"blob"`\|`"stream"`| Parse the <ahref="https://developer.mozilla.org/en-US/docs/Web/API/Response/body"target="_blank"rel="noopener noreferrer">response body</a>, with `"stream"` skipping processing altogether (default: `"json"`) |
|`params`| ParamsObject | <ahref="https://swagger.io/specification/#parameter-locations"target="_blank"rel="noopener noreferrer">path</a> and <ahref="https://swagger.io/specification/#parameter-locations"target="_blank"rel="noopener noreferrer">query</a> params for the endpoint |
33
+
|`body`|`{ [name]:value }`| <ahref="https://spec.openapis.org/oas/latest.html#request-body-object"target="_blank"rel="noopener noreferrer">requestBody</a> data for the endpoint |
34
+
|`querySerializer`| QuerySerializer | (optional) Provide a [querySerializer](#queryserializer)|
35
+
|`bodySerializer`| BodySerializer | (optional) Provide a [bodySerializer](#bodyserializer)|
36
+
|`parseAs`|`"json"`\|`"text"`\|`"arrayBuffer"`\|`"blob"`\|`"stream"`| (optional) Parse the response using <ahref="https://developer.mozilla.org/en-US/docs/Web/API/Response#instance_methods"target="_blank"rel="noopener noreferrer">a built-in instance method</a> (default: `"json"`). `"stream"` skips parsing altogether and returns the raw stream. |
Similar to [querySerializer](#querySerializer), bodySerializer works for requestBody. You probably only need this when using `multipart/form-data`:
64
+
Similar to [querySerializer](#querySerializer), bodySerializer allows you to customize how the requestBody is serialized if you don’t want the default <ahref="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify"target="_blank">JSON.stringify()</a> behavior. You probably only need this when using `multipart/form-data`:
0 commit comments