public AccountsRepresentation Index()
{
return new AccountsRepresentation
{
Href = AccountsBaseUrl + "accounts",
Rel = "self",
Links = new List<Link>
{
new Link
{
Href = AccountsBaseUrl + "accounts?page=1",
Rel = "alternative",
},
new Link
{
// automatically identified as a template
Href = AccountsBaseUrl + "accounts/{accountId}",
Rel = "account",
Title = "account template"
},
new Link
{
Href = AccountsBaseUrl + "accounts/123",
Rel = "account",
Title = "account 123"
},
new Link
{
Href = AccountsBaseUrl + "accounts/456",
Rel = "account",
Title = "account 456"
},
new Link
{
Href = AccountsBaseUrl + "acccounts?page=2",
Rel = "next"
},
new Link
{
Href = EntryPointBaseUrl + "accountmanagement",
Rel = "parent"
}
},
};
}