Skip to content

Commit

Permalink
Add docs for breadcrumbs and navigation; Add deprecation message to c…
Browse files Browse the repository at this point in the history
…omponents docs.
  • Loading branch information
tisto committed Apr 17, 2017
1 parent 061a562 commit 70481ec
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/source/breadcrumbs.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Breadcrumbs
===========

Getting the breadcrumbs for the current page:

.. http:example:: curl httpie python-requests
:request: _json/breadcrumbs.req

Example response:

.. literalinclude:: _json/breadcrumbs.resp
:language: http
5 changes: 5 additions & 0 deletions docs/source/components.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
Components
==========

.. warning::
The @components endpoint is deprecated and will be removed in plone.restapi
1.0b1. :doc:`breadcrumbs` and :doc:`navigation` are now top-level endpoints.

How to get pages components (i.e. everything but the main content), like breadcrumbs, navigations, actions, etc.


Breadcrumbs
-----------

Expand Down
2 changes: 2 additions & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ Contents
types
users
components
breadcrumbs
navigation
serialization
searching
vocabularies
Expand Down
12 changes: 12 additions & 0 deletions docs/source/navigation.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Navigation
==========

Getting the top navigation items:

.. http:example:: curl httpie python-requests
:request: _json/navigation.req

Example response:

.. literalinclude:: _json/navigation.resp
:language: http

0 comments on commit 70481ec

Please sign in to comment.