Services

Application services (RESTful).

piano.services.menu

class piano.services.menu.MenuService(context, request)[source]

A RESTful command that returns child pages of the parent page or site. This command assumes the url always starts with the app, then the site, and ends with the page (parent of the children to return). If it is just the site, then the children of the site are returned only.

get()[source]

Returns a dictionary of pages with links.

Site: /services/menu?url=/my-site
  • Returns all children for my-site
Page: /services/menu?url=/my-site&page=home
  • Returns all children for my-site/home

Table Of Contents

Previous topic

Resources

Next topic

Views

This Page