Sitefinity’s OData web services expose a single endpoint that allows querying data from Sitefinity CMS sitemap. Such data can be used to construct navigation widgets. The navigation widget in Sitefinity .NET Core renderer uses this endpoint.
IMPORTANT: The following endpoint is designed to support .NET Core development only. You cannot use the endpoint for MVC development. For a comparison on using .NET Core vs using MVC framework, see Development comparison.
NOTE: This endpoint does not require authentication.
To use the endpoint, execute a POST request to the following endpoint:
POST
{baseurl}/api/default/pages/Default.HierarhicalByLevelsResponse()
Sample request
POST http://mysite.com/api/default/pages/Default.HierarhicalByLevelsResponse()
Sample response
There are query parameters that can be added to this request. For example:
selectionModeString
TopLevelPages
SelectedPages
selectedPages
CurrentPageSiblings
sf_page_node
CurrentPageChildren
SelectedPageChildren
selectedPageId
showParentPage
Boolean
GUID
The following example uses some of the above query parameters:
Sample request (with query parameters)
POST http://mysite.com/api/default/pages/Default.HierarhicalByLevelsResponse()?selectionModeString=SelectedPages&showParentPage=False&selectedPageId=00000000-0000-0000-0000-000000000000&selectedPages=["b5cb445c-bb30-4169-9476-422a1daf3df5","45b8578a-0184-456c-9f0d-68843df4af64","882c78d7-dc3a-4934-998f-2eeae074459f"]&sf_page_node=882c78d7-dc3a-4934-998f-2eeae074459f
Sign up for our free beginner training. Boost your credentials through advanced courses and certification. Register for Sitefinity training and certification.
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important