GET | /api/documents/{DocumentID}/filename |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class GetDocumentFileName
{
public UUID DocumentID = null;
public Boolean IncludeExtension = null;
public Boolean IncludeTitle = null;
public UUID getDocumentID() { return DocumentID; }
public GetDocumentFileName setDocumentID(UUID value) { this.DocumentID = value; return this; }
public Boolean isIncludeExtension() { return IncludeExtension; }
public GetDocumentFileName setIncludeExtension(Boolean value) { this.IncludeExtension = value; return this; }
public Boolean isIncludeTitle() { return IncludeTitle; }
public GetDocumentFileName setIncludeTitle(Boolean value) { this.IncludeTitle = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /api/documents/{DocumentID}/filename HTTP/1.1 Host: digiofficeapigateway.deltares.nl Accept: application/xml
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length (string)