| GET | /api/v1/nutzeinheiten |
|---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Eras2Web.Service.Desktop.Server.ServiceModel.Eras2WebExt.Get
Imports Eras2Web.Service.Desktop.Server.ServiceModel.Eras2Client.Models
Namespace Global
Namespace Eras2Web.Service.Desktop.Server.ServiceModel.Eras2Client.Models
<DataContract>
Public Partial Class Nutzeinheit
<DataMember(Name:="Guid")>
Public Overridable Property Guid As String
<DataMember(Name:="Nummer")>
Public Overridable Property Number As String
<DataMember(Name:="Lage")>
Public Overridable Property Location As String
<DataMember(Name:="ObjektGuid")>
Public Overridable Property ObjektGuid As String
<DataMember(Name:="AdressGuid")>
Public Overridable Property AddressGuid As String
End Class
End Namespace
Namespace Eras2Web.Service.Desktop.Server.ServiceModel.Eras2WebExt.Get
Public Partial Class GetNutzeinheitList
Implements IHasBearerToken
<ApiMember(IsRequired:=true, ParameterType:="query")>
Public Overridable Property BearerToken As String
<ApiMember(ParameterType:="query")>
Public Overridable Property Include As String
End Class
Public Partial Class GetNutzeinheitListResponse
Public Overridable Property NutzeinheitList As IEnumerable(Of Nutzeinheit)
Public Overridable Property ResponseStatus As ResponseStatus
End Class
End Namespace
End Namespace
VB.NET GetNutzeinheitList DTOs
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 /api/v1/nutzeinheiten HTTP/1.1 Host: stoetzer-servdesk.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"}}}