| POST | /document-permission/approve-access |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class ApproveDocumentAccessRequest
{
public Integer requestId = null;
public String comment = null;
public Boolean isApproved = null;
public Integer getRequestId() { return requestId; }
public ApproveDocumentAccessRequest setRequestId(Integer value) { this.requestId = value; return this; }
public String getComment() { return comment; }
public ApproveDocumentAccessRequest setComment(String value) { this.comment = value; return this; }
public Boolean getIsApproved() { return isApproved; }
public ApproveDocumentAccessRequest setIsApproved(Boolean value) { this.isApproved = value; return this; }
}
public static class DocumentAccessResponse
{
public Integer code = null;
public String message = null;
public Integer updatedId = null;
public Integer getCode() { return code; }
public DocumentAccessResponse setCode(Integer value) { this.code = value; return this; }
public String getMessage() { return message; }
public DocumentAccessResponse setMessage(String value) { this.message = value; return this; }
public Integer getUpdatedId() { return updatedId; }
public DocumentAccessResponse setUpdatedId(Integer value) { this.updatedId = value; return this; }
}
}
Java ApproveDocumentAccessRequest 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 /document-permission/approve-access HTTP/1.1
Host: etc-api.vsmlab.vn
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"requestId":0,"comment":"String","isApproved":false}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"code":0,"message":"String","updatedId":0}