| GET | /api/navigation/context |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class GetNavigationContext
{
public UUID ViewID = null;
public String Path = null;
public UUID getViewID() { return ViewID; }
public GetNavigationContext setViewID(UUID value) { this.ViewID = value; return this; }
public String getPath() { return Path; }
public GetNavigationContext setPath(String value) { this.Path = value; return this; }
}
public static class NavigationContext
{
public String Title = null;
public ArrayList<CommonEntityIdentifier> NavigationElements = null;
public String getTitle() { return Title; }
public NavigationContext setTitle(String value) { this.Title = value; return this; }
public ArrayList<CommonEntityIdentifier> getNavigationElements() { return NavigationElements; }
public NavigationContext setNavigationElements(ArrayList<CommonEntityIdentifier> value) { this.NavigationElements = value; return this; }
}
public static class CommonEntityIdentifier
{
public String ID = null;
public String DisplayName = null;
public String EntityName = null;
public String getId() { return ID; }
public CommonEntityIdentifier setId(String value) { this.ID = value; return this; }
public String getDisplayName() { return DisplayName; }
public CommonEntityIdentifier setDisplayName(String value) { this.DisplayName = value; return this; }
public String getEntityName() { return EntityName; }
public CommonEntityIdentifier setEntityName(String value) { this.EntityName = value; return this; }
}
}
Java GetNavigationContext DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
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: test-dogw.klokgroep.nl Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<NavigationContext xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IDB.API.DTO.Navigation">
<NavigationElements xmlns:d2p1="http://schemas.datacontract.org/2004/07/IDB.API.DTO.General">
<d2p1:CommonEntityIdentifier>
<d2p1:DisplayName>String</d2p1:DisplayName>
<d2p1:EntityName>String</d2p1:EntityName>
<d2p1:ID>String</d2p1:ID>
</d2p1:CommonEntityIdentifier>
</NavigationElements>
<Title>String</Title>
</NavigationContext>