| POST,OPTIONS | /share/{Token}/otp |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class ShareOtpRequest
{
public String Token = null;
public String getToken() { return Token; }
public ShareOtpRequest setToken(String value) { this.Token = value; return this; }
}
public static class ShareLandingResponse
{
public ResponseStatus ResponseStatus = null;
public String Status = null;
public Boolean RequireOtp = null;
public String OtpChannel = null;
public Boolean OtpSent = null;
public String DocumentName = null;
public Boolean CanView = null;
public String Message = null;
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public ShareLandingResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public String getStatus() { return Status; }
public ShareLandingResponse setStatus(String value) { this.Status = value; return this; }
public Boolean isRequireOtp() { return RequireOtp; }
public ShareLandingResponse setRequireOtp(Boolean value) { this.RequireOtp = value; return this; }
public String getOtpChannel() { return OtpChannel; }
public ShareLandingResponse setOtpChannel(String value) { this.OtpChannel = value; return this; }
public Boolean isOtpSent() { return OtpSent; }
public ShareLandingResponse setOtpSent(Boolean value) { this.OtpSent = value; return this; }
public String getDocumentName() { return DocumentName; }
public ShareLandingResponse setDocumentName(String value) { this.DocumentName = value; return this; }
public Boolean isCanView() { return CanView; }
public ShareLandingResponse setCanView(Boolean value) { this.CanView = value; return this; }
public String getMessage() { return Message; }
public ShareLandingResponse setMessage(String value) { this.Message = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /share/{Token}/otp HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Token: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
},
Status: String,
RequireOtp: False,
OtpChannel: String,
OtpSent: False,
DocumentName: String,
CanView: False,
Message: String
}