-
Hi,
Is this somehow possible? |
Beta Was this translation helpful? Give feedback.
Answered by
canton7
Nov 12, 2021
Replies: 1 comment 4 replies
-
You have two options:
public class Request<T>
{
[JsonProperty("req")]
public T Body { get; set; }
public Request(T body) => Body = body;
}
[Post(...)]
public void PostAsync([Body] Request<SomeBody> body);
|
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
eNTi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You have two options:
Request<T>
type which wraps each body you send, e.g: