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
* A mutation endpoint. In REST terms, one using POST, PUT,
* PATCH, or DELETE.
*/
exporttypeAppRouteMutation=AppRouteCommon&{
method: 'POST'|'DELETE'|'PUT'|'PATCH';
contentType?:
|'application/json'
|'multipart/form-data'
|'application/x-www-form-urlencoded';
body: ContractAnyType;
};
They act pretty much like a GET request, but do not provide a body in the response. This can be useful sometimes, when only want to know the status of the request, or something related to the headers, without having to download the whole content of the response.
Is there any way to handle these in this library? I would also make use of the react-query wrapper, I don't know if something is needed here as well, of it inherits it from the core package.
The text was updated successfully, but these errors were encountered:
It seems that currently, according to these types, the AppRoute is currently not supporting
HEAD
requests.ts-rest/libs/ts-rest/core/src/lib/dsl.ts
Lines 48 to 66 in 56b955f
They act pretty much like a GET request, but do not provide a body in the response. This can be useful sometimes, when only want to know the status of the request, or something related to the headers, without having to download the whole content of the response.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/HEAD
Is there any way to handle these in this library? I would also make use of the react-query wrapper, I don't know if something is needed here as well, of it inherits it from the core package.
The text was updated successfully, but these errors were encountered: