Skip to content

Commit

Permalink
Merge branch 'master' into types_vocab
Browse files Browse the repository at this point in the history
  • Loading branch information
tisto committed Apr 17, 2018
2 parents 213bf45 + bfd78ce commit 079e06a
Show file tree
Hide file tree
Showing 62 changed files with 1,409 additions and 90 deletions.
58 changes: 57 additions & 1 deletion CHANGES.rst
@@ -1,7 +1,7 @@
Changelog
=========

1.3.2 (unreleased)
1.6.1 (unreleased)
------------------

- Expose the tagged values for widgets in the @types endpoint.
Expand All @@ -10,6 +10,48 @@ Changelog
- Render subject vocabulary as items for subjects field.
[jaroel]

Bugfixes:

- Add VHM support to @search
[csenger]


1.6.0 (2018-04-17)
------------------

New Features:

- Add `expand.navigation.depth` parameter to the `@navigation` endpoint.
[fulv, sneridagh]


1.5.0 (2018-04-03)
------------------

New Features:

- Allow users to update their own properties and password.
[sneridagh]


1.4.1 (2018-03-22)
------------------

Bugfixes:

- Fix serialization of `Discussion Item` and `Collection` content types when
called with `fullobjects` parameter.
[sneridagh]


1.4.0 (2018-03-19)
------------------

New Features:

- Add expandable @actions endpoint to retrieve portal_actions.
[csenger,timo,sneridagh]


1.3.1 (2018-03-14)
------------------
Expand Down Expand Up @@ -38,6 +80,20 @@ New Features:
1.2.0 (2018-02-28)
------------------

Breaking Changes:

- Make `@translations` endpoint expandable
[erral]

- Rename the results attribute in `@translations` endpoint to be 'items'
[erral]

- Remove 'language' attribute in `@translations` endpoint from the
top-level response entry
[erral]



New Features:

- Allow users to get their own user information.
Expand Down
1 change: 1 addition & 0 deletions base.cfg
Expand Up @@ -141,6 +141,7 @@ interpreter = ${buildout:directory}/bin/${sphinx-python:interpreter}
[sphinx-python]
recipe = zc.recipe.egg
eggs =
sphinx_rtd_theme
sphinxcontrib-httpdomain
sphinxcontrib-httpexample
interpreter = sphinxPython
Expand Down
3 changes: 3 additions & 0 deletions docs/source/_json/actions_get.req
@@ -0,0 +1,3 @@
GET /plone/@actions HTTP/1.1
Accept: application/json
Authorization: Basic YWRtaW46c2VjcmV0
71 changes: 71 additions & 0 deletions docs/source/_json/actions_get.resp
@@ -0,0 +1,71 @@
HTTP/1.1 200 OK
Content-Type: application/json

{
"object": [
{
"icon": "",
"id": "view",
"title": "View"
},
{
"icon": "",
"id": "edit",
"title": "Edit"
},
{
"icon": "",
"id": "folderContents",
"title": "Contents"
},
{
"icon": "",
"id": "history",
"title": "History"
},
{
"icon": "",
"id": "local_roles",
"title": "Sharing"
}
],
"object_buttons": [
{
"icon": "",
"id": "cut",
"title": "Cut"
},
{
"icon": "",
"id": "copy",
"title": "Copy"
},
{
"icon": "",
"id": "delete",
"title": "Delete"
},
{
"icon": "",
"id": "rename",
"title": "Rename"
}
],
"user": [
{
"icon": "",
"id": "preferences",
"title": "Preferences"
},
{
"icon": "",
"id": "plone_setup",
"title": "Site Setup"
},
{
"icon": "",
"id": "logout",
"title": "Log out"
}
]
}
3 changes: 3 additions & 0 deletions docs/source/_json/collection.resp
Expand Up @@ -3,6 +3,9 @@ Content-Type: application/json

{
"@components": {
"actions": {
"@id": "http://localhost:55001/plone/collection/@actions"
},
"breadcrumbs": {
"@id": "http://localhost:55001/plone/collection/@breadcrumbs"
},
Expand Down
3 changes: 3 additions & 0 deletions docs/source/_json/content_get.resp
Expand Up @@ -3,6 +3,9 @@ Content-Type: application/json

{
"@components": {
"actions": {
"@id": "http://localhost:55001/plone/folder/my-document/@actions"
},
"breadcrumbs": {
"@id": "http://localhost:55001/plone/folder/my-document/@breadcrumbs"
},
Expand Down
3 changes: 3 additions & 0 deletions docs/source/_json/content_patch_representation.resp
Expand Up @@ -3,6 +3,9 @@ Content-Type: application/json

{
"@components": {
"actions": {
"@id": "http://localhost:55001/plone/folder/my-document/@actions"
},
"breadcrumbs": {
"@id": "http://localhost:55001/plone/folder/my-document/@breadcrumbs"
},
Expand Down
3 changes: 3 additions & 0 deletions docs/source/_json/content_post.resp
Expand Up @@ -4,6 +4,9 @@ Location: http://localhost:55001/plone/folder/my-document

{
"@components": {
"actions": {
"@id": "http://localhost:55001/plone/folder/my-document/@actions"
},
"breadcrumbs": {
"@id": "http://localhost:55001/plone/folder/my-document/@breadcrumbs"
},
Expand Down
3 changes: 3 additions & 0 deletions docs/source/_json/document.resp
Expand Up @@ -3,6 +3,9 @@ Content-Type: application/json

{
"@components": {
"actions": {
"@id": "http://localhost:55001/plone/front-page/@actions"
},
"breadcrumbs": {
"@id": "http://localhost:55001/plone/front-page/@breadcrumbs"
},
Expand Down
3 changes: 3 additions & 0 deletions docs/source/_json/event.resp
Expand Up @@ -3,6 +3,9 @@ Content-Type: application/json

{
"@components": {
"actions": {
"@id": "http://localhost:55001/plone/event/@actions"
},
"breadcrumbs": {
"@id": "http://localhost:55001/plone/event/@breadcrumbs"
},
Expand Down
3 changes: 3 additions & 0 deletions docs/source/_json/expansion.resp
Expand Up @@ -3,6 +3,9 @@ Content-Type: application/json

{
"@components": {
"actions": {
"@id": "http://localhost:55001/plone/front-page/@actions"
},
"breadcrumbs": {
"@id": "http://localhost:55001/plone/front-page/@breadcrumbs"
},
Expand Down
3 changes: 3 additions & 0 deletions docs/source/_json/expansion_expanded.resp
Expand Up @@ -3,6 +3,9 @@ Content-Type: application/json

{
"@components": {
"actions": {
"@id": "http://localhost:55001/plone/front-page/@actions"
},
"breadcrumbs": {
"@id": "http://localhost:55001/plone/front-page/@breadcrumbs",
"items": [
Expand Down
2 changes: 1 addition & 1 deletion docs/source/_json/expansion_expanded_full.req
@@ -1,3 +1,3 @@
GET /plone/front-page?expand=breadcrumbs,navigation,schema,workflow HTTP/1.1
GET /plone/front-page?expand=actions,breadcrumbs,navigation,schema,workflow HTTP/1.1
Accept: application/json
Authorization: Basic YWRtaW46c2VjcmV0
95 changes: 95 additions & 0 deletions docs/source/_json/expansion_expanded_full.resp
Expand Up @@ -3,6 +3,99 @@ Content-Type: application/json

{
"@components": {
"actions": {
"document_actions": [],
"object": [
{
"icon": "",
"id": "view",
"title": "View"
},
{
"icon": "",
"id": "edit",
"title": "Edit"
},
{
"icon": "",
"id": "folderContents",
"title": "Contents"
},
{
"icon": "",
"id": "history",
"title": "History"
},
{
"icon": "",
"id": "local_roles",
"title": "Sharing"
}
],
"object_buttons": [
{
"icon": "",
"id": "cut",
"title": "Cut"
},
{
"icon": "",
"id": "copy",
"title": "Copy"
},
{
"icon": "",
"id": "delete",
"title": "Delete"
},
{
"icon": "",
"id": "rename",
"title": "Rename"
}
],
"portal_tabs": [
{
"icon": "",
"id": "index_html",
"title": "Home"
}
],
"site_actions": [
{
"icon": "",
"id": "sitemap",
"title": "Site Map"
},
{
"icon": "",
"id": "accessibility",
"title": "Accessibility"
},
{
"icon": "",
"id": "contact",
"title": "Contact"
}
],
"user": [
{
"icon": "",
"id": "preferences",
"title": "Preferences"
},
{
"icon": "",
"id": "plone_setup",
"title": "Site Setup"
},
{
"icon": "",
"id": "logout",
"title": "Log out"
}
]
},
"breadcrumbs": {
"@id": "http://localhost:55001/plone/front-page/@breadcrumbs",
"items": [
Expand All @@ -17,10 +110,12 @@ Content-Type: application/json
"items": [
{
"@id": "http://localhost:55001/plone",
"description": "",
"title": "Home"
},
{
"@id": "http://localhost:55001/plone/front-page",
"description": "Congratulations! You have successfully installed Plone.",
"title": "Welcome to Plone"
}
]
Expand Down
3 changes: 3 additions & 0 deletions docs/source/_json/file.resp
Expand Up @@ -3,6 +3,9 @@ Content-Type: application/json

{
"@components": {
"actions": {
"@id": "http://localhost:55001/plone/file/@actions"
},
"breadcrumbs": {
"@id": "http://localhost:55001/plone/file/@breadcrumbs"
},
Expand Down
3 changes: 3 additions & 0 deletions docs/source/_json/folder.resp
Expand Up @@ -3,6 +3,9 @@ Content-Type: application/json

{
"@components": {
"actions": {
"@id": "http://localhost:55001/plone/folder/@actions"
},
"breadcrumbs": {
"@id": "http://localhost:55001/plone/folder/@breadcrumbs"
},
Expand Down
3 changes: 3 additions & 0 deletions docs/source/_json/image.resp
Expand Up @@ -3,6 +3,9 @@ Content-Type: application/json

{
"@components": {
"actions": {
"@id": "http://localhost:55001/plone/image/@actions"
},
"breadcrumbs": {
"@id": "http://localhost:55001/plone/image/@breadcrumbs"
},
Expand Down

0 comments on commit 079e06a

Please sign in to comment.