| GET | /App/{UserId}/GetOrderDescriptors |
|---|
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 GetOrderDescriptors extends Eras2AppServiceModelBase
{
}
@DataContract
public static class Eras2AppServiceModelBase
{
@DataMember(Name="UserId")
@SerializedName("UserId")
public UUID userId = null;
public UUID getUserId() { return userId; }
public Eras2AppServiceModelBase setUserId(UUID value) { this.userId = value; return this; }
}
public static class GetOrderDescriptorsResponse
{
@DataMember(Name="OrderDescriptors")
@SerializedName("OrderDescriptors")
public IList<OrderDescriptor> orderDescriptors = null;
public ResponseStatus responseStatus = null;
public IList<OrderDescriptor> getOrderDescriptors() { return orderDescriptors; }
public GetOrderDescriptorsResponse setOrderDescriptors(IList<OrderDescriptor> value) { this.orderDescriptors = value; return this; }
public ResponseStatus getResponseStatus() { return responseStatus; }
public GetOrderDescriptorsResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
}
@DataContract
public static class OrderDescriptor
{
@DataMember(Name="AuftragGuid")
@SerializedName("AuftragGuid")
public UUID orderGuid = null;
@DataMember(Name="AbrechnungseinheitGuid")
@SerializedName("AbrechnungseinheitGuid")
public UUID abrechnungseinheitGuid = null;
@DataMember(Name="NutzeinheitGuids")
@SerializedName("NutzeinheitGuids")
public IList<UUID> nutzeinheitGuids = null;
public UUID getOrderGuid() { return orderGuid; }
public OrderDescriptor setOrderGuid(UUID value) { this.orderGuid = value; return this; }
public UUID getAbrechnungseinheitGuid() { return abrechnungseinheitGuid; }
public OrderDescriptor setAbrechnungseinheitGuid(UUID value) { this.abrechnungseinheitGuid = value; return this; }
public IList<UUID> getNutzeinheitGuids() { return nutzeinheitGuids; }
public OrderDescriptor setNutzeinheitGuids(IList<UUID> value) { this.nutzeinheitGuids = value; return this; }
}
}
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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /App/{UserId}/GetOrderDescriptors HTTP/1.1
Host: mitchell-servamw.eras-online.de
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}