| POST | /DocumentPolicy/update |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class UpdateDocumentPolicyRequest extends UpdateDocumentPolicyModel implements IPost
{
}
public static class UpdateDocumentPolicyModel
{
public Integer id = null;
public String policyCode = null;
public String title = null;
public String documentLink = null;
public Integer documentGroupId = null;
public String description = null;
public Integer approvedBy = null;
@Required()
public Integer departmentLeadId = null;
public Integer departmentCoId = null;
public Integer getId() { return id; }
public UpdateDocumentPolicyModel setId(Integer value) { this.id = value; return this; }
public String getPolicyCode() { return policyCode; }
public UpdateDocumentPolicyModel setPolicyCode(String value) { this.policyCode = value; return this; }
public String getTitle() { return title; }
public UpdateDocumentPolicyModel setTitle(String value) { this.title = value; return this; }
public String getDocumentLink() { return documentLink; }
public UpdateDocumentPolicyModel setDocumentLink(String value) { this.documentLink = value; return this; }
public Integer getDocumentGroupId() { return documentGroupId; }
public UpdateDocumentPolicyModel setDocumentGroupId(Integer value) { this.documentGroupId = value; return this; }
public String getDescription() { return description; }
public UpdateDocumentPolicyModel setDescription(String value) { this.description = value; return this; }
public Integer getApprovedBy() { return approvedBy; }
public UpdateDocumentPolicyModel setApprovedBy(Integer value) { this.approvedBy = value; return this; }
public Integer getDepartmentLeadId() { return departmentLeadId; }
public UpdateDocumentPolicyModel setDepartmentLeadId(Integer value) { this.departmentLeadId = value; return this; }
public Integer getDepartmentCoId() { return departmentCoId; }
public UpdateDocumentPolicyModel setDepartmentCoId(Integer value) { this.departmentCoId = value; return this; }
}
public static class DocumentPolicyUpdateResponse implements IResponseRequest
{
public Integer code = null;
public String message = null;
public Integer updatedId = null;
public Integer getCode() { return code; }
public DocumentPolicyUpdateResponse setCode(Integer value) { this.code = value; return this; }
public String getMessage() { return message; }
public DocumentPolicyUpdateResponse setMessage(String value) { this.message = value; return this; }
public Integer getUpdatedId() { return updatedId; }
public DocumentPolicyUpdateResponse setUpdatedId(Integer value) { this.updatedId = value; return this; }
}
}
Java UpdateDocumentPolicyRequest DTOs
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 /DocumentPolicy/update HTTP/1.1
Host: etc-api.vsmlab.vn
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
id: 0,
policyCode: String,
title: String,
documentLink: String,
documentGroupId: 0,
description: String,
approvedBy: 0,
departmentLeadId: 0,
departmentCoId: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
code: 0,
message: String,
updatedId: 0
}