POST | /api/documentuploads |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class AddFileDocumentQueuedForRegistration
{
public String Note = null;
public String Description = null;
public String UploadOrigin = null;
public Integer AssignToUserID = null;
public Integer AssignToGroupID = null;
public String DocumentInfo = null;
public String getNote() { return Note; }
public AddFileDocumentQueuedForRegistration setNote(String value) { this.Note = value; return this; }
public String getDescription() { return Description; }
public AddFileDocumentQueuedForRegistration setDescription(String value) { this.Description = value; return this; }
public String getUploadOrigin() { return UploadOrigin; }
public AddFileDocumentQueuedForRegistration setUploadOrigin(String value) { this.UploadOrigin = value; return this; }
public Integer getAssignToUserID() { return AssignToUserID; }
public AddFileDocumentQueuedForRegistration setAssignToUserID(Integer value) { this.AssignToUserID = value; return this; }
public Integer getAssignToGroupID() { return AssignToGroupID; }
public AddFileDocumentQueuedForRegistration setAssignToGroupID(Integer value) { this.AssignToGroupID = value; return this; }
public String getDocumentInfo() { return DocumentInfo; }
public AddFileDocumentQueuedForRegistration setDocumentInfo(String value) { this.DocumentInfo = value; return this; }
}
public static class DocumentQueuedForRegistration
{
public Integer DocumentuploadID = null;
public Integer getDocumentuploadID() { return DocumentuploadID; }
public DocumentQueuedForRegistration setDocumentuploadID(Integer value) { this.DocumentuploadID = value; return this; }
}
}
Java AddFileDocumentQueuedForRegistration 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 /api/documentuploads HTTP/1.1
Host: digiofficeapigateway.deltares.nl
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"Note":"String","Description":"String","UploadOrigin":"String","AssignToUserID":0,"AssignToGroupID":0,"DocumentInfo":"String"}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"DocumentuploadID":0}