plone.restapi/plone-only-login: Use json-ld compliant hyperlinks for expansion.

Thomas Buchberger <jenkins-z4DKO/[email protected]> Wed, 26 Jul 2017 07:45:44 -0700 (PDT)
Newsgroups gmane.comp.web.zope.plone.cvs
Message-ID <[email protected]>
Repository: plone.restapi
Branch: refs/heads/plone-only-login
Date: 2017-07-25T11:48:31+02:00
Author: Timo Stollenwerk (tisto) <[email protected]>
Commit: https://github.com/plone/plone.restapi/commit/175f5ea902abdc3e6c171192973ae02a9056561e

Use json-ld compliant hyperlinks for expansion.

Files changed:
M docs/source/expansion.rst

diff --git a/docs/source/expansion.rst b/docs/source/expansion.rst
index d62a1bfa..cc830a7e 100644
--- a/docs/source/expansion.rst
+++ b/docs/source/expansion.rst
@@ -20,22 +20,6 @@ in the reponse of any content GET request::
   {
     "@id": "http://localhost:55001/plone/front-page",
     "@type": "Document",
-    "@components": {
-      "breadcrumbs": "http://localhost:55001/plone/front-page/@breadcrumbs",
-      "navigation": "http://localhost:55001/plone/front-page/@navigation",
-      "schema": "http://localhost:55001/plone/front-page/@schema",
-      "workflow": "http://localhost:55001/plone/front-page/@workflow"
-    },
-    "UID": "1f699ffa110e45afb1ba502f75f7ec33",
-    "title": "Welcome to Plone",
-    ...
-  }
-
-Alternative::
-
-  {
-    "@id": "http://localhost:55001/plone/front-page",
-    "@type": "Document",
     "@components": [
         {"@id": "http://localhost:55001/plone/front-page/@breadcrumbs"},
         {"@id": "http://localhost:55001/plone/front-page/@navigation"},
@@ -47,8 +31,6 @@ Alternative::
     ...
   }
 
-(pro: same structure as expanded, con: hard to differentiate from expanded version)
-
 In order to expand and embed one or more components, use the "expand" GET 
 parameter and provide either a single component or a comma-separated list
 of the components you want to embed. Say you want to expand the "breadcrumbs"



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot