Server

<back to all web services

Eras2FileList

Requires Authentication
The following routes are available for this service:
GET/files/{UserId}
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 Eras2FileList
    {
        @DataMember(Name="UserId")
        @SerializedName("UserId")
        public UUID userId = null;
        
        public UUID getUserId() { return userId; }
        public Eras2FileList setUserId(UUID value) { this.userId = value; return this; }
    }

    public static class Eras2FileListResponse
    {
        public ArrayList<Eras2FileInfo> eras2FileInfos = null;
        public ResponseStatus responseStatus = null;
        
        public ArrayList<Eras2FileInfo> getEras2FileInfos() { return eras2FileInfos; }
        public Eras2FileListResponse setEras2FileInfos(ArrayList<Eras2FileInfo> value) { this.eras2FileInfos = value; return this; }
        public ResponseStatus getResponseStatus() { return responseStatus; }
        public Eras2FileListResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
    }

    @DataContract
    public static class Eras2FileInfo
    {
        @DataMember(Name="Guid")
        @SerializedName("Guid")
        public UUID guid = null;

        @DataMember(Name="Name")
        @SerializedName("Name")
        public String name = null;

        @DataMember(Name="FileType")
        @SerializedName("FileType")
        public String fileType = null;

        @DataMember(Name="ObjektGuid")
        @SerializedName("ObjektGuid")
        public UUID objektGuid = null;

        @DataMember(Name="NutzerGuid")
        @SerializedName("NutzerGuid")
        public UUID nutzerGuid = null;

        @DataMember(Name="Checksum")
        @SerializedName("Checksum")
        public byte[] checksumMD5 = null;
        
        public UUID getGuid() { return guid; }
        public Eras2FileInfo setGuid(UUID value) { this.guid = value; return this; }
        public String getName() { return name; }
        public Eras2FileInfo setName(String value) { this.name = value; return this; }
        public String getFileType() { return fileType; }
        public Eras2FileInfo setFileType(String value) { this.fileType = value; return this; }
        public UUID getObjektGuid() { return objektGuid; }
        public Eras2FileInfo setObjektGuid(UUID value) { this.objektGuid = value; return this; }
        public UUID getNutzerGuid() { return nutzerGuid; }
        public Eras2FileInfo setNutzerGuid(UUID value) { this.nutzerGuid = value; return this; }
        public byte[] getChecksumMD5() { return checksumMD5; }
        public Eras2FileInfo setChecksumMD5(byte[] value) { this.checksumMD5 = value; return this; }
    }

}

Java Eras2FileList DTOs

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

HTTP + JSV

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

GET /files/{UserId} HTTP/1.1 
Host: develop-servdesk.eras-online.de 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	eras2FileInfos: 
	[
		{
			Guid: 00000000000000000000000000000000,
			Name: String,
			FileType: String,
			ObjektGuid: 00000000000000000000000000000000,
			NutzerGuid: 00000000000000000000000000000000,
			Checksum: AA==
		}
	],
	responseStatus: 
	{
		errorCode: String,
		message: String,
		stackTrace: String,
		errors: 
		[
			{
				errorCode: String,
				fieldName: String,
				message: String,
				meta: 
				{
					String: String
				}
			}
		],
		meta: 
		{
			String: String
		}
	}
}