| GET | /api/navigation/context |
|---|
import Foundation
import ServiceStack
public class GetNavigationContext : Codable
{
public var viewID:String
public var path:String
required public init(){}
}
public class NavigationContext : Codable
{
public var title:String
public var navigationElements:[CommonEntityIdentifier]
required public init(){}
}
public class CommonEntityIdentifier : Codable
{
public var id:String
public var displayName:String
public var entityName:String
required public init(){}
}
Swift GetNavigationContext 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/navigation/context HTTP/1.1 Host: dogw.klokgroep.nl Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"Title":"String","NavigationElements":[{"ID":"String","DisplayName":"String","EntityName":"String"}]}