tvpl.api

<back to all web services

UpdateDocumentReferenceRequest

Requires Authentication
Required role:super-admin
The following routes are available for this service:
PUT/document-reference/{Id}
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class UpdateDocumentReferenceRequest
    {
        public Integer id = null;
        public Integer parentDocumentId = null;
        public String title = null;
        public String documentCode = null;
        public String referenceUrl = null;
        public String description = null;
        
        public Integer getId() { return id; }
        public UpdateDocumentReferenceRequest setId(Integer value) { this.id = value; return this; }
        public Integer getParentDocumentId() { return parentDocumentId; }
        public UpdateDocumentReferenceRequest setParentDocumentId(Integer value) { this.parentDocumentId = value; return this; }
        public String getTitle() { return title; }
        public UpdateDocumentReferenceRequest setTitle(String value) { this.title = value; return this; }
        public String getDocumentCode() { return documentCode; }
        public UpdateDocumentReferenceRequest setDocumentCode(String value) { this.documentCode = value; return this; }
        public String getReferenceUrl() { return referenceUrl; }
        public UpdateDocumentReferenceRequest setReferenceUrl(String value) { this.referenceUrl = value; return this; }
        public String getDescription() { return description; }
        public UpdateDocumentReferenceRequest setDescription(String value) { this.description = value; return this; }
    }

    public static class DocumentReferences
    {
        public Integer id = null;
        public Integer parentDocumentId = null;
        public String title = null;
        public String documentCode = null;
        public String referenceUrl = null;
        public String description = null;
        
        public Integer getId() { return id; }
        public DocumentReferences setId(Integer value) { this.id = value; return this; }
        public Integer getParentDocumentId() { return parentDocumentId; }
        public DocumentReferences setParentDocumentId(Integer value) { this.parentDocumentId = value; return this; }
        public String getTitle() { return title; }
        public DocumentReferences setTitle(String value) { this.title = value; return this; }
        public String getDocumentCode() { return documentCode; }
        public DocumentReferences setDocumentCode(String value) { this.documentCode = value; return this; }
        public String getReferenceUrl() { return referenceUrl; }
        public DocumentReferences setReferenceUrl(String value) { this.referenceUrl = value; return this; }
        public String getDescription() { return description; }
        public DocumentReferences setDescription(String value) { this.description = value; return this; }
    }

}

Java UpdateDocumentReferenceRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

PUT /document-reference/{Id} HTTP/1.1 
Host: etc-api.vsmlab.vn 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"id":0,"parentDocumentId":0,"title":"String","documentCode":"String","referenceUrl":"String","description":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"id":0,"parentDocumentId":0,"title":"String","documentCode":"String","referenceUrl":"String","description":"String"}