Skip to content

Commit

Permalink
Merge branch 'master' into kitconcept-buildout
Browse files Browse the repository at this point in the history
  • Loading branch information
tisto committed May 7, 2019
2 parents 1f485d9 + 8edd880 commit 86f18c7
Show file tree
Hide file tree
Showing 45 changed files with 1,121 additions and 319 deletions.
42 changes: 42 additions & 0 deletions CHANGES.rst
@@ -1,6 +1,48 @@
Changelog
=========

3.0.0 (unreleased)
------------------

Breaking Changes:

- `@vocabularies` service:

- No longer returns an ``@id`` for terms.
- Results are batched, and terms are now listed as ``items``
instead of ``terms`` to match other batched responses.
Batch size is 25 by default but can be overridden
using the ``b_size`` parameter.

[davisagli]

- `@types` service:

- Choice fields using named vocabularies are now serialized
with a ``vocabulary`` property giving the URL of the ``@vocabularies``
endpoint for the vocabulary instead of including ``choices``,
``enum`` and ``enumNames`` inline.
- The ``subjects`` field is now serialized as an ``array``
of ``string`` items using the ``plone.app.vocabularies.Keywords`` vocabulary.
[davisagli]
- Serialize widget parameters into a ``widgetOptions`` object
instead of adding them to the top level of the schema property.

[davisagli]

New Features:

- ``@vocabularies`` service: Use ``title`` parameter to filter terms by title
and ``token`` for getting the title of a term given a token.
(case-insensitive).
[davisagli]

Bugfixes:

- Avoid calculating batch links for catalog results twice.
[davisagli]


.. You should *NOT* be adding new change log entries to this file.
You should create a file in the news directory instead.
For helpful instructions, please see:
Expand Down
3 changes: 3 additions & 0 deletions docs/source/_json/vocabularies_get_filtered.req
@@ -0,0 +1,3 @@
GET /plone/@vocabularies/plone.app.vocabularies.ReallyUserFriendlyTypes?q=doc HTTP/1.1
Accept: application/json
Authorization: Basic YWRtaW46c2VjcmV0
17 changes: 17 additions & 0 deletions docs/source/_json/vocabularies_get_filtered.resp
@@ -0,0 +1,17 @@
HTTP/1.1 200 OK
Content-Type: application/json

{
"@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.ReallyUserFriendlyTypes?q=doc",
"items": [
{
"title": "DX Test Document",
"token": "DXTestDocument"
},
{
"title": "Test Document",
"token": "ATTestDocument"
}
],
"items_total": 2
}

0 comments on commit 86f18c7

Please sign in to comment.