| GET | /files/{UserId} |
|---|
"use strict";
export class Eras2FileInfo {
/** @param {{Guid?:string,Name?:string,FileType?:string,ObjektGuid?:string,NutzerGuid?:string,Checksum?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
Guid;
/** @type {string} */
Name;
/** @type {string} */
FileType;
/** @type {?string} */
ObjektGuid;
/** @type {?string} */
NutzerGuid;
/** @type {string} */
Checksum;
}
export class Eras2FileListResponse {
/** @param {{eras2FileInfos?:Eras2FileInfo[],responseStatus?:ResponseStatus}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {Eras2FileInfo[]} */
eras2FileInfos;
/** @type {ResponseStatus} */
responseStatus;
}
export class Eras2FileList {
/** @param {{UserId?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
UserId;
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=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
}
}
}