| POST | /files/{UserId}/ListE898Satz |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
import com.google.gson.annotations.*;
import com.google.gson.reflect.*;
public class dtos
{
@DataContract
public static class ListFileE898Satz extends MultipleEras2FileUpload
{
@DataMember(Name="FileTyp")
@SerializedName("FileTyp")
public Eras2FileType fileType = null;
public Eras2FileType getFileType() { return fileType; }
public ListFileE898Satz setFileType(Eras2FileType value) { this.fileType = value; return this; }
}
@DataContract
public static class MultipleEras2FileUpload
{
@DataMember(Name="UserId")
@SerializedName("UserId")
public String userId = null;
@DataMember(Name="NutzerId")
@SerializedName("NutzerId")
public String nutzerId = null;
@DataMember(Name="DeviceId")
@SerializedName("DeviceId")
public String deviceId = null;
@DataMember(Name="FileTyp")
@SerializedName("FileTyp")
public Eras2FileType fileType = null;
public String getUserId() { return userId; }
public MultipleEras2FileUpload setUserId(String value) { this.userId = value; return this; }
public String getNutzerId() { return nutzerId; }
public MultipleEras2FileUpload setNutzerId(String value) { this.nutzerId = value; return this; }
public String getDeviceId() { return deviceId; }
public MultipleEras2FileUpload setDeviceId(String value) { this.deviceId = value; return this; }
public Eras2FileType getFileType() { return fileType; }
public MultipleEras2FileUpload setFileType(Eras2FileType value) { this.fileType = value; return this; }
}
public static enum Eras2FileType
{
DSatz,
Hka,
E835Satz,
E898Satz,
Abrechnung,
ArgeSatz,
NutzerFile,
DevicePdf;
}
public static class MultipleEras2FileUploadResponse
{
public ResponseStatus responseStatus = null;
public ResponseStatus getResponseStatus() { return responseStatus; }
public MultipleEras2FileUploadResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /files/{UserId}/ListE898Satz HTTP/1.1
Host: mi-waerme-servdesk.eras-online.de
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"FileTyp":"DSatz","UserId":"String","NutzerId":"String","DeviceId":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}