POST | /authentication/refresh-token |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class AuthenticationRefreshTokenCreate implements IPost
{
public String refreshToken = null;
public String getRefreshToken() { return refreshToken; }
public AuthenticationRefreshTokenCreate setRefreshToken(String value) { this.refreshToken = value; return this; }
}
public static class AuthenticationRefreshTokenCreateResponse
{
public ResponseStatus responseStatus = null;
public String accessToken = null;
public ResponseStatus getResponseStatus() { return responseStatus; }
public AuthenticationRefreshTokenCreateResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
public String getAccessToken() { return accessToken; }
public AuthenticationRefreshTokenCreateResponse setAccessToken(String value) { this.accessToken = value; return this; }
}
}
Java AuthenticationRefreshTokenCreate DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /authentication/refresh-token HTTP/1.1
Host: extensions.avon.ca
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"refreshToken":"String"}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}},"accessToken":"String"}