Server

<back to all web services

GetObjektGuids

Requires Authentication
The following routes are available for this service:
GET/Objekte/Guids
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Eras2Web.Service.Desktop.Server.ServiceModel.Eras2Client.Objekt;

namespace Eras2Web.Service.Desktop.Server.ServiceModel.Eras2Client.Objekt
{
    public partial class GetObjektGuids
    {
    }

    public partial class GetObjektGuidsResponse
    {
        public GetObjektGuidsResponse()
        {
            Objekte = new List<ObjektGuidInfo>{};
        }

        public virtual List<ObjektGuidInfo> Objekte { get; set; }
        public virtual ResponseStatus ResponseStatus { get; set; }
    }

    public partial class ObjektGuidInfo
    {
        public virtual string Guid { get; set; }
        public virtual string Number { get; set; }
    }

}

C# GetObjektGuids DTOs

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

HTTP + CSV

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

GET /Objekte/Guids HTTP/1.1 
Host: kromer-servdesk.eras-online.de 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"objekte":[{"guid":"String","number":"String"}],"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}