From 0282d0ffe5d8d4d7b63e3f92983cb54d5562a004 Mon Sep 17 00:00:00 2001 From: Maurits van Rees Date: Mon, 6 Sep 2021 10:18:39 +0200 Subject: [PATCH 01/12] Use checkout of plone.restapi for testing 5.2. This was already done correctly for the other Plone versions. Done for all versions in the same way now: first extend the dist.plone.org versions and then extend base.cfg, which unpins plone.restapi. Also: test with latest Plone 5.2.5. And remove pins that are already in 5.2.5 with a good version. --- base.cfg | 4 ++++ buildout.cfg | 10 ---------- plone-4.3.x.cfg | 5 +---- plone-5.0.x.cfg | 3 +-- plone-5.1.x.cfg | 5 +---- plone-5.2.x-performance.cfg | 3 --- plone-5.2.x.cfg | 17 +++-------------- 7 files changed, 10 insertions(+), 37 deletions(-) diff --git a/base.cfg b/base.cfg index a27ef1d707..c516bfef48 100644 --- a/base.cfg +++ b/base.cfg @@ -34,6 +34,10 @@ allow-hosts = code.google.com robotframework.googlecode.com +[versions] +# Do not use a release of plone.restapi: +plone.restapi = + [instance] recipe = plone.recipe.zope2instance user = admin:admin diff --git a/buildout.cfg b/buildout.cfg index 3bac185709..f45087fb1f 100644 --- a/buildout.cfg +++ b/buildout.cfg @@ -1,12 +1,2 @@ [buildout] extends = plone-5.2.x.cfg -versions=versions - -[versions] -plone.restapi = - -plone.schema = 1.3.0 -plone.dexterity = 2.9.8 - -# 3.0 drops python2 compatibility -pyroma = 2.6.1 diff --git a/plone-4.3.x.cfg b/plone-4.3.x.cfg index aaac502e68..deaaec3892 100644 --- a/plone-4.3.x.cfg +++ b/plone-4.3.x.cfg @@ -1,7 +1,7 @@ [buildout] extends = - base.cfg https://dist.plone.org/release/4.3.20/versions.cfg + base.cfg versions.cfg [versions] @@ -29,9 +29,6 @@ pyrsistent = 0.15.7 # Error: The requirement ('distlib<1,>=0.3.1') is not allowed by your [versions] constraint (0.3.0) distlib = 0.3.1 -# plone.restapi specific pins -plone.restapi = - # Improvements to the JSONField plone.schema = 1.3.0 diff --git a/plone-5.0.x.cfg b/plone-5.0.x.cfg index 59e1c95635..1e485dae30 100644 --- a/plone-5.0.x.cfg +++ b/plone-5.0.x.cfg @@ -1,11 +1,10 @@ [buildout] extends = - base.cfg http://dist.plone.org/release/5.0.10/versions.cfg + base.cfg versions.cfg [versions] -plone.restapi = plone.schema = 1.2.1 pytz = 2017.3 zope.interface = 4.1.0 diff --git a/plone-5.1.x.cfg b/plone-5.1.x.cfg index 9a16035417..6f9d7e3232 100644 --- a/plone-5.1.x.cfg +++ b/plone-5.1.x.cfg @@ -1,7 +1,7 @@ [buildout] extends = - base.cfg https://dist.plone.org/release/5.1.7/versions.cfg + base.cfg versions.cfg [versions] @@ -34,8 +34,5 @@ Jinja2 = 2.10 Babel = 2.5.1 astunparse = 1.6.2 -# plone.restapi specific pins -plone.restapi = - # Improvements to the JSONField plone.schema = 1.3.0 \ No newline at end of file diff --git a/plone-5.2.x-performance.cfg b/plone-5.2.x-performance.cfg index 4dbb998ea9..e66c301c19 100644 --- a/plone-5.2.x-performance.cfg +++ b/plone-5.2.x-performance.cfg @@ -26,6 +26,3 @@ profiles = plone.app.contenttypes:plone-content plone.restapi:performance site-replace = True - -[versions] -plone.restapi = diff --git a/plone-5.2.x.cfg b/plone-5.2.x.cfg index b295494a76..dce1f85158 100644 --- a/plone-5.2.x.cfg +++ b/plone-5.2.x.cfg @@ -1,7 +1,7 @@ [buildout] extends = + https://dist.plone.org/release/5.2.5/versions.cfg base.cfg - https://dist.plone.org/release/5.2.4/versions.cfg find-links += https://dist.plone.org/thirdparty/ versions=versions @@ -11,19 +11,8 @@ black = 20.8b1 # Error: The requirement ('virtualenv>=20.0.35') is not allowed by your [versions] constraint (20.0.26) virtualenv = 20.0.35 -# Error: The requirement ('pep517>=0.9') is not allowed by your [versions] constraint (0.8.2) -pep517 = 0.9.1 - # Error: The requirement ('importlib-metadata>=1') is not allowed by your [versions] constraint (0.23) importlib-metadata = 2.0.0 -# cryptography 3.4 requires a rust compiler installed on the system: -# https://github.com/pyca/cryptography/blob/master/CHANGELOG.rst#34---2021-02-07 -cryptography = 3.3.2 - -# cffi 1.14.3 fails on apple m1 -cffi = 1.14.4 - -# requirement for json widget tests to pass -plone.schema = 1.3.0 -plone.dexterity = 2.9.8 \ No newline at end of file +# requirement for http-examples to not have a random behavior schema name +plone.dexterity = 2.9.8 From d2177ef2f3a0ce31fcfe3bcd34ebb544773b98c3 Mon Sep 17 00:00:00 2001 From: Maurits van Rees Date: Thu, 2 Sep 2021 22:29:31 +0200 Subject: [PATCH 02/12] Use standard newer plone.dexterity on 5.2. When writing the http-examples, use the original simpler generated schema name. --- plone-5.2.x.cfg | 3 - src/plone/restapi/tests/test_documentation.py | 61 ++++++++++++++++--- 2 files changed, 51 insertions(+), 13 deletions(-) diff --git a/plone-5.2.x.cfg b/plone-5.2.x.cfg index dce1f85158..f74bc193d0 100644 --- a/plone-5.2.x.cfg +++ b/plone-5.2.x.cfg @@ -13,6 +13,3 @@ virtualenv = 20.0.35 # Error: The requirement ('importlib-metadata>=1') is not allowed by your [versions] constraint (0.23) importlib-metadata = 2.0.0 - -# requirement for http-examples to not have a random behavior schema name -plone.dexterity = 2.9.8 diff --git a/src/plone/restapi/tests/test_documentation.py b/src/plone/restapi/tests/test_documentation.py index 25b1676301..a7adf9dede 100644 --- a/src/plone/restapi/tests/test_documentation.py +++ b/src/plone/restapi/tests/test_documentation.py @@ -93,7 +93,7 @@ def pretty_json(data): return json.dumps(data, sort_keys=True, indent=4, separators=(",", ": ")) -def save_request_and_response_for_docs(name, response): +def save_request_and_response_for_docs(name, response, response_text_override="", request_text_override=""): if six.PY2: open_kw = {} else: @@ -120,7 +120,7 @@ def save_request_and_response_for_docs(name, response): req.write("\n") # Pretty print JSON request body - if content_type == "application/json": + if content_type == "application/json" and not request_text_override: json_body = json.loads(response.request.body) body = pretty_json(json_body) # Make sure Content-Length gets updated, just in case we @@ -128,13 +128,14 @@ def save_request_and_response_for_docs(name, response): response.request.prepare_body(data=body, files=None) req.flush() - if isinstance(response.request.body, six.text_type) or not hasattr( + body = request_text_override or response.request.body + if isinstance(body, six.text_type) or not hasattr( req, "buffer" ): - req.write(response.request.body) + req.write(body) else: req.buffer.seek(0, 2) - req.buffer.write(response.request.body) + req.buffer.write(body) filename = "{}/{}".format(base_path, "%s.resp" % name) with open(filename, "w", **open_kw) as resp: @@ -145,7 +146,7 @@ def save_request_and_response_for_docs(name, response): if key.lower() in RESPONSE_HEADER_KEYS: resp.write("{}: {}\n".format(key.title(), value)) resp.write("\n") - resp.write(response.text) + resp.write(response_text_override or response.text) def save_request_for_docs(name, response): @@ -545,7 +546,18 @@ def test_documentation_types_document_crud(self): "required": True, }, ) - save_request_and_response_for_docs("types_document_post_field", response) + # With plone.dexterity 2.10+ we get an unstable behavior name like this: + # plone.dexterity.schema.generated.plone_5_1630611587_2_523689_0_Document + # Replace it. + document_schema_re = re.compile(r"^plone.dexterity.schema.generated.plone_.*_Document$") + stable_behavior = "plone.dexterity.schema.generated.plone_0_Document" + json_response = response.json() + response_text_override = "" + behavior = json_response.get("behavior") + if behavior and document_schema_re.match(behavior): + json_response["behavior"] = stable_behavior + response_text_override = pretty_json(json_response) + save_request_and_response_for_docs("types_document_post_field", response, response_text_override) # # GET @@ -553,7 +565,16 @@ def test_documentation_types_document_crud(self): # Document response = self.api_session.get("/@types/Document") - save_request_and_response_for_docs("types_document", response) + json_response = response.json() + response_text_override = "" + try: + author_email = json_response["properties"]["author_email"] + if document_schema_re.match(author_email["behavior"]): + author_email["behavior"] = stable_behavior + response_text_override = pretty_json(json_response) + except KeyError: + pass + save_request_and_response_for_docs("types_document", response, response_text_override) doc_json = json.loads(response.content) # Get fieldset @@ -562,7 +583,13 @@ def test_documentation_types_document_crud(self): # Get field response = self.api_session.get("/@types/Document/author_email") - save_request_and_response_for_docs("types_document_get_field", response) + json_response = response.json() + response_text_override = "" + behavior = json_response.get("behavior") + if behavior and document_schema_re.match(behavior): + json_response["behavior"] = stable_behavior + response_text_override = pretty_json(json_response) + save_request_and_response_for_docs("types_document_get_field", response, response_text_override) # # PATCH @@ -651,7 +678,21 @@ def test_documentation_types_document_crud(self): } response = self.api_session.put("/@types/Document", json=doc_json) - save_request_and_response_for_docs("types_document_put", response) + # In this case, not the response but the request has a non deterministic behavior. + # I don't want to change it in the request itself, only in the test output. + request_text_override = "" + try: + author_email = doc_json["properties"]["author_email"] + if document_schema_re.match(author_email["behavior"]): + author_email["behavior"] = stable_behavior + request_text_override = pretty_json(doc_json) + except KeyError: + pass + save_request_and_response_for_docs( + "types_document_put", + response, + request_text_override=request_text_override, + ) # # DELETE From ba69fd7c7d66fc5c20a0e059b067256ae4a279ef Mon Sep 17 00:00:00 2001 From: Maurits van Rees Date: Thu, 2 Sep 2021 22:35:51 +0200 Subject: [PATCH 03/12] Let save_request_and_response_for_docs call save_request_for_docs. The first part of save_request_and_response_for_docs was an exact copy save_request_for_docs (before my change in the previous commit). --- src/plone/restapi/tests/test_documentation.py | 64 ++++--------------- 1 file changed, 12 insertions(+), 52 deletions(-) diff --git a/src/plone/restapi/tests/test_documentation.py b/src/plone/restapi/tests/test_documentation.py index a7adf9dede..bff6172a19 100644 --- a/src/plone/restapi/tests/test_documentation.py +++ b/src/plone/restapi/tests/test_documentation.py @@ -87,6 +87,11 @@ PLONE5 = False else: PLONE5 = True +# How do we open files? +if six.PY2: + open_kw = {} +else: + open_kw = {"newline": "\n"} def pretty_json(data): @@ -94,49 +99,7 @@ def pretty_json(data): def save_request_and_response_for_docs(name, response, response_text_override="", request_text_override=""): - if six.PY2: - open_kw = {} - else: - open_kw = {"newline": "\n"} - filename = "{}/{}".format(base_path, "%s.req" % name) - with open(filename, "w", **open_kw) as req: - req.write( - "{} {} HTTP/1.1\n".format( - response.request.method, response.request.path_url - ) - ) - ordered_request_headers = collections.OrderedDict( - sorted(response.request.headers.items()) - ) - for key, value in ordered_request_headers.items(): - if key.lower() in REQUEST_HEADER_KEYS: - req.write("{}: {}\n".format(key.title(), value)) - if response.request.body: - # If request has a body, make sure to set Content-Type header - if "content-type" not in REQUEST_HEADER_KEYS: - content_type = response.request.headers["Content-Type"] - req.write("Content-Type: %s\n" % content_type) - - req.write("\n") - - # Pretty print JSON request body - if content_type == "application/json" and not request_text_override: - json_body = json.loads(response.request.body) - body = pretty_json(json_body) - # Make sure Content-Length gets updated, just in case we - # ever decide to dump that header - response.request.prepare_body(data=body, files=None) - - req.flush() - body = request_text_override or response.request.body - if isinstance(body, six.text_type) or not hasattr( - req, "buffer" - ): - req.write(body) - else: - req.buffer.seek(0, 2) - req.buffer.write(body) - + save_request_for_docs(name, response, request_text_override=request_text_override) filename = "{}/{}".format(base_path, "%s.resp" % name) with open(filename, "w", **open_kw) as resp: status = response.status_code @@ -149,11 +112,7 @@ def save_request_and_response_for_docs(name, response, response_text_override="" resp.write(response_text_override or response.text) -def save_request_for_docs(name, response): - if six.PY2: - open_kw = {} - else: - open_kw = {"newline": "\n"} +def save_request_for_docs(name, response, request_text_override=""): filename = "{}/{}".format(base_path, "%s.req" % name) with open(filename, "w", **open_kw) as req: req.write( @@ -176,7 +135,7 @@ def save_request_for_docs(name, response): req.write("\n") # Pretty print JSON request body - if content_type == "application/json": + if content_type == "application/json" and not request_text_override: json_body = json.loads(response.request.body) body = pretty_json(json_body) # Make sure Content-Length gets updated, just in case we @@ -184,13 +143,14 @@ def save_request_for_docs(name, response): response.request.prepare_body(data=body, files=None) req.flush() - if isinstance(response.request.body, six.text_type) or not hasattr( + body = request_text_override or response.request.body + if isinstance(body, six.text_type) or not hasattr( req, "buffer" ): - req.write(response.request.body) + req.write(body) else: req.buffer.seek(0, 2) - req.buffer.write(response.request.body) + req.buffer.write(body) class TestDocumentationBase(unittest.TestCase): From be31551adc05b0c96cd8346d207e493e4821430b Mon Sep 17 00:00:00 2001 From: Maurits van Rees Date: Thu, 2 Sep 2021 22:43:10 +0200 Subject: [PATCH 04/12] Doc tests: right strip the pretty printed http examples for easier comparison. This avoids many uninteresting differences. --- src/plone/restapi/tests/test_documentation.py | 26 +++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/src/plone/restapi/tests/test_documentation.py b/src/plone/restapi/tests/test_documentation.py index bff6172a19..c02a55978b 100644 --- a/src/plone/restapi/tests/test_documentation.py +++ b/src/plone/restapi/tests/test_documentation.py @@ -95,7 +95,16 @@ def pretty_json(data): - return json.dumps(data, sort_keys=True, indent=4, separators=(",", ": ")) + result = json.dumps(data, sort_keys=True, indent=4, separators=(",", ": ")) + # When generating the documentation examples on different machines, + # it is all too easy to have differences in white space at the end of the line. + # So strip space on the right. + stripped = "\n".join([line.rstrip() for line in result.splitlines()]) + # Make sure there is an empty line at the end. + # If you manually edit a file, many editors will automatically add such a line, + # and you will see as diff: 'No newline at end of file'. We do not want this. + stripped += "\n" + return stripped def save_request_and_response_for_docs(name, response, response_text_override="", request_text_override=""): @@ -104,12 +113,25 @@ def save_request_and_response_for_docs(name, response, response_text_override="" with open(filename, "w", **open_kw) as resp: status = response.status_code reason = response.reason + content_type = None resp.write("HTTP/1.1 {} {}\n".format(status, reason)) for key, value in response.headers.items(): if key.lower() in RESPONSE_HEADER_KEYS: resp.write("{}: {}\n".format(key.title(), value)) + if key.lower() == "content-type": + content_type = value resp.write("\n") - resp.write(response_text_override or response.text) + if response_text_override: + resp.write(response_text_override) + return + if not response.text: + # Empty response. + return + if not (content_type and content_type.startswith("application/json")): + resp.write(response.text) + return + # Use pretty_json as a normalizer, especially for line endings. + resp.write(pretty_json(response.json())) def save_request_for_docs(name, response, request_text_override=""): From 1ba5a40ac3fde3b5c145f3c08ff4647fc0b6a698 Mon Sep 17 00:00:00 2001 From: Maurits van Rees Date: Thu, 2 Sep 2021 23:18:25 +0200 Subject: [PATCH 05/12] Test fix: normalize random port to standard 55001. This avoids differences when running from the Plone coredev buildout, which uses a random port. A few differences remain, at least when running the test in Plone 6. On Plone 5.2, only workingcopy_baseline_get.resp has a difference, and this depends on your timezone. --- src/plone/restapi/tests/test_documentation.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/plone/restapi/tests/test_documentation.py b/src/plone/restapi/tests/test_documentation.py index c02a55978b..761517d384 100644 --- a/src/plone/restapi/tests/test_documentation.py +++ b/src/plone/restapi/tests/test_documentation.py @@ -94,6 +94,12 @@ open_kw = {"newline": "\n"} +def normalize_test_port(value): + # When you run these tests in the Plone core development buildout, + # the port number is random. Normalize this to the default port. + return re.sub(r"localhost:\d{5}", "localhost:55001", value) + + def pretty_json(data): result = json.dumps(data, sort_keys=True, indent=4, separators=(",", ": ")) # When generating the documentation examples on different machines, @@ -104,7 +110,7 @@ def pretty_json(data): # If you manually edit a file, many editors will automatically add such a line, # and you will see as diff: 'No newline at end of file'. We do not want this. stripped += "\n" - return stripped + return normalize_test_port(stripped) def save_request_and_response_for_docs(name, response, response_text_override="", request_text_override=""): @@ -117,6 +123,8 @@ def save_request_and_response_for_docs(name, response, response_text_override="" resp.write("HTTP/1.1 {} {}\n".format(status, reason)) for key, value in response.headers.items(): if key.lower() in RESPONSE_HEADER_KEYS: + if key.lower() == "location": + value = normalize_test_port(value) resp.write("{}: {}\n".format(key.title(), value)) if key.lower() == "content-type": content_type = value From 8cca789543ded73f5dd6124d61da4c5e074286f2 Mon Sep 17 00:00:00 2001 From: Maurits van Rees Date: Mon, 6 Sep 2021 10:57:25 +0200 Subject: [PATCH 06/12] black src/plone/restapi/tests/test_documentation.py --- src/plone/restapi/tests/test_documentation.py | 24 ++++++++++++------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/src/plone/restapi/tests/test_documentation.py b/src/plone/restapi/tests/test_documentation.py index 761517d384..234df81dc3 100644 --- a/src/plone/restapi/tests/test_documentation.py +++ b/src/plone/restapi/tests/test_documentation.py @@ -113,7 +113,9 @@ def pretty_json(data): return normalize_test_port(stripped) -def save_request_and_response_for_docs(name, response, response_text_override="", request_text_override=""): +def save_request_and_response_for_docs( + name, response, response_text_override="", request_text_override="" +): save_request_for_docs(name, response, request_text_override=request_text_override) filename = "{}/{}".format(base_path, "%s.resp" % name) with open(filename, "w", **open_kw) as resp: @@ -174,9 +176,7 @@ def save_request_for_docs(name, response, request_text_override=""): req.flush() body = request_text_override or response.request.body - if isinstance(body, six.text_type) or not hasattr( - req, "buffer" - ): + if isinstance(body, six.text_type) or not hasattr(req, "buffer"): req.write(body) else: req.buffer.seek(0, 2) @@ -539,7 +539,9 @@ def test_documentation_types_document_crud(self): # With plone.dexterity 2.10+ we get an unstable behavior name like this: # plone.dexterity.schema.generated.plone_5_1630611587_2_523689_0_Document # Replace it. - document_schema_re = re.compile(r"^plone.dexterity.schema.generated.plone_.*_Document$") + document_schema_re = re.compile( + r"^plone.dexterity.schema.generated.plone_.*_Document$" + ) stable_behavior = "plone.dexterity.schema.generated.plone_0_Document" json_response = response.json() response_text_override = "" @@ -547,7 +549,9 @@ def test_documentation_types_document_crud(self): if behavior and document_schema_re.match(behavior): json_response["behavior"] = stable_behavior response_text_override = pretty_json(json_response) - save_request_and_response_for_docs("types_document_post_field", response, response_text_override) + save_request_and_response_for_docs( + "types_document_post_field", response, response_text_override + ) # # GET @@ -564,7 +568,9 @@ def test_documentation_types_document_crud(self): response_text_override = pretty_json(json_response) except KeyError: pass - save_request_and_response_for_docs("types_document", response, response_text_override) + save_request_and_response_for_docs( + "types_document", response, response_text_override + ) doc_json = json.loads(response.content) # Get fieldset @@ -579,7 +585,9 @@ def test_documentation_types_document_crud(self): if behavior and document_schema_re.match(behavior): json_response["behavior"] = stable_behavior response_text_override = pretty_json(json_response) - save_request_and_response_for_docs("types_document_get_field", response, response_text_override) + save_request_and_response_for_docs( + "types_document_get_field", response, response_text_override + ) # # PATCH From c1db8857565b8d8b1daf907567a83fd7a80dd6f5 Mon Sep 17 00:00:00 2001 From: Maurits van Rees Date: Mon, 6 Sep 2021 11:01:18 +0200 Subject: [PATCH 07/12] Updated http-examples after Python 3.7 run. These are only whitespace changes. --- .../tests/http-examples/404_not_found.resp | 6 +- .../restapi/tests/http-examples/batching.resp | 92 +- .../tests/http-examples/breadcrumbs.resp | 18 +- .../tests/http-examples/collection.resp | 242 +- .../http-examples/collection_fullobjects.resp | 596 +-- .../tests/http-examples/comments_add_root.req | 2 +- .../tests/http-examples/comments_add_sub.req | 2 +- .../tests/http-examples/comments_get.resp | 86 +- .../tests/http-examples/comments_update.req | 2 +- .../tests/http-examples/content_get.resp | 134 +- .../http-examples/content_get_folder.resp | 180 +- .../tests/http-examples/content_patch.req | 2 +- .../content_patch_representation.req | 2 +- .../content_patch_representation.resp | 134 +- .../tests/http-examples/content_post.req | 2 +- .../tests/http-examples/content_post.resp | 134 +- .../http-examples/contextnavigation.resp | 106 +- .../http-examples/controlpanels_get.resp | 122 +- .../controlpanels_get_dexterity.resp | 188 +- .../controlpanels_get_dexterity_item.resp | 706 ++-- .../http-examples/controlpanels_get_item.resp | 196 +- .../controlpanels_patch_dexterity_item.req | 2 +- .../controlpanels_post_dexterity_item.req | 2 +- .../controlpanels_post_dexterity_item.resp | 706 ++-- .../restapi/tests/http-examples/copy.req | 2 +- .../restapi/tests/http-examples/copy.resp | 10 +- .../tests/http-examples/copy_multiple.req | 2 +- .../tests/http-examples/copy_multiple.resp | 18 +- .../restapi/tests/http-examples/document.resp | 130 +- .../restapi/tests/http-examples/event.resp | 154 +- .../tests/http-examples/expansion.resp | 130 +- .../http-examples/expansion_expanded.resp | 142 +- .../expansion_expanded_full.resp | 502 +-- .../restapi/tests/http-examples/file.resp | 130 +- .../restapi/tests/http-examples/folder.resp | 154 +- .../restapi/tests/http-examples/groups.resp | 114 +- .../tests/http-examples/groups_created.req | 2 +- .../tests/http-examples/groups_created.resp | 40 +- .../groups_filtered_by_groupname.resp | 24 +- .../tests/http-examples/groups_get.resp | 30 +- .../tests/http-examples/groups_update.req | 2 +- .../tests/http-examples/history_get.resp | 64 +- .../tests/http-examples/history_revert.req | 2 +- .../tests/http-examples/history_revert.resp | 4 +- .../restapi/tests/http-examples/image.resp | 206 +- .../tests/http-examples/jwt_logged_in.resp | 68 +- .../restapi/tests/http-examples/jwt_login.req | 2 +- .../tests/http-examples/jwt_login.resp | 4 +- .../tests/http-examples/jwt_login_renew.resp | 4 +- .../restapi/tests/http-examples/link.resp | 122 +- .../restapi/tests/http-examples/lock.resp | 22 +- .../restapi/tests/http-examples/lock_get.resp | 6 +- .../lock_nonstealable_timeout.req | 2 +- .../lock_nonstealable_timeout.resp | 22 +- .../tests/http-examples/lock_update.req | 2 +- .../restapi/tests/http-examples/move.req | 2 +- .../restapi/tests/http-examples/move.resp | 10 +- .../tests/http-examples/navigation.resp | 36 +- .../tests/http-examples/navigation_tree.resp | 140 +- .../restapi/tests/http-examples/newsitem.resp | 228 +- .../tests/http-examples/principals.resp | 30 +- .../tests/http-examples/querystring_get.resp | 3250 ++++++++--------- .../http-examples/querystringsearch_post.req | 2 +- .../http-examples/querystringsearch_post.resp | 38 +- .../tests/http-examples/refresh_lock.resp | 22 +- .../tests/http-examples/registry_get.resp | 2 +- .../http-examples/registry_get_list.resp | 866 ++--- .../tests/http-examples/registry_update.req | 2 +- .../restapi/tests/http-examples/roles.resp | 86 +- .../restapi/tests/http-examples/search.resp | 24 +- .../http-examples/search_fullobjects.resp | 142 +- .../http-examples/search_metadata_fields.resp | 28 +- .../http-examples/search_multiple_paths.resp | 66 +- .../tests/http-examples/search_options.resp | 24 +- .../http-examples/sharing_folder_get.resp | 70 +- .../http-examples/sharing_folder_post.req | 2 +- .../tests/http-examples/sharing_search.resp | 142 +- .../restapi/tests/http-examples/siteroot.resp | 68 +- .../tests/http-examples/sources_get.resp | 34 +- .../translated_messages_object_history.resp | 64 +- .../translated_messages_object_workflow.resp | 44 +- .../translated_messages_types.resp | 92 +- .../translated_messages_types_folder.resp | 506 +-- .../http-examples/translation_locator.resp | 4 +- .../http-examples/translations_delete.req | 2 +- .../tests/http-examples/translations_get.resp | 16 +- .../translations_link_on_post.req | 2 +- .../translations_link_on_post.resp | 146 +- .../tests/http-examples/translations_post.req | 2 +- .../http-examples/translations_post.resp | 2 +- .../http-examples/translations_post_by_id.req | 2 +- .../translations_post_by_id.resp | 2 +- .../translations_post_by_uid.req | 2 +- .../translations_post_by_uid.resp | 2 +- .../restapi/tests/http-examples/types.resp | 92 +- .../tests/http-examples/types_document.resp | 574 +-- .../types_document_get_field.resp | 12 +- .../types_document_get_fieldset.resp | 12 +- .../types_document_patch_field.req | 2 +- .../types_document_patch_fieldset.req | 2 +- .../types_document_patch_fieldsets.req | 2 +- .../types_document_patch_properites.req | 2 +- .../types_document_post_field.req | 2 +- .../types_document_post_field.resp | 12 +- .../types_document_post_fieldset.req | 2 +- .../types_document_post_fieldset.resp | 12 +- .../restapi/tests/http-examples/unlock.resp | 6 +- .../tests/http-examples/unlock_force.req | 2 +- .../tests/http-examples/unlock_force.resp | 6 +- .../restapi/tests/http-examples/users.resp | 58 +- .../restapi/tests/http-examples/users_add.req | 2 +- .../tests/http-examples/users_add.resp | 26 +- .../tests/http-examples/users_anonymous.resp | 2 +- .../http-examples/users_anonymous_get.resp | 2 +- .../http-examples/users_authorized_get.resp | 26 +- .../tests/http-examples/users_created.req | 2 +- .../tests/http-examples/users_created.resp | 26 +- .../users_filtered_by_username.resp | 30 +- .../tests/http-examples/users_get.resp | 26 +- .../http-examples/users_unauthorized.resp | 2 +- .../http-examples/users_unauthorized_get.resp | 2 +- .../tests/http-examples/users_update.req | 2 +- .../http-examples/users_update_portrait.req | 2 +- .../users_update_portrait_get.req | 2 +- .../users_update_portrait_get.resp | 26 +- .../users_update_portrait_scale.req | 2 +- .../tests/http-examples/vocabularies.resp | 402 +- .../tests/http-examples/vocabularies_get.resp | 106 +- .../vocabularies_get_fields.resp | 170 +- .../vocabularies_get_filtered_by_title.resp | 26 +- .../vocabularies_get_filtered_by_token.resp | 18 +- .../tests/http-examples/workflow_get.resp | 44 +- .../tests/http-examples/workflow_post.resp | 14 +- .../http-examples/workflow_post_with_body.req | 2 +- .../workflow_post_with_body.resp | 14 +- 135 files changed, 6877 insertions(+), 6877 deletions(-) diff --git a/src/plone/restapi/tests/http-examples/404_not_found.resp b/src/plone/restapi/tests/http-examples/404_not_found.resp index bbf3909940..bbbc9de8cc 100644 --- a/src/plone/restapi/tests/http-examples/404_not_found.resp +++ b/src/plone/restapi/tests/http-examples/404_not_found.resp @@ -2,6 +2,6 @@ HTTP/1.1 404 Not Found Content-Type: application/json { - "message": "Resource not found: http://localhost:55001/plone/non-existing-resource", - "type": "NotFound" -} \ No newline at end of file + "message": "Resource not found: http://localhost:55001/plone/non-existing-resource", + "type": "NotFound" +} diff --git a/src/plone/restapi/tests/http-examples/batching.resp b/src/plone/restapi/tests/http-examples/batching.resp index ef2084ec59..c8aabb7e69 100644 --- a/src/plone/restapi/tests/http-examples/batching.resp +++ b/src/plone/restapi/tests/http-examples/batching.resp @@ -2,49 +2,49 @@ HTTP/1.1 200 OK Content-Type: application/json { - "@id": "http://localhost:55001/plone/folder/@search", - "batching": { - "@id": "http://localhost:55001/plone/folder/@search?b_size=5&sort_on=path", - "first": "http://localhost:55001/plone/folder/@search?b_start=0&b_size=5&sort_on=path", - "last": "http://localhost:55001/plone/folder/@search?b_start=5&b_size=5&sort_on=path", - "next": "http://localhost:55001/plone/folder/@search?b_start=5&b_size=5&sort_on=path" - }, - "items": [ - { - "@id": "http://localhost:55001/plone/folder", - "@type": "Folder", - "description": "", - "review_state": "private", - "title": "Folder" - }, - { - "@id": "http://localhost:55001/plone/folder/doc-1", - "@type": "Document", - "description": "", - "review_state": "private", - "title": "Document 1" - }, - { - "@id": "http://localhost:55001/plone/folder/doc-2", - "@type": "Document", - "description": "", - "review_state": "private", - "title": "Document 2" - }, - { - "@id": "http://localhost:55001/plone/folder/doc-3", - "@type": "Document", - "description": "", - "review_state": "private", - "title": "Document 3" - }, - { - "@id": "http://localhost:55001/plone/folder/doc-4", - "@type": "Document", - "description": "", - "review_state": "private", - "title": "Document 4" - } - ], - "items_total": 8 -} \ No newline at end of file + "@id": "http://localhost:55001/plone/folder/@search", + "batching": { + "@id": "http://localhost:55001/plone/folder/@search?b_size=5&sort_on=path", + "first": "http://localhost:55001/plone/folder/@search?b_start=0&b_size=5&sort_on=path", + "last": "http://localhost:55001/plone/folder/@search?b_start=5&b_size=5&sort_on=path", + "next": "http://localhost:55001/plone/folder/@search?b_start=5&b_size=5&sort_on=path" + }, + "items": [ + { + "@id": "http://localhost:55001/plone/folder", + "@type": "Folder", + "description": "", + "review_state": "private", + "title": "Folder" + }, + { + "@id": "http://localhost:55001/plone/folder/doc-1", + "@type": "Document", + "description": "", + "review_state": "private", + "title": "Document 1" + }, + { + "@id": "http://localhost:55001/plone/folder/doc-2", + "@type": "Document", + "description": "", + "review_state": "private", + "title": "Document 2" + }, + { + "@id": "http://localhost:55001/plone/folder/doc-3", + "@type": "Document", + "description": "", + "review_state": "private", + "title": "Document 3" + }, + { + "@id": "http://localhost:55001/plone/folder/doc-4", + "@type": "Document", + "description": "", + "review_state": "private", + "title": "Document 4" + } + ], + "items_total": 8 +} diff --git a/src/plone/restapi/tests/http-examples/breadcrumbs.resp b/src/plone/restapi/tests/http-examples/breadcrumbs.resp index afa342c4e2..bb2f76c6f4 100644 --- a/src/plone/restapi/tests/http-examples/breadcrumbs.resp +++ b/src/plone/restapi/tests/http-examples/breadcrumbs.resp @@ -2,12 +2,12 @@ HTTP/1.1 200 OK Content-Type: application/json { - "@id": "http://localhost:55001/plone/front-page/@breadcrumbs", - "items": [ - { - "@id": "http://localhost:55001/plone/front-page", - "title": "Welcome to Plone" - } - ], - "root": "http://localhost:55001/plone" -} \ No newline at end of file + "@id": "http://localhost:55001/plone/front-page/@breadcrumbs", + "items": [ + { + "@id": "http://localhost:55001/plone/front-page", + "title": "Welcome to Plone" + } + ], + "root": "http://localhost:55001/plone" +} diff --git a/src/plone/restapi/tests/http-examples/collection.resp b/src/plone/restapi/tests/http-examples/collection.resp index 25a7b29c58..8af2a37629 100644 --- a/src/plone/restapi/tests/http-examples/collection.resp +++ b/src/plone/restapi/tests/http-examples/collection.resp @@ -2,124 +2,124 @@ HTTP/1.1 200 OK Content-Type: application/json { - "@components": { - "actions": { - "@id": "http://localhost:55001/plone/collection/@actions" - }, - "breadcrumbs": { - "@id": "http://localhost:55001/plone/collection/@breadcrumbs" - }, - "contextnavigation": { - "@id": "http://localhost:55001/plone/collection/@contextnavigation" - }, - "navigation": { - "@id": "http://localhost:55001/plone/collection/@navigation" - }, - "types": { - "@id": "http://localhost:55001/plone/collection/@types" - }, - "workflow": { - "@id": "http://localhost:55001/plone/collection/@workflow" - } - }, - "@id": "http://localhost:55001/plone/collection", - "@type": "Collection", - "UID": "SomeUUID000000000000000000000002", - "allow_discussion": false, - "contributors": [], - "created": "1995-07-31T13:45:00", - "creators": [ - "test_user_1_" - ], - "customViewFields": [ - { - "title": "Title", - "token": "Title" - }, - { - "title": "Creator", - "token": "Creator" - }, - { - "title": "Type", - "token": "Type" - }, - { - "title": "Last modified", - "token": "ModificationDate" - } - ], - "description": "This is a collection with two documents", - "effective": null, - "exclude_from_nav": false, - "expires": null, - "id": "collection", - "is_folderish": false, - "item_count": 30, - "items": [ - { - "@id": "http://localhost:55001/plone/front-page", - "@type": "Document", - "description": "Congratulations! You have successfully installed Plone.", - "review_state": "private", - "title": "Welcome to Plone" - }, - { - "@id": "http://localhost:55001/plone/doc1", - "@type": "Document", - "description": "", - "review_state": "private", - "title": "Document 1" - }, - { - "@id": "http://localhost:55001/plone/doc2", - "@type": "Document", - "description": "", - "review_state": "private", - "title": "Document 2" - } - ], - "items_total": 3, - "language": "", - "layout": "listing_view", - "limit": 1000, - "lock": { - "locked": false, - "stealable": true - }, - "modified": "1995-07-31T17:30:00", - "next_item": { - "@id": "http://localhost:55001/plone/doc1", - "@type": "Document", - "description": "", - "title": "Document 1" - }, - "parent": { - "@id": "http://localhost:55001/plone", - "@type": "Plone Site", - "description": "", - "title": "Plone site" - }, - "previous_item": { - "@id": "http://localhost:55001/plone/front-page", - "@type": "Document", - "description": "Congratulations! You have successfully installed Plone.", - "title": "Welcome to Plone" - }, - "query": [ - { - "i": "portal_type", - "o": "plone.app.querystring.operation.string.is", - "v": "Document" - } - ], - "relatedItems": [], - "review_state": "private", - "rights": "", - "sort_on": null, - "sort_reversed": null, - "subjects": [], - "text": null, - "title": "My Collection", - "version": "current" -} \ No newline at end of file + "@components": { + "actions": { + "@id": "http://localhost:55001/plone/collection/@actions" + }, + "breadcrumbs": { + "@id": "http://localhost:55001/plone/collection/@breadcrumbs" + }, + "contextnavigation": { + "@id": "http://localhost:55001/plone/collection/@contextnavigation" + }, + "navigation": { + "@id": "http://localhost:55001/plone/collection/@navigation" + }, + "types": { + "@id": "http://localhost:55001/plone/collection/@types" + }, + "workflow": { + "@id": "http://localhost:55001/plone/collection/@workflow" + } + }, + "@id": "http://localhost:55001/plone/collection", + "@type": "Collection", + "UID": "SomeUUID000000000000000000000002", + "allow_discussion": false, + "contributors": [], + "created": "1995-07-31T13:45:00", + "creators": [ + "test_user_1_" + ], + "customViewFields": [ + { + "title": "Title", + "token": "Title" + }, + { + "title": "Creator", + "token": "Creator" + }, + { + "title": "Type", + "token": "Type" + }, + { + "title": "Last modified", + "token": "ModificationDate" + } + ], + "description": "This is a collection with two documents", + "effective": null, + "exclude_from_nav": false, + "expires": null, + "id": "collection", + "is_folderish": false, + "item_count": 30, + "items": [ + { + "@id": "http://localhost:55001/plone/front-page", + "@type": "Document", + "description": "Congratulations! You have successfully installed Plone.", + "review_state": "private", + "title": "Welcome to Plone" + }, + { + "@id": "http://localhost:55001/plone/doc1", + "@type": "Document", + "description": "", + "review_state": "private", + "title": "Document 1" + }, + { + "@id": "http://localhost:55001/plone/doc2", + "@type": "Document", + "description": "", + "review_state": "private", + "title": "Document 2" + } + ], + "items_total": 3, + "language": "", + "layout": "listing_view", + "limit": 1000, + "lock": { + "locked": false, + "stealable": true + }, + "modified": "1995-07-31T17:30:00", + "next_item": { + "@id": "http://localhost:55001/plone/doc1", + "@type": "Document", + "description": "", + "title": "Document 1" + }, + "parent": { + "@id": "http://localhost:55001/plone", + "@type": "Plone Site", + "description": "", + "title": "Plone site" + }, + "previous_item": { + "@id": "http://localhost:55001/plone/front-page", + "@type": "Document", + "description": "Congratulations! You have successfully installed Plone.", + "title": "Welcome to Plone" + }, + "query": [ + { + "i": "portal_type", + "o": "plone.app.querystring.operation.string.is", + "v": "Document" + } + ], + "relatedItems": [], + "review_state": "private", + "rights": "", + "sort_on": null, + "sort_reversed": null, + "subjects": [], + "text": null, + "title": "My Collection", + "version": "current" +} diff --git a/src/plone/restapi/tests/http-examples/collection_fullobjects.resp b/src/plone/restapi/tests/http-examples/collection_fullobjects.resp index c4285341a1..b924bf7145 100644 --- a/src/plone/restapi/tests/http-examples/collection_fullobjects.resp +++ b/src/plone/restapi/tests/http-examples/collection_fullobjects.resp @@ -2,313 +2,313 @@ HTTP/1.1 200 OK Content-Type: application/json { - "@components": { - "actions": { - "@id": "http://localhost:55001/plone/collection/@actions" - }, - "breadcrumbs": { - "@id": "http://localhost:55001/plone/collection/@breadcrumbs" - }, - "contextnavigation": { - "@id": "http://localhost:55001/plone/collection/@contextnavigation" - }, - "navigation": { - "@id": "http://localhost:55001/plone/collection/@navigation" - }, - "types": { - "@id": "http://localhost:55001/plone/collection/@types" - }, - "workflow": { - "@id": "http://localhost:55001/plone/collection/@workflow" - } - }, - "@id": "http://localhost:55001/plone/collection", - "@type": "Collection", - "UID": "SomeUUID000000000000000000000002", - "allow_discussion": false, - "contributors": [], - "created": "1995-07-31T13:45:00", - "creators": [ - "test_user_1_" - ], - "customViewFields": [ - { - "title": "Title", - "token": "Title" - }, - { - "title": "Creator", - "token": "Creator" - }, - { - "title": "Type", - "token": "Type" - }, - { - "title": "Last modified", - "token": "ModificationDate" - } - ], - "description": "This is a collection with two documents", - "effective": null, - "exclude_from_nav": false, - "expires": null, - "id": "collection", - "is_folderish": false, - "item_count": 30, - "items": [ - { - "@components": { + "@components": { "actions": { - "@id": "http://localhost:55001/plone/front-page/@actions" - }, + "@id": "http://localhost:55001/plone/collection/@actions" + }, "breadcrumbs": { - "@id": "http://localhost:55001/plone/front-page/@breadcrumbs" - }, + "@id": "http://localhost:55001/plone/collection/@breadcrumbs" + }, "contextnavigation": { - "@id": "http://localhost:55001/plone/front-page/@contextnavigation" - }, + "@id": "http://localhost:55001/plone/collection/@contextnavigation" + }, "navigation": { - "@id": "http://localhost:55001/plone/front-page/@navigation" - }, + "@id": "http://localhost:55001/plone/collection/@navigation" + }, "types": { - "@id": "http://localhost:55001/plone/front-page/@types" - }, + "@id": "http://localhost:55001/plone/collection/@types" + }, "workflow": { - "@id": "http://localhost:55001/plone/front-page/@workflow" + "@id": "http://localhost:55001/plone/collection/@workflow" } - }, - "@id": "http://localhost:55001/plone/front-page", - "@type": "Document", - "UID": "SomeUUID000000000000000000000001", - "allow_discussion": false, - "changeNote": "", - "contributors": [], - "created": "1995-07-31T13:45:00", - "creators": [ + }, + "@id": "http://localhost:55001/plone/collection", + "@type": "Collection", + "UID": "SomeUUID000000000000000000000002", + "allow_discussion": false, + "contributors": [], + "created": "1995-07-31T13:45:00", + "creators": [ "test_user_1_" - ], - "description": "Congratulations! You have successfully installed Plone.", - "effective": null, - "exclude_from_nav": false, - "expires": null, - "id": "front-page", - "is_folderish": false, - "language": "", - "layout": "document_view", - "lock": { - "locked": false, - "stealable": true - }, - "modified": "1995-07-31T17:30:00", - "next_item": { - "@id": "http://localhost:55001/plone/collection", - "@type": "Collection", - "description": "This is a collection with two documents", - "title": "My Collection" - }, - "parent": { - "@id": "http://localhost:55001/plone", - "@type": "Plone Site", - "description": "", - "title": "Plone site" - }, - "previous_item": {}, - "relatedItems": [], - "review_state": "private", - "rights": "", - "subjects": [], - "table_of_contents": null, - "text": { - "content-type": "text/plain", - "data": "

If you're seeing this instead of the web site you were expecting, the owner of this web site has just installed Plone. Do not contact the Plone Team or the Plone mailing lists about this.

", - "encoding": "utf-8" - }, - "title": "Welcome to Plone", - "version": "current", - "versioning_enabled": true - }, - { - "@components": { - "actions": { - "@id": "http://localhost:55001/plone/doc1/@actions" - }, - "breadcrumbs": { - "@id": "http://localhost:55001/plone/doc1/@breadcrumbs" - }, - "contextnavigation": { - "@id": "http://localhost:55001/plone/doc1/@contextnavigation" - }, - "navigation": { - "@id": "http://localhost:55001/plone/doc1/@navigation" - }, - "types": { - "@id": "http://localhost:55001/plone/doc1/@types" - }, - "workflow": { - "@id": "http://localhost:55001/plone/doc1/@workflow" + ], + "customViewFields": [ + { + "title": "Title", + "token": "Title" + }, + { + "title": "Creator", + "token": "Creator" + }, + { + "title": "Type", + "token": "Type" + }, + { + "title": "Last modified", + "token": "ModificationDate" } - }, - "@id": "http://localhost:55001/plone/doc1", - "@type": "Document", - "UID": "SomeUUID000000000000000000000003", - "allow_discussion": false, - "changeNote": "", - "contributors": [], - "created": "1995-07-31T13:45:00", - "creators": [ - "test_user_1_" - ], - "description": "", - "effective": null, - "exclude_from_nav": false, - "expires": null, - "id": "doc1", - "is_folderish": false, - "language": "", - "layout": "document_view", - "lock": { - "locked": false, - "stealable": true - }, - "modified": "1995-07-31T17:30:00", - "next_item": { - "@id": "http://localhost:55001/plone/doc2", - "@type": "Document", - "description": "", - "title": "Document 2" - }, - "parent": { - "@id": "http://localhost:55001/plone", - "@type": "Plone Site", - "description": "", - "title": "Plone site" - }, - "previous_item": { - "@id": "http://localhost:55001/plone/collection", - "@type": "Collection", - "description": "This is a collection with two documents", - "title": "My Collection" - }, - "relatedItems": [], - "review_state": "private", - "rights": "", - "subjects": [], - "table_of_contents": null, - "text": null, - "title": "Document 1", - "version": "current", - "versioning_enabled": true - }, - { - "@components": { - "actions": { - "@id": "http://localhost:55001/plone/doc2/@actions" - }, - "breadcrumbs": { - "@id": "http://localhost:55001/plone/doc2/@breadcrumbs" - }, - "contextnavigation": { - "@id": "http://localhost:55001/plone/doc2/@contextnavigation" - }, - "navigation": { - "@id": "http://localhost:55001/plone/doc2/@navigation" - }, - "types": { - "@id": "http://localhost:55001/plone/doc2/@types" - }, - "workflow": { - "@id": "http://localhost:55001/plone/doc2/@workflow" + ], + "description": "This is a collection with two documents", + "effective": null, + "exclude_from_nav": false, + "expires": null, + "id": "collection", + "is_folderish": false, + "item_count": 30, + "items": [ + { + "@components": { + "actions": { + "@id": "http://localhost:55001/plone/front-page/@actions" + }, + "breadcrumbs": { + "@id": "http://localhost:55001/plone/front-page/@breadcrumbs" + }, + "contextnavigation": { + "@id": "http://localhost:55001/plone/front-page/@contextnavigation" + }, + "navigation": { + "@id": "http://localhost:55001/plone/front-page/@navigation" + }, + "types": { + "@id": "http://localhost:55001/plone/front-page/@types" + }, + "workflow": { + "@id": "http://localhost:55001/plone/front-page/@workflow" + } + }, + "@id": "http://localhost:55001/plone/front-page", + "@type": "Document", + "UID": "SomeUUID000000000000000000000001", + "allow_discussion": false, + "changeNote": "", + "contributors": [], + "created": "1995-07-31T13:45:00", + "creators": [ + "test_user_1_" + ], + "description": "Congratulations! You have successfully installed Plone.", + "effective": null, + "exclude_from_nav": false, + "expires": null, + "id": "front-page", + "is_folderish": false, + "language": "", + "layout": "document_view", + "lock": { + "locked": false, + "stealable": true + }, + "modified": "1995-07-31T17:30:00", + "next_item": { + "@id": "http://localhost:55001/plone/collection", + "@type": "Collection", + "description": "This is a collection with two documents", + "title": "My Collection" + }, + "parent": { + "@id": "http://localhost:55001/plone", + "@type": "Plone Site", + "description": "", + "title": "Plone site" + }, + "previous_item": {}, + "relatedItems": [], + "review_state": "private", + "rights": "", + "subjects": [], + "table_of_contents": null, + "text": { + "content-type": "text/plain", + "data": "

If you're seeing this instead of the web site you were expecting, the owner of this web site has just installed Plone. Do not contact the Plone Team or the Plone mailing lists about this.

", + "encoding": "utf-8" + }, + "title": "Welcome to Plone", + "version": "current", + "versioning_enabled": true + }, + { + "@components": { + "actions": { + "@id": "http://localhost:55001/plone/doc1/@actions" + }, + "breadcrumbs": { + "@id": "http://localhost:55001/plone/doc1/@breadcrumbs" + }, + "contextnavigation": { + "@id": "http://localhost:55001/plone/doc1/@contextnavigation" + }, + "navigation": { + "@id": "http://localhost:55001/plone/doc1/@navigation" + }, + "types": { + "@id": "http://localhost:55001/plone/doc1/@types" + }, + "workflow": { + "@id": "http://localhost:55001/plone/doc1/@workflow" + } + }, + "@id": "http://localhost:55001/plone/doc1", + "@type": "Document", + "UID": "SomeUUID000000000000000000000003", + "allow_discussion": false, + "changeNote": "", + "contributors": [], + "created": "1995-07-31T13:45:00", + "creators": [ + "test_user_1_" + ], + "description": "", + "effective": null, + "exclude_from_nav": false, + "expires": null, + "id": "doc1", + "is_folderish": false, + "language": "", + "layout": "document_view", + "lock": { + "locked": false, + "stealable": true + }, + "modified": "1995-07-31T17:30:00", + "next_item": { + "@id": "http://localhost:55001/plone/doc2", + "@type": "Document", + "description": "", + "title": "Document 2" + }, + "parent": { + "@id": "http://localhost:55001/plone", + "@type": "Plone Site", + "description": "", + "title": "Plone site" + }, + "previous_item": { + "@id": "http://localhost:55001/plone/collection", + "@type": "Collection", + "description": "This is a collection with two documents", + "title": "My Collection" + }, + "relatedItems": [], + "review_state": "private", + "rights": "", + "subjects": [], + "table_of_contents": null, + "text": null, + "title": "Document 1", + "version": "current", + "versioning_enabled": true + }, + { + "@components": { + "actions": { + "@id": "http://localhost:55001/plone/doc2/@actions" + }, + "breadcrumbs": { + "@id": "http://localhost:55001/plone/doc2/@breadcrumbs" + }, + "contextnavigation": { + "@id": "http://localhost:55001/plone/doc2/@contextnavigation" + }, + "navigation": { + "@id": "http://localhost:55001/plone/doc2/@navigation" + }, + "types": { + "@id": "http://localhost:55001/plone/doc2/@types" + }, + "workflow": { + "@id": "http://localhost:55001/plone/doc2/@workflow" + } + }, + "@id": "http://localhost:55001/plone/doc2", + "@type": "Document", + "UID": "SomeUUID000000000000000000000004", + "allow_discussion": false, + "changeNote": "", + "contributors": [], + "created": "1995-07-31T13:45:00", + "creators": [ + "test_user_1_" + ], + "description": "", + "effective": null, + "exclude_from_nav": false, + "expires": null, + "id": "doc2", + "is_folderish": false, + "language": "", + "layout": "document_view", + "lock": { + "locked": false, + "stealable": true + }, + "modified": "1995-07-31T17:30:00", + "next_item": {}, + "parent": { + "@id": "http://localhost:55001/plone", + "@type": "Plone Site", + "description": "", + "title": "Plone site" + }, + "previous_item": { + "@id": "http://localhost:55001/plone/doc1", + "@type": "Document", + "description": "", + "title": "Document 1" + }, + "relatedItems": [], + "review_state": "private", + "rights": "", + "subjects": [], + "table_of_contents": null, + "text": null, + "title": "Document 2", + "version": "current", + "versioning_enabled": true } - }, - "@id": "http://localhost:55001/plone/doc2", - "@type": "Document", - "UID": "SomeUUID000000000000000000000004", - "allow_discussion": false, - "changeNote": "", - "contributors": [], - "created": "1995-07-31T13:45:00", - "creators": [ - "test_user_1_" - ], - "description": "", - "effective": null, - "exclude_from_nav": false, - "expires": null, - "id": "doc2", - "is_folderish": false, - "language": "", - "layout": "document_view", - "lock": { - "locked": false, + ], + "items_total": 3, + "language": "", + "layout": "listing_view", + "limit": 1000, + "lock": { + "locked": false, "stealable": true - }, - "modified": "1995-07-31T17:30:00", - "next_item": {}, - "parent": { - "@id": "http://localhost:55001/plone", - "@type": "Plone Site", - "description": "", - "title": "Plone site" - }, - "previous_item": { - "@id": "http://localhost:55001/plone/doc1", - "@type": "Document", - "description": "", + }, + "modified": "1995-07-31T17:30:00", + "next_item": { + "@id": "http://localhost:55001/plone/doc1", + "@type": "Document", + "description": "", "title": "Document 1" - }, - "relatedItems": [], - "review_state": "private", - "rights": "", - "subjects": [], - "table_of_contents": null, - "text": null, - "title": "Document 2", - "version": "current", - "versioning_enabled": true - } - ], - "items_total": 3, - "language": "", - "layout": "listing_view", - "limit": 1000, - "lock": { - "locked": false, - "stealable": true - }, - "modified": "1995-07-31T17:30:00", - "next_item": { - "@id": "http://localhost:55001/plone/doc1", - "@type": "Document", - "description": "", - "title": "Document 1" - }, - "parent": { - "@id": "http://localhost:55001/plone", - "@type": "Plone Site", - "description": "", - "title": "Plone site" - }, - "previous_item": { - "@id": "http://localhost:55001/plone/front-page", - "@type": "Document", - "description": "Congratulations! You have successfully installed Plone.", - "title": "Welcome to Plone" - }, - "query": [ - { - "i": "portal_type", - "o": "plone.app.querystring.operation.string.is", - "v": "Document" - } - ], - "relatedItems": [], - "review_state": "private", - "rights": "", - "sort_on": null, - "sort_reversed": null, - "subjects": [], - "text": null, - "title": "My Collection", - "version": "current" -} \ No newline at end of file + }, + "parent": { + "@id": "http://localhost:55001/plone", + "@type": "Plone Site", + "description": "", + "title": "Plone site" + }, + "previous_item": { + "@id": "http://localhost:55001/plone/front-page", + "@type": "Document", + "description": "Congratulations! You have successfully installed Plone.", + "title": "Welcome to Plone" + }, + "query": [ + { + "i": "portal_type", + "o": "plone.app.querystring.operation.string.is", + "v": "Document" + } + ], + "relatedItems": [], + "review_state": "private", + "rights": "", + "sort_on": null, + "sort_reversed": null, + "subjects": [], + "text": null, + "title": "My Collection", + "version": "current" +} diff --git a/src/plone/restapi/tests/http-examples/comments_add_root.req b/src/plone/restapi/tests/http-examples/comments_add_root.req index 32c6d743b2..126ec500ec 100644 --- a/src/plone/restapi/tests/http-examples/comments_add_root.req +++ b/src/plone/restapi/tests/http-examples/comments_add_root.req @@ -5,4 +5,4 @@ Content-Type: application/json { "text": "My comment" -} \ No newline at end of file +} diff --git a/src/plone/restapi/tests/http-examples/comments_add_sub.req b/src/plone/restapi/tests/http-examples/comments_add_sub.req index fd53046cfa..2998304d70 100644 --- a/src/plone/restapi/tests/http-examples/comments_add_sub.req +++ b/src/plone/restapi/tests/http-examples/comments_add_sub.req @@ -5,4 +5,4 @@ Content-Type: application/json { "text": "My reply" -} \ No newline at end of file +} diff --git a/src/plone/restapi/tests/http-examples/comments_get.resp b/src/plone/restapi/tests/http-examples/comments_get.resp index e0bd1b1f27..851331ea1d 100644 --- a/src/plone/restapi/tests/http-examples/comments_get.resp +++ b/src/plone/restapi/tests/http-examples/comments_get.resp @@ -2,46 +2,46 @@ HTTP/1.1 200 OK Content-Type: application/json { - "@id": "http://localhost:55001/plone/front-page/@comments", - "items": [ - { - "@id": "http://localhost:55001/plone/front-page/@comments/1400000000000000", - "@parent": null, - "@type": "Discussion Item", - "author_image": null, - "author_name": null, - "author_username": null, - "comment_id": "1400000000000000", - "creation_date": "1995-07-31T13:45:00", - "in_reply_to": null, - "is_deletable": true, - "is_editable": true, - "modification_date": "1995-07-31T17:30:00", - "text": { - "data": "Comment 1", - "mime-type": "text/plain" - }, - "user_notification": null - }, - { - "@id": "http://localhost:55001/plone/front-page/@comments/1400000000000001", - "@parent": "http://localhost:55001/plone/front-page/@comments/1400000000000000", - "@type": "Discussion Item", - "author_image": null, - "author_name": null, - "author_username": null, - "comment_id": "1400000000000001", - "creation_date": "1995-07-31T13:45:00", - "in_reply_to": "1400000000000000", - "is_deletable": true, - "is_editable": true, - "modification_date": "1995-07-31T17:30:00", - "text": { - "data": "Comment 1.1", - "mime-type": "text/plain" - }, - "user_notification": null - } - ], - "items_total": 2 -} \ No newline at end of file + "@id": "http://localhost:55001/plone/front-page/@comments", + "items": [ + { + "@id": "http://localhost:55001/plone/front-page/@comments/1400000000000000", + "@parent": null, + "@type": "Discussion Item", + "author_image": null, + "author_name": null, + "author_username": null, + "comment_id": "1400000000000000", + "creation_date": "1995-07-31T13:45:00", + "in_reply_to": null, + "is_deletable": true, + "is_editable": true, + "modification_date": "1995-07-31T17:30:00", + "text": { + "data": "Comment 1", + "mime-type": "text/plain" + }, + "user_notification": null + }, + { + "@id": "http://localhost:55001/plone/front-page/@comments/1400000000000001", + "@parent": "http://localhost:55001/plone/front-page/@comments/1400000000000000", + "@type": "Discussion Item", + "author_image": null, + "author_name": null, + "author_username": null, + "comment_id": "1400000000000001", + "creation_date": "1995-07-31T13:45:00", + "in_reply_to": "1400000000000000", + "is_deletable": true, + "is_editable": true, + "modification_date": "1995-07-31T17:30:00", + "text": { + "data": "Comment 1.1", + "mime-type": "text/plain" + }, + "user_notification": null + } + ], + "items_total": 2 +} diff --git a/src/plone/restapi/tests/http-examples/comments_update.req b/src/plone/restapi/tests/http-examples/comments_update.req index a3f4476cf4..17c6bbaefa 100644 --- a/src/plone/restapi/tests/http-examples/comments_update.req +++ b/src/plone/restapi/tests/http-examples/comments_update.req @@ -5,4 +5,4 @@ Content-Type: application/json { "text": "My NEW comment" -} \ No newline at end of file +} diff --git a/src/plone/restapi/tests/http-examples/content_get.resp b/src/plone/restapi/tests/http-examples/content_get.resp index de36785c8f..561934faf5 100644 --- a/src/plone/restapi/tests/http-examples/content_get.resp +++ b/src/plone/restapi/tests/http-examples/content_get.resp @@ -2,70 +2,70 @@ HTTP/1.1 200 OK 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" - }, - "contextnavigation": { - "@id": "http://localhost:55001/plone/folder/my-document/@contextnavigation" - }, - "navigation": { - "@id": "http://localhost:55001/plone/folder/my-document/@navigation" - }, - "types": { - "@id": "http://localhost:55001/plone/folder/my-document/@types" - }, - "workflow": { - "@id": "http://localhost:55001/plone/folder/my-document/@workflow" - } - }, - "@id": "http://localhost:55001/plone/folder/my-document", - "@type": "Document", - "UID": "SomeUUID000000000000000000000005", - "allow_discussion": false, - "changeNote": "", - "contributors": [], - "created": "1995-07-31T13:45:00", - "creators": [ - "admin" - ], - "description": "", - "effective": null, - "exclude_from_nav": false, - "expires": null, - "id": "my-document", - "is_folderish": false, - "language": "", - "layout": "document_view", - "lock": { - "locked": false, - "stealable": true - }, - "modified": "1995-07-31T17:30:00", - "next_item": {}, - "parent": { - "@id": "http://localhost:55001/plone/folder", - "@type": "Folder", - "description": "This is a folder with two documents", - "review_state": "private", - "title": "My Folder" - }, - "previous_item": { - "@id": "http://localhost:55001/plone/folder/doc2", - "@type": "Document", - "description": "", - "title": "A document within a folder" - }, - "relatedItems": [], - "review_state": "private", - "rights": "", - "subjects": [], - "table_of_contents": null, - "text": null, - "title": "My Document", - "version": "current", - "versioning_enabled": true -} \ No newline at end of file + "@components": { + "actions": { + "@id": "http://localhost:55001/plone/folder/my-document/@actions" + }, + "breadcrumbs": { + "@id": "http://localhost:55001/plone/folder/my-document/@breadcrumbs" + }, + "contextnavigation": { + "@id": "http://localhost:55001/plone/folder/my-document/@contextnavigation" + }, + "navigation": { + "@id": "http://localhost:55001/plone/folder/my-document/@navigation" + }, + "types": { + "@id": "http://localhost:55001/plone/folder/my-document/@types" + }, + "workflow": { + "@id": "http://localhost:55001/plone/folder/my-document/@workflow" + } + }, + "@id": "http://localhost:55001/plone/folder/my-document", + "@type": "Document", + "UID": "SomeUUID000000000000000000000005", + "allow_discussion": false, + "changeNote": "", + "contributors": [], + "created": "1995-07-31T13:45:00", + "creators": [ + "admin" + ], + "description": "", + "effective": null, + "exclude_from_nav": false, + "expires": null, + "id": "my-document", + "is_folderish": false, + "language": "", + "layout": "document_view", + "lock": { + "locked": false, + "stealable": true + }, + "modified": "1995-07-31T17:30:00", + "next_item": {}, + "parent": { + "@id": "http://localhost:55001/plone/folder", + "@type": "Folder", + "description": "This is a folder with two documents", + "review_state": "private", + "title": "My Folder" + }, + "previous_item": { + "@id": "http://localhost:55001/plone/folder/doc2", + "@type": "Document", + "description": "", + "title": "A document within a folder" + }, + "relatedItems": [], + "review_state": "private", + "rights": "", + "subjects": [], + "table_of_contents": null, + "text": null, + "title": "My Document", + "version": "current", + "versioning_enabled": true +} diff --git a/src/plone/restapi/tests/http-examples/content_get_folder.resp b/src/plone/restapi/tests/http-examples/content_get_folder.resp index 7ed28acc0d..3366895925 100644 --- a/src/plone/restapi/tests/http-examples/content_get_folder.resp +++ b/src/plone/restapi/tests/http-examples/content_get_folder.resp @@ -2,93 +2,93 @@ HTTP/1.1 200 OK Content-Type: application/json { - "@components": { - "actions": { - "@id": "http://localhost:55001/plone/folder/@actions" - }, - "breadcrumbs": { - "@id": "http://localhost:55001/plone/folder/@breadcrumbs" - }, - "contextnavigation": { - "@id": "http://localhost:55001/plone/folder/@contextnavigation" - }, - "navigation": { - "@id": "http://localhost:55001/plone/folder/@navigation" - }, - "types": { - "@id": "http://localhost:55001/plone/folder/@types" - }, - "workflow": { - "@id": "http://localhost:55001/plone/folder/@workflow" - } - }, - "@id": "http://localhost:55001/plone/folder", - "@type": "Folder", - "UID": "SomeUUID000000000000000000000002", - "allow_discussion": false, - "contributors": [], - "created": "1995-07-31T13:45:00", - "creators": [ - "test_user_1_" - ], - "description": "This is a folder with two documents", - "effective": null, - "exclude_from_nav": false, - "expires": null, - "id": "folder", - "is_folderish": true, - "items": [ - { - "@id": "http://localhost:55001/plone/folder/doc1", - "@type": "Document", - "Creator": "test_user_1_", - "UID": "SomeUUID000000000000000000000003", - "description": "", - "review_state": "private", - "title": "A document within a folder" - }, - { - "@id": "http://localhost:55001/plone/folder/doc2", - "@type": "Document", - "Creator": "test_user_1_", - "UID": "SomeUUID000000000000000000000004", - "description": "", - "review_state": "private", - "title": "A document within a folder" - }, - { - "@id": "http://localhost:55001/plone/folder/my-document", - "@type": "Document", - "Creator": "admin", - "UID": "SomeUUID000000000000000000000005", - "description": "", - "review_state": "private", - "title": "My Document" - } - ], - "items_total": 3, - "language": "", - "layout": "listing_view", - "lock": {}, - "modified": "1995-07-31T17:30:00", - "nextPreviousEnabled": false, - "next_item": {}, - "parent": { - "@id": "http://localhost:55001/plone", - "@type": "Plone Site", - "description": "", - "title": "Plone site" - }, - "previous_item": { - "@id": "http://localhost:55001/plone/front-page", - "@type": "Document", - "description": "Congratulations! You have successfully installed Plone.", - "title": "Welcome to Plone" - }, - "relatedItems": [], - "review_state": "private", - "rights": "", - "subjects": [], - "title": "My Folder", - "version": "current" -} \ No newline at end of file + "@components": { + "actions": { + "@id": "http://localhost:55001/plone/folder/@actions" + }, + "breadcrumbs": { + "@id": "http://localhost:55001/plone/folder/@breadcrumbs" + }, + "contextnavigation": { + "@id": "http://localhost:55001/plone/folder/@contextnavigation" + }, + "navigation": { + "@id": "http://localhost:55001/plone/folder/@navigation" + }, + "types": { + "@id": "http://localhost:55001/plone/folder/@types" + }, + "workflow": { + "@id": "http://localhost:55001/plone/folder/@workflow" + } + }, + "@id": "http://localhost:55001/plone/folder", + "@type": "Folder", + "UID": "SomeUUID000000000000000000000002", + "allow_discussion": false, + "contributors": [], + "created": "1995-07-31T13:45:00", + "creators": [ + "test_user_1_" + ], + "description": "This is a folder with two documents", + "effective": null, + "exclude_from_nav": false, + "expires": null, + "id": "folder", + "is_folderish": true, + "items": [ + { + "@id": "http://localhost:55001/plone/folder/doc1", + "@type": "Document", + "Creator": "test_user_1_", + "UID": "SomeUUID000000000000000000000003", + "description": "", + "review_state": "private", + "title": "A document within a folder" + }, + { + "@id": "http://localhost:55001/plone/folder/doc2", + "@type": "Document", + "Creator": "test_user_1_", + "UID": "SomeUUID000000000000000000000004", + "description": "", + "review_state": "private", + "title": "A document within a folder" + }, + { + "@id": "http://localhost:55001/plone/folder/my-document", + "@type": "Document", + "Creator": "admin", + "UID": "SomeUUID000000000000000000000005", + "description": "", + "review_state": "private", + "title": "My Document" + } + ], + "items_total": 3, + "language": "", + "layout": "listing_view", + "lock": {}, + "modified": "1995-07-31T17:30:00", + "nextPreviousEnabled": false, + "next_item": {}, + "parent": { + "@id": "http://localhost:55001/plone", + "@type": "Plone Site", + "description": "", + "title": "Plone site" + }, + "previous_item": { + "@id": "http://localhost:55001/plone/front-page", + "@type": "Document", + "description": "Congratulations! You have successfully installed Plone.", + "title": "Welcome to Plone" + }, + "relatedItems": [], + "review_state": "private", + "rights": "", + "subjects": [], + "title": "My Folder", + "version": "current" +} diff --git a/src/plone/restapi/tests/http-examples/content_patch.req b/src/plone/restapi/tests/http-examples/content_patch.req index 193a9023af..17f1e8362b 100644 --- a/src/plone/restapi/tests/http-examples/content_patch.req +++ b/src/plone/restapi/tests/http-examples/content_patch.req @@ -5,4 +5,4 @@ Content-Type: application/json { "title": "My New Document Title" -} \ No newline at end of file +} diff --git a/src/plone/restapi/tests/http-examples/content_patch_representation.req b/src/plone/restapi/tests/http-examples/content_patch_representation.req index 8a10eac8b4..5bc0fbfcf1 100644 --- a/src/plone/restapi/tests/http-examples/content_patch_representation.req +++ b/src/plone/restapi/tests/http-examples/content_patch_representation.req @@ -6,4 +6,4 @@ Content-Type: application/json { "title": "My New Document Title" -} \ No newline at end of file +} diff --git a/src/plone/restapi/tests/http-examples/content_patch_representation.resp b/src/plone/restapi/tests/http-examples/content_patch_representation.resp index 16fae7d181..6c88900792 100644 --- a/src/plone/restapi/tests/http-examples/content_patch_representation.resp +++ b/src/plone/restapi/tests/http-examples/content_patch_representation.resp @@ -2,70 +2,70 @@ HTTP/1.1 200 OK 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" - }, - "contextnavigation": { - "@id": "http://localhost:55001/plone/folder/my-document/@contextnavigation" - }, - "navigation": { - "@id": "http://localhost:55001/plone/folder/my-document/@navigation" - }, - "types": { - "@id": "http://localhost:55001/plone/folder/my-document/@types" - }, - "workflow": { - "@id": "http://localhost:55001/plone/folder/my-document/@workflow" - } - }, - "@id": "http://localhost:55001/plone/folder/my-document", - "@type": "Document", - "UID": "SomeUUID000000000000000000000005", - "allow_discussion": false, - "changeNote": "", - "contributors": [], - "created": "1995-07-31T13:45:00", - "creators": [ - "admin" - ], - "description": "", - "effective": null, - "exclude_from_nav": false, - "expires": null, - "id": "my-document", - "is_folderish": false, - "language": "", - "layout": "document_view", - "lock": { - "locked": false, - "stealable": true - }, - "modified": "1995-07-31T17:30:00", - "next_item": {}, - "parent": { - "@id": "http://localhost:55001/plone/folder", - "@type": "Folder", - "description": "This is a folder with two documents", - "review_state": "private", - "title": "My Folder" - }, - "previous_item": { - "@id": "http://localhost:55001/plone/folder/doc2", - "@type": "Document", - "description": "", - "title": "A document within a folder" - }, - "relatedItems": [], - "review_state": "private", - "rights": "", - "subjects": [], - "table_of_contents": null, - "text": null, - "title": "My New Document Title", - "version": "current", - "versioning_enabled": true -} \ No newline at end of file + "@components": { + "actions": { + "@id": "http://localhost:55001/plone/folder/my-document/@actions" + }, + "breadcrumbs": { + "@id": "http://localhost:55001/plone/folder/my-document/@breadcrumbs" + }, + "contextnavigation": { + "@id": "http://localhost:55001/plone/folder/my-document/@contextnavigation" + }, + "navigation": { + "@id": "http://localhost:55001/plone/folder/my-document/@navigation" + }, + "types": { + "@id": "http://localhost:55001/plone/folder/my-document/@types" + }, + "workflow": { + "@id": "http://localhost:55001/plone/folder/my-document/@workflow" + } + }, + "@id": "http://localhost:55001/plone/folder/my-document", + "@type": "Document", + "UID": "SomeUUID000000000000000000000005", + "allow_discussion": false, + "changeNote": "", + "contributors": [], + "created": "1995-07-31T13:45:00", + "creators": [ + "admin" + ], + "description": "", + "effective": null, + "exclude_from_nav": false, + "expires": null, + "id": "my-document", + "is_folderish": false, + "language": "", + "layout": "document_view", + "lock": { + "locked": false, + "stealable": true + }, + "modified": "1995-07-31T17:30:00", + "next_item": {}, + "parent": { + "@id": "http://localhost:55001/plone/folder", + "@type": "Folder", + "description": "This is a folder with two documents", + "review_state": "private", + "title": "My Folder" + }, + "previous_item": { + "@id": "http://localhost:55001/plone/folder/doc2", + "@type": "Document", + "description": "", + "title": "A document within a folder" + }, + "relatedItems": [], + "review_state": "private", + "rights": "", + "subjects": [], + "table_of_contents": null, + "text": null, + "title": "My New Document Title", + "version": "current", + "versioning_enabled": true +} diff --git a/src/plone/restapi/tests/http-examples/content_post.req b/src/plone/restapi/tests/http-examples/content_post.req index 5794eb8db9..561ce4260a 100644 --- a/src/plone/restapi/tests/http-examples/content_post.req +++ b/src/plone/restapi/tests/http-examples/content_post.req @@ -6,4 +6,4 @@ Content-Type: application/json { "@type": "Document", "title": "My Document" -} \ No newline at end of file +} diff --git a/src/plone/restapi/tests/http-examples/content_post.resp b/src/plone/restapi/tests/http-examples/content_post.resp index c927a09869..febf385b50 100644 --- a/src/plone/restapi/tests/http-examples/content_post.resp +++ b/src/plone/restapi/tests/http-examples/content_post.resp @@ -3,70 +3,70 @@ Content-Type: application/json 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" - }, - "contextnavigation": { - "@id": "http://localhost:55001/plone/folder/my-document/@contextnavigation" - }, - "navigation": { - "@id": "http://localhost:55001/plone/folder/my-document/@navigation" - }, - "types": { - "@id": "http://localhost:55001/plone/folder/my-document/@types" - }, - "workflow": { - "@id": "http://localhost:55001/plone/folder/my-document/@workflow" - } - }, - "@id": "http://localhost:55001/plone/folder/my-document", - "@type": "Document", - "UID": "SomeUUID000000000000000000000005", - "allow_discussion": false, - "changeNote": "", - "contributors": [], - "created": "1995-07-31T13:45:00", - "creators": [ - "admin" - ], - "description": "", - "effective": null, - "exclude_from_nav": false, - "expires": null, - "id": "my-document", - "is_folderish": false, - "language": "", - "layout": "document_view", - "lock": { - "locked": false, - "stealable": true - }, - "modified": "1995-07-31T17:30:00", - "next_item": {}, - "parent": { - "@id": "http://localhost:55001/plone/folder", - "@type": "Folder", - "description": "This is a folder with two documents", - "review_state": "private", - "title": "My Folder" - }, - "previous_item": { - "@id": "http://localhost:55001/plone/folder/doc2", - "@type": "Document", - "description": "", - "title": "A document within a folder" - }, - "relatedItems": [], - "review_state": "private", - "rights": "", - "subjects": [], - "table_of_contents": null, - "text": null, - "title": "My Document", - "version": "current", - "versioning_enabled": true -} \ No newline at end of file + "@components": { + "actions": { + "@id": "http://localhost:55001/plone/folder/my-document/@actions" + }, + "breadcrumbs": { + "@id": "http://localhost:55001/plone/folder/my-document/@breadcrumbs" + }, + "contextnavigation": { + "@id": "http://localhost:55001/plone/folder/my-document/@contextnavigation" + }, + "navigation": { + "@id": "http://localhost:55001/plone/folder/my-document/@navigation" + }, + "types": { + "@id": "http://localhost:55001/plone/folder/my-document/@types" + }, + "workflow": { + "@id": "http://localhost:55001/plone/folder/my-document/@workflow" + } + }, + "@id": "http://localhost:55001/plone/folder/my-document", + "@type": "Document", + "UID": "SomeUUID000000000000000000000005", + "allow_discussion": false, + "changeNote": "", + "contributors": [], + "created": "1995-07-31T13:45:00", + "creators": [ + "admin" + ], + "description": "", + "effective": null, + "exclude_from_nav": false, + "expires": null, + "id": "my-document", + "is_folderish": false, + "language": "", + "layout": "document_view", + "lock": { + "locked": false, + "stealable": true + }, + "modified": "1995-07-31T17:30:00", + "next_item": {}, + "parent": { + "@id": "http://localhost:55001/plone/folder", + "@type": "Folder", + "description": "This is a folder with two documents", + "review_state": "private", + "title": "My Folder" + }, + "previous_item": { + "@id": "http://localhost:55001/plone/folder/doc2", + "@type": "Document", + "description": "", + "title": "A document within a folder" + }, + "relatedItems": [], + "review_state": "private", + "rights": "", + "subjects": [], + "table_of_contents": null, + "text": null, + "title": "My Document", + "version": "current", + "versioning_enabled": true +} diff --git a/src/plone/restapi/tests/http-examples/contextnavigation.resp b/src/plone/restapi/tests/http-examples/contextnavigation.resp index e4c2719e9b..d5f8f0acf7 100644 --- a/src/plone/restapi/tests/http-examples/contextnavigation.resp +++ b/src/plone/restapi/tests/http-examples/contextnavigation.resp @@ -2,56 +2,56 @@ HTTP/1.1 200 OK Content-Type: application/json { - "@id": "http://localhost:55001/plone/folder/@contextnavigation", - "available": true, - "has_custom_name": false, - "items": [ - { - "@id": "http://localhost:55001/plone/folder/subfolder1", - "description": "", - "href": "http://localhost:55001/plone/folder/subfolder1", - "icon": "", - "is_current": false, - "is_folderish": true, - "is_in_path": false, - "items": [], - "normalized_id": "subfolder1", - "review_state": "private", - "thumb": "", - "title": "SubFolder 1", - "type": "folder" - }, - { - "@id": "http://localhost:55001/plone/folder/subfolder2", - "description": "", - "href": "http://localhost:55001/plone/folder/subfolder2", - "icon": "", - "is_current": false, - "is_folderish": true, - "is_in_path": false, - "items": [], - "normalized_id": "subfolder2", - "review_state": "private", - "thumb": "", - "title": "SubFolder 2", - "type": "folder" - }, - { - "@id": "http://localhost:55001/plone/folder/doc1", - "description": "", - "href": "http://localhost:55001/plone/folder/doc1", - "icon": "", - "is_current": false, - "is_folderish": false, - "is_in_path": false, - "items": [], - "normalized_id": "doc1", - "review_state": "private", - "thumb": "", - "title": "A document", - "type": "document" - } - ], - "title": "Navigation", - "url": "http://localhost:55001/plone/sitemap" -} \ No newline at end of file + "@id": "http://localhost:55001/plone/folder/@contextnavigation", + "available": true, + "has_custom_name": false, + "items": [ + { + "@id": "http://localhost:55001/plone/folder/subfolder1", + "description": "", + "href": "http://localhost:55001/plone/folder/subfolder1", + "icon": "", + "is_current": false, + "is_folderish": true, + "is_in_path": false, + "items": [], + "normalized_id": "subfolder1", + "review_state": "private", + "thumb": "", + "title": "SubFolder 1", + "type": "folder" + }, + { + "@id": "http://localhost:55001/plone/folder/subfolder2", + "description": "", + "href": "http://localhost:55001/plone/folder/subfolder2", + "icon": "", + "is_current": false, + "is_folderish": true, + "is_in_path": false, + "items": [], + "normalized_id": "subfolder2", + "review_state": "private", + "thumb": "", + "title": "SubFolder 2", + "type": "folder" + }, + { + "@id": "http://localhost:55001/plone/folder/doc1", + "description": "", + "href": "http://localhost:55001/plone/folder/doc1", + "icon": "", + "is_current": false, + "is_folderish": false, + "is_in_path": false, + "items": [], + "normalized_id": "doc1", + "review_state": "private", + "thumb": "", + "title": "A document", + "type": "document" + } + ], + "title": "Navigation", + "url": "http://localhost:55001/plone/sitemap" +} diff --git a/src/plone/restapi/tests/http-examples/controlpanels_get.resp b/src/plone/restapi/tests/http-examples/controlpanels_get.resp index 8dd0e609c7..8aee73df06 100644 --- a/src/plone/restapi/tests/http-examples/controlpanels_get.resp +++ b/src/plone/restapi/tests/http-examples/controlpanels_get.resp @@ -2,64 +2,64 @@ HTTP/1.1 200 OK Content-Type: application/json [ - { - "@id": "http://localhost:55001/plone/@controlpanels/date-and-time", - "group": "General", - "title": "Date and Time" - }, - { - "@id": "http://localhost:55001/plone/@controlpanels/language", - "group": "General", - "title": "Language" - }, - { - "@id": "http://localhost:55001/plone/@controlpanels/mail", - "group": "General", - "title": "Mail" - }, - { - "@id": "http://localhost:55001/plone/@controlpanels/navigation", - "group": "General", - "title": "Navigation" - }, - { - "@id": "http://localhost:55001/plone/@controlpanels/search", - "group": "General", - "title": "Search" - }, - { - "@id": "http://localhost:55001/plone/@controlpanels/site", - "group": "General", - "title": "Site" - }, - { - "@id": "http://localhost:55001/plone/@controlpanels/socialmedia", - "group": "General", - "title": "Social Media" - }, - { - "@id": "http://localhost:55001/plone/@controlpanels/dexterity-types", - "group": "Content", - "title": "Dexterity Content Types" - }, - { - "@id": "http://localhost:55001/plone/@controlpanels/editing", - "group": "Content", - "title": "Editing" - }, - { - "@id": "http://localhost:55001/plone/@controlpanels/imaging", - "group": "Content", - "title": "Image Handling" - }, - { - "@id": "http://localhost:55001/plone/@controlpanels/markup", - "group": "Content", - "title": "Markup" - }, - { - "@id": "http://localhost:55001/plone/@controlpanels/security", - "group": "Security", - "title": "Security" - } -] \ No newline at end of file + { + "@id": "http://localhost:55001/plone/@controlpanels/date-and-time", + "group": "General", + "title": "Date and Time" + }, + { + "@id": "http://localhost:55001/plone/@controlpanels/language", + "group": "General", + "title": "Language" + }, + { + "@id": "http://localhost:55001/plone/@controlpanels/mail", + "group": "General", + "title": "Mail" + }, + { + "@id": "http://localhost:55001/plone/@controlpanels/navigation", + "group": "General", + "title": "Navigation" + }, + { + "@id": "http://localhost:55001/plone/@controlpanels/search", + "group": "General", + "title": "Search" + }, + { + "@id": "http://localhost:55001/plone/@controlpanels/site", + "group": "General", + "title": "Site" + }, + { + "@id": "http://localhost:55001/plone/@controlpanels/socialmedia", + "group": "General", + "title": "Social Media" + }, + { + "@id": "http://localhost:55001/plone/@controlpanels/dexterity-types", + "group": "Content", + "title": "Dexterity Content Types" + }, + { + "@id": "http://localhost:55001/plone/@controlpanels/editing", + "group": "Content", + "title": "Editing" + }, + { + "@id": "http://localhost:55001/plone/@controlpanels/imaging", + "group": "Content", + "title": "Image Handling" + }, + { + "@id": "http://localhost:55001/plone/@controlpanels/markup", + "group": "Content", + "title": "Markup" + }, + { + "@id": "http://localhost:55001/plone/@controlpanels/security", + "group": "Security", + "title": "Security" + } +] diff --git a/src/plone/restapi/tests/http-examples/controlpanels_get_dexterity.resp b/src/plone/restapi/tests/http-examples/controlpanels_get_dexterity.resp index 54995d1b48..49f309b7e8 100644 --- a/src/plone/restapi/tests/http-examples/controlpanels_get_dexterity.resp +++ b/src/plone/restapi/tests/http-examples/controlpanels_get_dexterity.resp @@ -2,97 +2,97 @@ HTTP/1.1 200 OK Content-Type: application/json { - "@id": "http://localhost:55001/plone/@controlpanels/dexterity-types", - "data": {}, - "group": "Content", - "items": [ - { - "@id": "http://localhost:55001/plone/@controlpanels/dexterity-types/Collection", - "@type": "Collection", - "count": 0, - "description": "", - "id": "Collection", - "meta_type": "Dexterity FTI", - "title": "Collection" - }, - { - "@id": "http://localhost:55001/plone/@controlpanels/dexterity-types/Document", - "@type": "Document", - "count": 0, - "description": "", - "id": "Document", - "meta_type": "Dexterity FTI", - "title": "Page" - }, - { - "@id": "http://localhost:55001/plone/@controlpanels/dexterity-types/Folder", - "@type": "Folder", - "count": 0, - "description": "", - "id": "Folder", - "meta_type": "Dexterity FTI", - "title": "Folder" - }, - { - "@id": "http://localhost:55001/plone/@controlpanels/dexterity-types/Link", - "@type": "Link", - "count": 0, - "description": "", - "id": "Link", - "meta_type": "Dexterity FTI", - "title": "Link" - }, - { - "@id": "http://localhost:55001/plone/@controlpanels/dexterity-types/File", - "@type": "File", - "count": 0, - "description": "Lets you upload a file to the site.", - "id": "File", - "meta_type": "Dexterity FTI", - "title": "File" - }, - { - "@id": "http://localhost:55001/plone/@controlpanels/dexterity-types/Image", - "@type": "Image", - "count": 0, - "description": "Images can be referenced in pages or displayed in an album.", - "id": "Image", - "meta_type": "Dexterity FTI", - "title": "Image" - }, - { - "@id": "http://localhost:55001/plone/@controlpanels/dexterity-types/News Item", - "@type": "News Item", - "count": 0, - "description": "", - "id": "News Item", - "meta_type": "Dexterity FTI", - "title": "News Item" - }, - { - "@id": "http://localhost:55001/plone/@controlpanels/dexterity-types/Event", - "@type": "Event", - "count": 0, - "description": "Events can be shown in calendars.", - "id": "Event", - "meta_type": "Dexterity FTI", - "title": "Event" - }, - { - "@id": "http://localhost:55001/plone/@controlpanels/dexterity-types/DXTestDocument", - "@type": "DXTestDocument", - "count": 0, - "description": "", - "id": "DXTestDocument", - "meta_type": "Dexterity FTI", - "title": "DX Test Document" - } - ], - "schema": { - "fieldsets": [], - "properties": {}, - "required": [], - "type": "object" - }, - "title": "Dexterity Content Types" -} \ No newline at end of file + "@id": "http://localhost:55001/plone/@controlpanels/dexterity-types", + "data": {}, + "group": "Content", + "items": [ + { + "@id": "http://localhost:55001/plone/@controlpanels/dexterity-types/Collection", + "@type": "Collection", + "count": 0, + "description": "", + "id": "Collection", + "meta_type": "Dexterity FTI", + "title": "Collection" + }, + { + "@id": "http://localhost:55001/plone/@controlpanels/dexterity-types/Document", + "@type": "Document", + "count": 0, + "description": "", + "id": "Document", + "meta_type": "Dexterity FTI", + "title": "Page" + }, + { + "@id": "http://localhost:55001/plone/@controlpanels/dexterity-types/Folder", + "@type": "Folder", + "count": 0, + "description": "", + "id": "Folder", + "meta_type": "Dexterity FTI", + "title": "Folder" + }, + { + "@id": "http://localhost:55001/plone/@controlpanels/dexterity-types/Link", + "@type": "Link", + "count": 0, + "description": "", + "id": "Link", + "meta_type": "Dexterity FTI", + "title": "Link" + }, + { + "@id": "http://localhost:55001/plone/@controlpanels/dexterity-types/File", + "@type": "File", + "count": 0, + "description": "Lets you upload a file to the site.", + "id": "File", + "meta_type": "Dexterity FTI", + "title": "File" + }, + { + "@id": "http://localhost:55001/plone/@controlpanels/dexterity-types/Image", + "@type": "Image", + "count": 0, + "description": "Images can be referenced in pages or displayed in an album.", + "id": "Image", + "meta_type": "Dexterity FTI", + "title": "Image" + }, + { + "@id": "http://localhost:55001/plone/@controlpanels/dexterity-types/News Item", + "@type": "News Item", + "count": 0, + "description": "", + "id": "News Item", + "meta_type": "Dexterity FTI", + "title": "News Item" + }, + { + "@id": "http://localhost:55001/plone/@controlpanels/dexterity-types/Event", + "@type": "Event", + "count": 0, + "description": "Events can be shown in calendars.", + "id": "Event", + "meta_type": "Dexterity FTI", + "title": "Event" + }, + { + "@id": "http://localhost:55001/plone/@controlpanels/dexterity-types/DXTestDocument", + "@type": "DXTestDocument", + "count": 0, + "description": "", + "id": "DXTestDocument", + "meta_type": "Dexterity FTI", + "title": "DX Test Document" + } + ], + "schema": { + "fieldsets": [], + "properties": {}, + "required": [], + "type": "object" + }, + "title": "Dexterity Content Types" +} diff --git a/src/plone/restapi/tests/http-examples/controlpanels_get_dexterity_item.resp b/src/plone/restapi/tests/http-examples/controlpanels_get_dexterity_item.resp index 7a732e207e..a7a986395e 100644 --- a/src/plone/restapi/tests/http-examples/controlpanels_get_dexterity_item.resp +++ b/src/plone/restapi/tests/http-examples/controlpanels_get_dexterity_item.resp @@ -2,356 +2,356 @@ HTTP/1.1 200 OK Content-Type: application/json { - "@id": "http://localhost:55001/plone/@controlpanels/dexterity-types/my_custom_content_type", - "data": { - "allowed_content_types": [], - "description": "A custom content-type", - "filter_content_types": true, - "plone.allowdiscussion": false, - "plone.basic": false, - "plone.categorization": false, - "plone.collection": false, - "plone.constraintypes": false, - "plone.dublincore": true, - "plone.eventattendees": false, - "plone.eventbasic": false, - "plone.eventcontact": false, - "plone.eventlocation": false, - "plone.eventrecurrence": false, - "plone.excludefromnavigation": false, - "plone.leadimage": false, - "plone.locking": false, - "plone.namefromfilename": false, - "plone.namefromtitle": true, - "plone.navigationroot": false, - "plone.nextpreviousenabled": false, - "plone.nextprevioustoggle": false, - "plone.ownership": false, - "plone.publication": false, - "plone.relateditems": false, - "plone.restapi.tests.dxtypes.ITestAnnotationsBehavior": false, - "plone.restapi.tests.dxtypes.ITestBehavior": false, - "plone.richtext": false, - "plone.shortname": false, - "plone.tableofcontents": false, - "plone.thumb_icon": false, - "plone.translatable": false, - "plone.versioning": false, - "title": "My Custom Content Type", - "volto.blocks": false - }, - "description": "A custom content-type", - "group": "Content", - "items": [], - "schema": { - "fieldsets": [ - { - "behavior": "plone", - "fields": [ - "title", - "description", - "allowed_content_types", - "filter_content_types" - ], - "id": "default", - "title": "Default" - }, - { - "behavior": "plone", - "fields": [ - "plone.allowdiscussion", - "plone.basic", - "volto.blocks", - "plone.categorization", - "plone.collection", - "plone.publication", - "plone.dublincore", - "plone.eventattendees", - "plone.eventbasic", - "plone.eventcontact", - "plone.eventlocation", - "plone.eventrecurrence", - "plone.excludefromnavigation", - "plone.constraintypes", - "plone.leadimage", - "plone.locking", - "plone.translatable", - "plone.namefromfilename", - "plone.namefromtitle", - "plone.navigationroot", - "plone.nextpreviousenabled", - "plone.nextprevioustoggle", - "plone.ownership", - "plone.relateditems", - "plone.richtext", - "plone.shortname", - "plone.tableofcontents", - "plone.restapi.tests.dxtypes.ITestAnnotationsBehavior", - "plone.restapi.tests.dxtypes.ITestBehavior", - "plone.thumb_icon", - "plone.versioning" - ], - "id": "behaviors", - "title": "Behaviors" - } - ], - "properties": { - "allowed_content_types": { - "additionalItems": true, - "description": "", - "factory": "Multiple Choice", - "items": { - "description": "", - "factory": "Choice", - "title": "", - "type": "string", - "vocabulary": { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.ReallyUserFriendlyTypes" - } - }, - "title": "Allowed Content Types", - "type": "array", - "uniqueItems": true - }, - "description": { - "description": "", - "factory": "Text", - "title": "Description", - "type": "string", - "widget": "textarea" - }, - "filter_content_types": { - "choices": [ - [ - "none", - null - ], - [ - "all", - null - ], - [ - "some", - null - ] - ], - "default": "none", - "description": "Items of this type can act as a folder containing other items. What content types should be allowed inside?", - "enum": [ - "none", - "all", - "some" - ], - "enumNames": [ - null, - null, - null - ], - "factory": "Choice", - "title": "Filter Contained Types", - "type": "string", - "vocabulary": { - "@id": "http://localhost:55001/plone/@sources/filter_content_types" - } - }, - "plone.allowdiscussion": { - "description": "Allow discussion on this item", - "factory": "Yes/No", - "title": "Allow discussion", - "type": "boolean" - }, - "plone.basic": { - "description": "Adds title and description fields.", - "factory": "Yes/No", - "title": "Basic metadata", - "type": "boolean" - }, - "plone.categorization": { - "description": "Adds keywords and language fields.", - "factory": "Yes/No", - "title": "Categorization", - "type": "boolean" - }, - "plone.collection": { - "description": "Adds collection behavior", - "factory": "Yes/No", - "title": "Collection", - "type": "boolean" - }, - "plone.constraintypes": { - "description": "Restrict the content types that can be added to folderish content", - "factory": "Yes/No", - "title": "Folder Addable Constrains", - "type": "boolean" - }, - "plone.dublincore": { - "description": "Adds standard metadata fields (equals Basic metadata + Categorization + Effective range + Ownership)", - "factory": "Yes/No", - "title": "Dublin Core metadata", - "type": "boolean" - }, - "plone.eventattendees": { - "description": "Attendees extension for Events.", - "factory": "Yes/No", - "title": "Event Attendees", - "type": "boolean" - }, - "plone.eventbasic": { - "description": "Basic Event schema.", - "factory": "Yes/No", - "title": "Event Basic", - "type": "boolean" - }, - "plone.eventcontact": { - "description": "Contact extension for Events.", - "factory": "Yes/No", - "title": "Event Contact", - "type": "boolean" - }, - "plone.eventlocation": { - "description": "Location extension for Events.", - "factory": "Yes/No", - "title": "Event Location", - "type": "boolean" - }, - "plone.eventrecurrence": { - "description": "Recurrence extension for Events.", - "factory": "Yes/No", - "title": "Event Recurrence", - "type": "boolean" - }, - "plone.excludefromnavigation": { - "description": "Allow items to be excluded from navigation", - "factory": "Yes/No", - "title": "Exclude From navigation", - "type": "boolean" - }, - "plone.leadimage": { - "description": "Adds image and image caption fields", - "factory": "Yes/No", - "title": "Lead Image", - "type": "boolean" - }, - "plone.locking": { - "description": "Locking support for dexterity", - "factory": "Yes/No", - "title": "Locking", - "type": "boolean" - }, - "plone.namefromfilename": { - "description": "Automatically generate short URL name for content based on its primary field file name", - "factory": "Yes/No", - "title": "Name from file name", - "type": "boolean" - }, - "plone.namefromtitle": { - "description": "Automatically generate short URL name for content based on its initial title", - "factory": "Yes/No", - "title": "Name from title", - "type": "boolean" - }, - "plone.navigationroot": { - "description": "Make all items of this type a navigation root", - "factory": "Yes/No", - "title": "Navigation root", - "type": "boolean" - }, - "plone.nextpreviousenabled": { - "description": "Enable next previous navigation for all items of this type", - "factory": "Yes/No", - "title": "Next previous navigation", - "type": "boolean" - }, - "plone.nextprevioustoggle": { - "description": "Allow items to have next previous navigation enabled", - "factory": "Yes/No", - "title": "Next previous navigation toggle", - "type": "boolean" - }, - "plone.ownership": { - "description": "Adds creator, contributor, and rights fields.", - "factory": "Yes/No", - "title": "Ownership", - "type": "boolean" - }, - "plone.publication": { - "description": "Adds effective date and expiration date fields.", - "factory": "Yes/No", - "title": "Date range", - "type": "boolean" - }, - "plone.relateditems": { - "description": "Adds the ability to assign related items", - "factory": "Yes/No", - "title": "Related items", - "type": "boolean" - }, - "plone.restapi.tests.dxtypes.ITestAnnotationsBehavior": { - "description": "Schema-only behavior using annotations", - "factory": "Yes/No", - "title": "Test Annotations Behavior", - "type": "boolean" - }, - "plone.restapi.tests.dxtypes.ITestBehavior": { - "description": "Schema-only behavior using attributes", - "factory": "Yes/No", - "title": "Test Behavior", - "type": "boolean" - }, - "plone.richtext": { - "description": "Adds richtext behavior", - "factory": "Yes/No", - "title": "RichText", - "type": "boolean" - }, - "plone.shortname": { - "description": "Gives the ability to rename an item from its edit form.", - "factory": "Yes/No", - "title": "Short name", - "type": "boolean" - }, - "plone.tableofcontents": { - "description": "Adds a table of contents", - "factory": "Yes/No", - "title": "Table of contents", - "type": "boolean" - }, - "plone.thumb_icon": { - "description": "Options to suppress thumbs and/or icons and to override thumb size in listings, tables etc.", - "factory": "Yes/No", - "title": "Thumbs and icon handling", - "type": "boolean" - }, - "plone.translatable": { - "description": "Make this content type multilingual aware", - "factory": "Yes/No", - "title": "Multilingual Support", - "type": "boolean" - }, - "plone.versioning": { - "description": "Versioning support with CMFEditions", - "factory": "Yes/No", - "title": "Versioning", - "type": "boolean" - }, - "title": { - "description": "", - "factory": "Text line (String)", - "title": "Type Name", - "type": "string" - }, - "volto.blocks": { - "description": "Enables Volto Blocks support", - "factory": "Yes/No", - "title": "Blocks", - "type": "boolean" - } - }, - "required": [ - "title", - "filter_content_types" - ], - "type": "object" - }, - "title": "My Custom Content Type" -} \ No newline at end of file + "@id": "http://localhost:55001/plone/@controlpanels/dexterity-types/my_custom_content_type", + "data": { + "allowed_content_types": [], + "description": "A custom content-type", + "filter_content_types": true, + "plone.allowdiscussion": false, + "plone.basic": false, + "plone.categorization": false, + "plone.collection": false, + "plone.constraintypes": false, + "plone.dublincore": true, + "plone.eventattendees": false, + "plone.eventbasic": false, + "plone.eventcontact": false, + "plone.eventlocation": false, + "plone.eventrecurrence": false, + "plone.excludefromnavigation": false, + "plone.leadimage": false, + "plone.locking": false, + "plone.namefromfilename": false, + "plone.namefromtitle": true, + "plone.navigationroot": false, + "plone.nextpreviousenabled": false, + "plone.nextprevioustoggle": false, + "plone.ownership": false, + "plone.publication": false, + "plone.relateditems": false, + "plone.restapi.tests.dxtypes.ITestAnnotationsBehavior": false, + "plone.restapi.tests.dxtypes.ITestBehavior": false, + "plone.richtext": false, + "plone.shortname": false, + "plone.tableofcontents": false, + "plone.thumb_icon": false, + "plone.translatable": false, + "plone.versioning": false, + "title": "My Custom Content Type", + "volto.blocks": false + }, + "description": "A custom content-type", + "group": "Content", + "items": [], + "schema": { + "fieldsets": [ + { + "behavior": "plone", + "fields": [ + "title", + "description", + "allowed_content_types", + "filter_content_types" + ], + "id": "default", + "title": "Default" + }, + { + "behavior": "plone", + "fields": [ + "plone.allowdiscussion", + "plone.basic", + "volto.blocks", + "plone.categorization", + "plone.collection", + "plone.publication", + "plone.dublincore", + "plone.eventattendees", + "plone.eventbasic", + "plone.eventcontact", + "plone.eventlocation", + "plone.eventrecurrence", + "plone.excludefromnavigation", + "plone.constraintypes", + "plone.leadimage", + "plone.locking", + "plone.translatable", + "plone.namefromfilename", + "plone.namefromtitle", + "plone.navigationroot", + "plone.nextpreviousenabled", + "plone.nextprevioustoggle", + "plone.ownership", + "plone.relateditems", + "plone.richtext", + "plone.shortname", + "plone.tableofcontents", + "plone.restapi.tests.dxtypes.ITestAnnotationsBehavior", + "plone.restapi.tests.dxtypes.ITestBehavior", + "plone.thumb_icon", + "plone.versioning" + ], + "id": "behaviors", + "title": "Behaviors" + } + ], + "properties": { + "allowed_content_types": { + "additionalItems": true, + "description": "", + "factory": "Multiple Choice", + "items": { + "description": "", + "factory": "Choice", + "title": "", + "type": "string", + "vocabulary": { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.ReallyUserFriendlyTypes" + } + }, + "title": "Allowed Content Types", + "type": "array", + "uniqueItems": true + }, + "description": { + "description": "", + "factory": "Text", + "title": "Description", + "type": "string", + "widget": "textarea" + }, + "filter_content_types": { + "choices": [ + [ + "none", + null + ], + [ + "all", + null + ], + [ + "some", + null + ] + ], + "default": "none", + "description": "Items of this type can act as a folder containing other items. What content types should be allowed inside?", + "enum": [ + "none", + "all", + "some" + ], + "enumNames": [ + null, + null, + null + ], + "factory": "Choice", + "title": "Filter Contained Types", + "type": "string", + "vocabulary": { + "@id": "http://localhost:55001/plone/@sources/filter_content_types" + } + }, + "plone.allowdiscussion": { + "description": "Allow discussion on this item", + "factory": "Yes/No", + "title": "Allow discussion", + "type": "boolean" + }, + "plone.basic": { + "description": "Adds title and description fields.", + "factory": "Yes/No", + "title": "Basic metadata", + "type": "boolean" + }, + "plone.categorization": { + "description": "Adds keywords and language fields.", + "factory": "Yes/No", + "title": "Categorization", + "type": "boolean" + }, + "plone.collection": { + "description": "Adds collection behavior", + "factory": "Yes/No", + "title": "Collection", + "type": "boolean" + }, + "plone.constraintypes": { + "description": "Restrict the content types that can be added to folderish content", + "factory": "Yes/No", + "title": "Folder Addable Constrains", + "type": "boolean" + }, + "plone.dublincore": { + "description": "Adds standard metadata fields (equals Basic metadata + Categorization + Effective range + Ownership)", + "factory": "Yes/No", + "title": "Dublin Core metadata", + "type": "boolean" + }, + "plone.eventattendees": { + "description": "Attendees extension for Events.", + "factory": "Yes/No", + "title": "Event Attendees", + "type": "boolean" + }, + "plone.eventbasic": { + "description": "Basic Event schema.", + "factory": "Yes/No", + "title": "Event Basic", + "type": "boolean" + }, + "plone.eventcontact": { + "description": "Contact extension for Events.", + "factory": "Yes/No", + "title": "Event Contact", + "type": "boolean" + }, + "plone.eventlocation": { + "description": "Location extension for Events.", + "factory": "Yes/No", + "title": "Event Location", + "type": "boolean" + }, + "plone.eventrecurrence": { + "description": "Recurrence extension for Events.", + "factory": "Yes/No", + "title": "Event Recurrence", + "type": "boolean" + }, + "plone.excludefromnavigation": { + "description": "Allow items to be excluded from navigation", + "factory": "Yes/No", + "title": "Exclude From navigation", + "type": "boolean" + }, + "plone.leadimage": { + "description": "Adds image and image caption fields", + "factory": "Yes/No", + "title": "Lead Image", + "type": "boolean" + }, + "plone.locking": { + "description": "Locking support for dexterity", + "factory": "Yes/No", + "title": "Locking", + "type": "boolean" + }, + "plone.namefromfilename": { + "description": "Automatically generate short URL name for content based on its primary field file name", + "factory": "Yes/No", + "title": "Name from file name", + "type": "boolean" + }, + "plone.namefromtitle": { + "description": "Automatically generate short URL name for content based on its initial title", + "factory": "Yes/No", + "title": "Name from title", + "type": "boolean" + }, + "plone.navigationroot": { + "description": "Make all items of this type a navigation root", + "factory": "Yes/No", + "title": "Navigation root", + "type": "boolean" + }, + "plone.nextpreviousenabled": { + "description": "Enable next previous navigation for all items of this type", + "factory": "Yes/No", + "title": "Next previous navigation", + "type": "boolean" + }, + "plone.nextprevioustoggle": { + "description": "Allow items to have next previous navigation enabled", + "factory": "Yes/No", + "title": "Next previous navigation toggle", + "type": "boolean" + }, + "plone.ownership": { + "description": "Adds creator, contributor, and rights fields.", + "factory": "Yes/No", + "title": "Ownership", + "type": "boolean" + }, + "plone.publication": { + "description": "Adds effective date and expiration date fields.", + "factory": "Yes/No", + "title": "Date range", + "type": "boolean" + }, + "plone.relateditems": { + "description": "Adds the ability to assign related items", + "factory": "Yes/No", + "title": "Related items", + "type": "boolean" + }, + "plone.restapi.tests.dxtypes.ITestAnnotationsBehavior": { + "description": "Schema-only behavior using annotations", + "factory": "Yes/No", + "title": "Test Annotations Behavior", + "type": "boolean" + }, + "plone.restapi.tests.dxtypes.ITestBehavior": { + "description": "Schema-only behavior using attributes", + "factory": "Yes/No", + "title": "Test Behavior", + "type": "boolean" + }, + "plone.richtext": { + "description": "Adds richtext behavior", + "factory": "Yes/No", + "title": "RichText", + "type": "boolean" + }, + "plone.shortname": { + "description": "Gives the ability to rename an item from its edit form.", + "factory": "Yes/No", + "title": "Short name", + "type": "boolean" + }, + "plone.tableofcontents": { + "description": "Adds a table of contents", + "factory": "Yes/No", + "title": "Table of contents", + "type": "boolean" + }, + "plone.thumb_icon": { + "description": "Options to suppress thumbs and/or icons and to override thumb size in listings, tables etc.", + "factory": "Yes/No", + "title": "Thumbs and icon handling", + "type": "boolean" + }, + "plone.translatable": { + "description": "Make this content type multilingual aware", + "factory": "Yes/No", + "title": "Multilingual Support", + "type": "boolean" + }, + "plone.versioning": { + "description": "Versioning support with CMFEditions", + "factory": "Yes/No", + "title": "Versioning", + "type": "boolean" + }, + "title": { + "description": "", + "factory": "Text line (String)", + "title": "Type Name", + "type": "string" + }, + "volto.blocks": { + "description": "Enables Volto Blocks support", + "factory": "Yes/No", + "title": "Blocks", + "type": "boolean" + } + }, + "required": [ + "title", + "filter_content_types" + ], + "type": "object" + }, + "title": "My Custom Content Type" +} diff --git a/src/plone/restapi/tests/http-examples/controlpanels_get_item.resp b/src/plone/restapi/tests/http-examples/controlpanels_get_item.resp index 771668a5f3..b2624bd01b 100644 --- a/src/plone/restapi/tests/http-examples/controlpanels_get_item.resp +++ b/src/plone/restapi/tests/http-examples/controlpanels_get_item.resp @@ -2,101 +2,101 @@ HTTP/1.1 200 OK Content-Type: application/json { - "@id": "http://localhost:55001/plone/@controlpanels/editing", - "data": { - "available_editors": [ - "TinyMCE", - "None" - ], - "default_editor": { - "title": "TinyMCE", - "token": "TinyMCE" - }, - "enable_link_integrity_checks": true, - "ext_editor": false, - "lock_on_ttw_edit": true, - "subjects_of_navigation_root": false - }, - "group": "Content", - "schema": { - "fieldsets": [ - { - "behavior": "plone", - "fields": [ - "available_editors", - "default_editor", - "ext_editor", - "enable_link_integrity_checks", - "lock_on_ttw_edit", - "subjects_of_navigation_root" - ], - "id": "default", - "title": "Default" - } - ], - "properties": { - "available_editors": { - "additionalItems": true, - "default": [ - "TinyMCE", - "None" - ], - "description": "Available editors in the portal.", - "factory": "List", - "items": { - "description": "", - "factory": "Text line (String)", - "title": "", - "type": "string" - }, - "title": "Available editors", - "type": "array", - "uniqueItems": false - }, - "default_editor": { - "default": "TinyMCE", - "description": "Select the default wysiwyg editor. Users will be able to choose their own or select to use the site default.", - "factory": "Choice", - "title": "Default editor", - "type": "string", - "vocabulary": { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.AvailableEditors" - } - }, - "enable_link_integrity_checks": { - "default": true, - "description": "Determines if the users should get warnings when they delete or move content that is linked from inside the site.", - "factory": "Yes/No", - "title": "Enable link integrity checks", - "type": "boolean" - }, - "ext_editor": { - "default": false, - "description": "Determines if the external editor feature is enabled. This feature requires a special client-side application installed. The users also have to enable this in their preferences.", - "factory": "Yes/No", - "title": "Enable External Editor feature", - "type": "boolean" - }, - "lock_on_ttw_edit": { - "default": true, - "description": "Disabling locking here will only affect users editing content through the Plone web UI. Content edited via WebDAV clients will still be subject to locking.", - "factory": "Yes/No", - "title": "Enable locking for through-the-web edits", - "type": "boolean" - }, - "subjects_of_navigation_root": { - "default": false, - "description": "Limit tags aka keywords vocabulary used for Tags field and in searches to the terms used inside the subtree of the current navigation root. This can be used together with Plone's multilingual extension plone.app.multilingual to only offer keywords of the current selected language. Other addons may utilize this feature for its specific purposes.", - "factory": "Yes/No", - "title": "Limit tags/keywords to the current navigation root", - "type": "boolean" - } - }, - "required": [ - "available_editors", - "default_editor" - ], - "type": "object" - }, - "title": "Editing" -} \ No newline at end of file + "@id": "http://localhost:55001/plone/@controlpanels/editing", + "data": { + "available_editors": [ + "TinyMCE", + "None" + ], + "default_editor": { + "title": "TinyMCE", + "token": "TinyMCE" + }, + "enable_link_integrity_checks": true, + "ext_editor": false, + "lock_on_ttw_edit": true, + "subjects_of_navigation_root": false + }, + "group": "Content", + "schema": { + "fieldsets": [ + { + "behavior": "plone", + "fields": [ + "available_editors", + "default_editor", + "ext_editor", + "enable_link_integrity_checks", + "lock_on_ttw_edit", + "subjects_of_navigation_root" + ], + "id": "default", + "title": "Default" + } + ], + "properties": { + "available_editors": { + "additionalItems": true, + "default": [ + "TinyMCE", + "None" + ], + "description": "Available editors in the portal.", + "factory": "List", + "items": { + "description": "", + "factory": "Text line (String)", + "title": "", + "type": "string" + }, + "title": "Available editors", + "type": "array", + "uniqueItems": false + }, + "default_editor": { + "default": "TinyMCE", + "description": "Select the default wysiwyg editor. Users will be able to choose their own or select to use the site default.", + "factory": "Choice", + "title": "Default editor", + "type": "string", + "vocabulary": { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.AvailableEditors" + } + }, + "enable_link_integrity_checks": { + "default": true, + "description": "Determines if the users should get warnings when they delete or move content that is linked from inside the site.", + "factory": "Yes/No", + "title": "Enable link integrity checks", + "type": "boolean" + }, + "ext_editor": { + "default": false, + "description": "Determines if the external editor feature is enabled. This feature requires a special client-side application installed. The users also have to enable this in their preferences.", + "factory": "Yes/No", + "title": "Enable External Editor feature", + "type": "boolean" + }, + "lock_on_ttw_edit": { + "default": true, + "description": "Disabling locking here will only affect users editing content through the Plone web UI. Content edited via WebDAV clients will still be subject to locking.", + "factory": "Yes/No", + "title": "Enable locking for through-the-web edits", + "type": "boolean" + }, + "subjects_of_navigation_root": { + "default": false, + "description": "Limit tags aka keywords vocabulary used for Tags field and in searches to the terms used inside the subtree of the current navigation root. This can be used together with Plone's multilingual extension plone.app.multilingual to only offer keywords of the current selected language. Other addons may utilize this feature for its specific purposes.", + "factory": "Yes/No", + "title": "Limit tags/keywords to the current navigation root", + "type": "boolean" + } + }, + "required": [ + "available_editors", + "default_editor" + ], + "type": "object" + }, + "title": "Editing" +} diff --git a/src/plone/restapi/tests/http-examples/controlpanels_patch_dexterity_item.req b/src/plone/restapi/tests/http-examples/controlpanels_patch_dexterity_item.req index 3baa482503..5e3c54006d 100644 --- a/src/plone/restapi/tests/http-examples/controlpanels_patch_dexterity_item.req +++ b/src/plone/restapi/tests/http-examples/controlpanels_patch_dexterity_item.req @@ -8,4 +8,4 @@ Content-Type: application/json "plone.richtext": true, "plone.versioning": true, "title": "My Content Type" -} \ No newline at end of file +} diff --git a/src/plone/restapi/tests/http-examples/controlpanels_post_dexterity_item.req b/src/plone/restapi/tests/http-examples/controlpanels_post_dexterity_item.req index 3e6fb0db73..2d0ec2ef4f 100644 --- a/src/plone/restapi/tests/http-examples/controlpanels_post_dexterity_item.req +++ b/src/plone/restapi/tests/http-examples/controlpanels_post_dexterity_item.req @@ -6,4 +6,4 @@ Content-Type: application/json { "description": "A custom content-type", "title": "My Custom Content Type" -} \ No newline at end of file +} diff --git a/src/plone/restapi/tests/http-examples/controlpanels_post_dexterity_item.resp b/src/plone/restapi/tests/http-examples/controlpanels_post_dexterity_item.resp index 2f03117634..17d6e31d9e 100644 --- a/src/plone/restapi/tests/http-examples/controlpanels_post_dexterity_item.resp +++ b/src/plone/restapi/tests/http-examples/controlpanels_post_dexterity_item.resp @@ -3,356 +3,356 @@ Content-Type: application/json Location: http://localhost:55001/plone/@controlpanels/dexterity-types/my_custom_content_type { - "@id": "http://localhost:55001/plone/@controlpanels/dexterity-types/my_custom_content_type", - "data": { - "allowed_content_types": [], - "description": "A custom content-type", - "filter_content_types": true, - "plone.allowdiscussion": false, - "plone.basic": false, - "plone.categorization": false, - "plone.collection": false, - "plone.constraintypes": false, - "plone.dublincore": true, - "plone.eventattendees": false, - "plone.eventbasic": false, - "plone.eventcontact": false, - "plone.eventlocation": false, - "plone.eventrecurrence": false, - "plone.excludefromnavigation": false, - "plone.leadimage": false, - "plone.locking": false, - "plone.namefromfilename": false, - "plone.namefromtitle": true, - "plone.navigationroot": false, - "plone.nextpreviousenabled": false, - "plone.nextprevioustoggle": false, - "plone.ownership": false, - "plone.publication": false, - "plone.relateditems": false, - "plone.restapi.tests.dxtypes.ITestAnnotationsBehavior": false, - "plone.restapi.tests.dxtypes.ITestBehavior": false, - "plone.richtext": false, - "plone.shortname": false, - "plone.tableofcontents": false, - "plone.thumb_icon": false, - "plone.translatable": false, - "plone.versioning": false, - "title": "My Custom Content Type", - "volto.blocks": false - }, - "description": "A custom content-type", - "group": "Content", - "items": [], - "schema": { - "fieldsets": [ - { - "behavior": "plone", - "fields": [ - "title", - "description", - "allowed_content_types", - "filter_content_types" - ], - "id": "default", - "title": "Default" - }, - { - "behavior": "plone", - "fields": [ - "plone.allowdiscussion", - "plone.basic", - "volto.blocks", - "plone.categorization", - "plone.collection", - "plone.publication", - "plone.dublincore", - "plone.eventattendees", - "plone.eventbasic", - "plone.eventcontact", - "plone.eventlocation", - "plone.eventrecurrence", - "plone.excludefromnavigation", - "plone.constraintypes", - "plone.leadimage", - "plone.locking", - "plone.translatable", - "plone.namefromfilename", - "plone.namefromtitle", - "plone.navigationroot", - "plone.nextpreviousenabled", - "plone.nextprevioustoggle", - "plone.ownership", - "plone.relateditems", - "plone.richtext", - "plone.shortname", - "plone.tableofcontents", - "plone.restapi.tests.dxtypes.ITestAnnotationsBehavior", - "plone.restapi.tests.dxtypes.ITestBehavior", - "plone.thumb_icon", - "plone.versioning" - ], - "id": "behaviors", - "title": "Behaviors" - } - ], - "properties": { - "allowed_content_types": { - "additionalItems": true, - "description": "", - "factory": "Multiple Choice", - "items": { - "description": "", - "factory": "Choice", - "title": "", - "type": "string", - "vocabulary": { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.ReallyUserFriendlyTypes" - } - }, - "title": "Allowed Content Types", - "type": "array", - "uniqueItems": true - }, - "description": { - "description": "", - "factory": "Text", - "title": "Description", - "type": "string", - "widget": "textarea" - }, - "filter_content_types": { - "choices": [ - [ - "none", - null - ], - [ - "all", - null - ], - [ - "some", - null - ] - ], - "default": "none", - "description": "Items of this type can act as a folder containing other items. What content types should be allowed inside?", - "enum": [ - "none", - "all", - "some" - ], - "enumNames": [ - null, - null, - null - ], - "factory": "Choice", - "title": "Filter Contained Types", - "type": "string", - "vocabulary": { - "@id": "http://localhost:55001/plone/@sources/filter_content_types" - } - }, - "plone.allowdiscussion": { - "description": "Allow discussion on this item", - "factory": "Yes/No", - "title": "Allow discussion", - "type": "boolean" - }, - "plone.basic": { - "description": "Adds title and description fields.", - "factory": "Yes/No", - "title": "Basic metadata", - "type": "boolean" - }, - "plone.categorization": { - "description": "Adds keywords and language fields.", - "factory": "Yes/No", - "title": "Categorization", - "type": "boolean" - }, - "plone.collection": { - "description": "Adds collection behavior", - "factory": "Yes/No", - "title": "Collection", - "type": "boolean" - }, - "plone.constraintypes": { - "description": "Restrict the content types that can be added to folderish content", - "factory": "Yes/No", - "title": "Folder Addable Constrains", - "type": "boolean" - }, - "plone.dublincore": { - "description": "Adds standard metadata fields (equals Basic metadata + Categorization + Effective range + Ownership)", - "factory": "Yes/No", - "title": "Dublin Core metadata", - "type": "boolean" - }, - "plone.eventattendees": { - "description": "Attendees extension for Events.", - "factory": "Yes/No", - "title": "Event Attendees", - "type": "boolean" - }, - "plone.eventbasic": { - "description": "Basic Event schema.", - "factory": "Yes/No", - "title": "Event Basic", - "type": "boolean" - }, - "plone.eventcontact": { - "description": "Contact extension for Events.", - "factory": "Yes/No", - "title": "Event Contact", - "type": "boolean" - }, - "plone.eventlocation": { - "description": "Location extension for Events.", - "factory": "Yes/No", - "title": "Event Location", - "type": "boolean" - }, - "plone.eventrecurrence": { - "description": "Recurrence extension for Events.", - "factory": "Yes/No", - "title": "Event Recurrence", - "type": "boolean" - }, - "plone.excludefromnavigation": { - "description": "Allow items to be excluded from navigation", - "factory": "Yes/No", - "title": "Exclude From navigation", - "type": "boolean" - }, - "plone.leadimage": { - "description": "Adds image and image caption fields", - "factory": "Yes/No", - "title": "Lead Image", - "type": "boolean" - }, - "plone.locking": { - "description": "Locking support for dexterity", - "factory": "Yes/No", - "title": "Locking", - "type": "boolean" - }, - "plone.namefromfilename": { - "description": "Automatically generate short URL name for content based on its primary field file name", - "factory": "Yes/No", - "title": "Name from file name", - "type": "boolean" - }, - "plone.namefromtitle": { - "description": "Automatically generate short URL name for content based on its initial title", - "factory": "Yes/No", - "title": "Name from title", - "type": "boolean" - }, - "plone.navigationroot": { - "description": "Make all items of this type a navigation root", - "factory": "Yes/No", - "title": "Navigation root", - "type": "boolean" - }, - "plone.nextpreviousenabled": { - "description": "Enable next previous navigation for all items of this type", - "factory": "Yes/No", - "title": "Next previous navigation", - "type": "boolean" - }, - "plone.nextprevioustoggle": { - "description": "Allow items to have next previous navigation enabled", - "factory": "Yes/No", - "title": "Next previous navigation toggle", - "type": "boolean" - }, - "plone.ownership": { - "description": "Adds creator, contributor, and rights fields.", - "factory": "Yes/No", - "title": "Ownership", - "type": "boolean" - }, - "plone.publication": { - "description": "Adds effective date and expiration date fields.", - "factory": "Yes/No", - "title": "Date range", - "type": "boolean" - }, - "plone.relateditems": { - "description": "Adds the ability to assign related items", - "factory": "Yes/No", - "title": "Related items", - "type": "boolean" - }, - "plone.restapi.tests.dxtypes.ITestAnnotationsBehavior": { - "description": "Schema-only behavior using annotations", - "factory": "Yes/No", - "title": "Test Annotations Behavior", - "type": "boolean" - }, - "plone.restapi.tests.dxtypes.ITestBehavior": { - "description": "Schema-only behavior using attributes", - "factory": "Yes/No", - "title": "Test Behavior", - "type": "boolean" - }, - "plone.richtext": { - "description": "Adds richtext behavior", - "factory": "Yes/No", - "title": "RichText", - "type": "boolean" - }, - "plone.shortname": { - "description": "Gives the ability to rename an item from its edit form.", - "factory": "Yes/No", - "title": "Short name", - "type": "boolean" - }, - "plone.tableofcontents": { - "description": "Adds a table of contents", - "factory": "Yes/No", - "title": "Table of contents", - "type": "boolean" - }, - "plone.thumb_icon": { - "description": "Options to suppress thumbs and/or icons and to override thumb size in listings, tables etc.", - "factory": "Yes/No", - "title": "Thumbs and icon handling", - "type": "boolean" - }, - "plone.translatable": { - "description": "Make this content type multilingual aware", - "factory": "Yes/No", - "title": "Multilingual Support", - "type": "boolean" - }, - "plone.versioning": { - "description": "Versioning support with CMFEditions", - "factory": "Yes/No", - "title": "Versioning", - "type": "boolean" - }, - "title": { - "description": "", - "factory": "Text line (String)", - "title": "Type Name", - "type": "string" - }, - "volto.blocks": { - "description": "Enables Volto Blocks support", - "factory": "Yes/No", - "title": "Blocks", - "type": "boolean" - } - }, - "required": [ - "title", - "filter_content_types" - ], - "type": "object" - }, - "title": "My Custom Content Type" -} \ No newline at end of file + "@id": "http://localhost:55001/plone/@controlpanels/dexterity-types/my_custom_content_type", + "data": { + "allowed_content_types": [], + "description": "A custom content-type", + "filter_content_types": true, + "plone.allowdiscussion": false, + "plone.basic": false, + "plone.categorization": false, + "plone.collection": false, + "plone.constraintypes": false, + "plone.dublincore": true, + "plone.eventattendees": false, + "plone.eventbasic": false, + "plone.eventcontact": false, + "plone.eventlocation": false, + "plone.eventrecurrence": false, + "plone.excludefromnavigation": false, + "plone.leadimage": false, + "plone.locking": false, + "plone.namefromfilename": false, + "plone.namefromtitle": true, + "plone.navigationroot": false, + "plone.nextpreviousenabled": false, + "plone.nextprevioustoggle": false, + "plone.ownership": false, + "plone.publication": false, + "plone.relateditems": false, + "plone.restapi.tests.dxtypes.ITestAnnotationsBehavior": false, + "plone.restapi.tests.dxtypes.ITestBehavior": false, + "plone.richtext": false, + "plone.shortname": false, + "plone.tableofcontents": false, + "plone.thumb_icon": false, + "plone.translatable": false, + "plone.versioning": false, + "title": "My Custom Content Type", + "volto.blocks": false + }, + "description": "A custom content-type", + "group": "Content", + "items": [], + "schema": { + "fieldsets": [ + { + "behavior": "plone", + "fields": [ + "title", + "description", + "allowed_content_types", + "filter_content_types" + ], + "id": "default", + "title": "Default" + }, + { + "behavior": "plone", + "fields": [ + "plone.allowdiscussion", + "plone.basic", + "volto.blocks", + "plone.categorization", + "plone.collection", + "plone.publication", + "plone.dublincore", + "plone.eventattendees", + "plone.eventbasic", + "plone.eventcontact", + "plone.eventlocation", + "plone.eventrecurrence", + "plone.excludefromnavigation", + "plone.constraintypes", + "plone.leadimage", + "plone.locking", + "plone.translatable", + "plone.namefromfilename", + "plone.namefromtitle", + "plone.navigationroot", + "plone.nextpreviousenabled", + "plone.nextprevioustoggle", + "plone.ownership", + "plone.relateditems", + "plone.richtext", + "plone.shortname", + "plone.tableofcontents", + "plone.restapi.tests.dxtypes.ITestAnnotationsBehavior", + "plone.restapi.tests.dxtypes.ITestBehavior", + "plone.thumb_icon", + "plone.versioning" + ], + "id": "behaviors", + "title": "Behaviors" + } + ], + "properties": { + "allowed_content_types": { + "additionalItems": true, + "description": "", + "factory": "Multiple Choice", + "items": { + "description": "", + "factory": "Choice", + "title": "", + "type": "string", + "vocabulary": { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.ReallyUserFriendlyTypes" + } + }, + "title": "Allowed Content Types", + "type": "array", + "uniqueItems": true + }, + "description": { + "description": "", + "factory": "Text", + "title": "Description", + "type": "string", + "widget": "textarea" + }, + "filter_content_types": { + "choices": [ + [ + "none", + null + ], + [ + "all", + null + ], + [ + "some", + null + ] + ], + "default": "none", + "description": "Items of this type can act as a folder containing other items. What content types should be allowed inside?", + "enum": [ + "none", + "all", + "some" + ], + "enumNames": [ + null, + null, + null + ], + "factory": "Choice", + "title": "Filter Contained Types", + "type": "string", + "vocabulary": { + "@id": "http://localhost:55001/plone/@sources/filter_content_types" + } + }, + "plone.allowdiscussion": { + "description": "Allow discussion on this item", + "factory": "Yes/No", + "title": "Allow discussion", + "type": "boolean" + }, + "plone.basic": { + "description": "Adds title and description fields.", + "factory": "Yes/No", + "title": "Basic metadata", + "type": "boolean" + }, + "plone.categorization": { + "description": "Adds keywords and language fields.", + "factory": "Yes/No", + "title": "Categorization", + "type": "boolean" + }, + "plone.collection": { + "description": "Adds collection behavior", + "factory": "Yes/No", + "title": "Collection", + "type": "boolean" + }, + "plone.constraintypes": { + "description": "Restrict the content types that can be added to folderish content", + "factory": "Yes/No", + "title": "Folder Addable Constrains", + "type": "boolean" + }, + "plone.dublincore": { + "description": "Adds standard metadata fields (equals Basic metadata + Categorization + Effective range + Ownership)", + "factory": "Yes/No", + "title": "Dublin Core metadata", + "type": "boolean" + }, + "plone.eventattendees": { + "description": "Attendees extension for Events.", + "factory": "Yes/No", + "title": "Event Attendees", + "type": "boolean" + }, + "plone.eventbasic": { + "description": "Basic Event schema.", + "factory": "Yes/No", + "title": "Event Basic", + "type": "boolean" + }, + "plone.eventcontact": { + "description": "Contact extension for Events.", + "factory": "Yes/No", + "title": "Event Contact", + "type": "boolean" + }, + "plone.eventlocation": { + "description": "Location extension for Events.", + "factory": "Yes/No", + "title": "Event Location", + "type": "boolean" + }, + "plone.eventrecurrence": { + "description": "Recurrence extension for Events.", + "factory": "Yes/No", + "title": "Event Recurrence", + "type": "boolean" + }, + "plone.excludefromnavigation": { + "description": "Allow items to be excluded from navigation", + "factory": "Yes/No", + "title": "Exclude From navigation", + "type": "boolean" + }, + "plone.leadimage": { + "description": "Adds image and image caption fields", + "factory": "Yes/No", + "title": "Lead Image", + "type": "boolean" + }, + "plone.locking": { + "description": "Locking support for dexterity", + "factory": "Yes/No", + "title": "Locking", + "type": "boolean" + }, + "plone.namefromfilename": { + "description": "Automatically generate short URL name for content based on its primary field file name", + "factory": "Yes/No", + "title": "Name from file name", + "type": "boolean" + }, + "plone.namefromtitle": { + "description": "Automatically generate short URL name for content based on its initial title", + "factory": "Yes/No", + "title": "Name from title", + "type": "boolean" + }, + "plone.navigationroot": { + "description": "Make all items of this type a navigation root", + "factory": "Yes/No", + "title": "Navigation root", + "type": "boolean" + }, + "plone.nextpreviousenabled": { + "description": "Enable next previous navigation for all items of this type", + "factory": "Yes/No", + "title": "Next previous navigation", + "type": "boolean" + }, + "plone.nextprevioustoggle": { + "description": "Allow items to have next previous navigation enabled", + "factory": "Yes/No", + "title": "Next previous navigation toggle", + "type": "boolean" + }, + "plone.ownership": { + "description": "Adds creator, contributor, and rights fields.", + "factory": "Yes/No", + "title": "Ownership", + "type": "boolean" + }, + "plone.publication": { + "description": "Adds effective date and expiration date fields.", + "factory": "Yes/No", + "title": "Date range", + "type": "boolean" + }, + "plone.relateditems": { + "description": "Adds the ability to assign related items", + "factory": "Yes/No", + "title": "Related items", + "type": "boolean" + }, + "plone.restapi.tests.dxtypes.ITestAnnotationsBehavior": { + "description": "Schema-only behavior using annotations", + "factory": "Yes/No", + "title": "Test Annotations Behavior", + "type": "boolean" + }, + "plone.restapi.tests.dxtypes.ITestBehavior": { + "description": "Schema-only behavior using attributes", + "factory": "Yes/No", + "title": "Test Behavior", + "type": "boolean" + }, + "plone.richtext": { + "description": "Adds richtext behavior", + "factory": "Yes/No", + "title": "RichText", + "type": "boolean" + }, + "plone.shortname": { + "description": "Gives the ability to rename an item from its edit form.", + "factory": "Yes/No", + "title": "Short name", + "type": "boolean" + }, + "plone.tableofcontents": { + "description": "Adds a table of contents", + "factory": "Yes/No", + "title": "Table of contents", + "type": "boolean" + }, + "plone.thumb_icon": { + "description": "Options to suppress thumbs and/or icons and to override thumb size in listings, tables etc.", + "factory": "Yes/No", + "title": "Thumbs and icon handling", + "type": "boolean" + }, + "plone.translatable": { + "description": "Make this content type multilingual aware", + "factory": "Yes/No", + "title": "Multilingual Support", + "type": "boolean" + }, + "plone.versioning": { + "description": "Versioning support with CMFEditions", + "factory": "Yes/No", + "title": "Versioning", + "type": "boolean" + }, + "title": { + "description": "", + "factory": "Text line (String)", + "title": "Type Name", + "type": "string" + }, + "volto.blocks": { + "description": "Enables Volto Blocks support", + "factory": "Yes/No", + "title": "Blocks", + "type": "boolean" + } + }, + "required": [ + "title", + "filter_content_types" + ], + "type": "object" + }, + "title": "My Custom Content Type" +} diff --git a/src/plone/restapi/tests/http-examples/copy.req b/src/plone/restapi/tests/http-examples/copy.req index f76f2bcdf4..2effdf834e 100644 --- a/src/plone/restapi/tests/http-examples/copy.req +++ b/src/plone/restapi/tests/http-examples/copy.req @@ -5,4 +5,4 @@ Content-Type: application/json { "source": "http://localhost:55001/plone/front-page" -} \ No newline at end of file +} diff --git a/src/plone/restapi/tests/http-examples/copy.resp b/src/plone/restapi/tests/http-examples/copy.resp index 389bbbd372..42cf631eb9 100644 --- a/src/plone/restapi/tests/http-examples/copy.resp +++ b/src/plone/restapi/tests/http-examples/copy.resp @@ -2,8 +2,8 @@ HTTP/1.1 200 OK Content-Type: application/json [ - { - "source": "http://localhost:55001/plone/front-page", - "target": "http://localhost:55001/plone/copy_of_front-page" - } -] \ No newline at end of file + { + "source": "http://localhost:55001/plone/front-page", + "target": "http://localhost:55001/plone/copy_of_front-page" + } +] diff --git a/src/plone/restapi/tests/http-examples/copy_multiple.req b/src/plone/restapi/tests/http-examples/copy_multiple.req index dd6927b4e2..7f3f54d2e2 100644 --- a/src/plone/restapi/tests/http-examples/copy_multiple.req +++ b/src/plone/restapi/tests/http-examples/copy_multiple.req @@ -8,4 +8,4 @@ Content-Type: application/json "http://localhost:55001/plone/front-page", "http://localhost:55001/plone/newsitem" ] -} \ No newline at end of file +} diff --git a/src/plone/restapi/tests/http-examples/copy_multiple.resp b/src/plone/restapi/tests/http-examples/copy_multiple.resp index 2fdbfef171..0100fba7b2 100644 --- a/src/plone/restapi/tests/http-examples/copy_multiple.resp +++ b/src/plone/restapi/tests/http-examples/copy_multiple.resp @@ -2,12 +2,12 @@ HTTP/1.1 200 OK Content-Type: application/json [ - { - "source": "http://localhost:55001/plone/front-page", - "target": "http://localhost:55001/plone/copy_of_front-page" - }, - { - "source": "http://localhost:55001/plone/newsitem", - "target": "http://localhost:55001/plone/copy_of_newsitem" - } -] \ No newline at end of file + { + "source": "http://localhost:55001/plone/front-page", + "target": "http://localhost:55001/plone/copy_of_front-page" + }, + { + "source": "http://localhost:55001/plone/newsitem", + "target": "http://localhost:55001/plone/copy_of_newsitem" + } +] diff --git a/src/plone/restapi/tests/http-examples/document.resp b/src/plone/restapi/tests/http-examples/document.resp index ce3dd566c0..783586cada 100644 --- a/src/plone/restapi/tests/http-examples/document.resp +++ b/src/plone/restapi/tests/http-examples/document.resp @@ -2,68 +2,68 @@ HTTP/1.1 200 OK Content-Type: application/json { - "@components": { - "actions": { - "@id": "http://localhost:55001/plone/front-page/@actions" - }, - "breadcrumbs": { - "@id": "http://localhost:55001/plone/front-page/@breadcrumbs" - }, - "contextnavigation": { - "@id": "http://localhost:55001/plone/front-page/@contextnavigation" - }, - "navigation": { - "@id": "http://localhost:55001/plone/front-page/@navigation" - }, - "types": { - "@id": "http://localhost:55001/plone/front-page/@types" - }, - "workflow": { - "@id": "http://localhost:55001/plone/front-page/@workflow" - } - }, - "@id": "http://localhost:55001/plone/front-page", - "@type": "Document", - "UID": "SomeUUID000000000000000000000001", - "allow_discussion": false, - "changeNote": "", - "contributors": [], - "created": "1995-07-31T13:45:00", - "creators": [ - "test_user_1_" - ], - "description": "Congratulations! You have successfully installed Plone.", - "effective": null, - "exclude_from_nav": false, - "expires": null, - "id": "front-page", - "is_folderish": false, - "language": "", - "layout": "document_view", - "lock": { - "locked": false, - "stealable": true - }, - "modified": "1995-07-31T17:30:00", - "next_item": {}, - "parent": { - "@id": "http://localhost:55001/plone", - "@type": "Plone Site", - "description": "", - "title": "Plone site" - }, - "previous_item": {}, - "relatedItems": [], - "review_state": "private", - "rights": "", - "subjects": [], - "table_of_contents": null, - "text": { - "content-type": "text/plain", - "data": "

If you're seeing this instead of the web site you were expecting, the owner of this web site has just installed Plone. Do not contact the Plone Team or the Plone mailing lists about this.

", - "encoding": "utf-8" - }, - "title": "Welcome to Plone", - "version": "current", - "versioning_enabled": true -} \ No newline at end of file + "@components": { + "actions": { + "@id": "http://localhost:55001/plone/front-page/@actions" + }, + "breadcrumbs": { + "@id": "http://localhost:55001/plone/front-page/@breadcrumbs" + }, + "contextnavigation": { + "@id": "http://localhost:55001/plone/front-page/@contextnavigation" + }, + "navigation": { + "@id": "http://localhost:55001/plone/front-page/@navigation" + }, + "types": { + "@id": "http://localhost:55001/plone/front-page/@types" + }, + "workflow": { + "@id": "http://localhost:55001/plone/front-page/@workflow" + } + }, + "@id": "http://localhost:55001/plone/front-page", + "@type": "Document", + "UID": "SomeUUID000000000000000000000001", + "allow_discussion": false, + "changeNote": "", + "contributors": [], + "created": "1995-07-31T13:45:00", + "creators": [ + "test_user_1_" + ], + "description": "Congratulations! You have successfully installed Plone.", + "effective": null, + "exclude_from_nav": false, + "expires": null, + "id": "front-page", + "is_folderish": false, + "language": "", + "layout": "document_view", + "lock": { + "locked": false, + "stealable": true + }, + "modified": "1995-07-31T17:30:00", + "next_item": {}, + "parent": { + "@id": "http://localhost:55001/plone", + "@type": "Plone Site", + "description": "", + "title": "Plone site" + }, + "previous_item": {}, + "relatedItems": [], + "review_state": "private", + "rights": "", + "subjects": [], + "table_of_contents": null, + "text": { + "content-type": "text/plain", + "data": "

If you're seeing this instead of the web site you were expecting, the owner of this web site has just installed Plone. Do not contact the Plone Team or the Plone mailing lists about this.

", + "encoding": "utf-8" + }, + "title": "Welcome to Plone", + "version": "current", + "versioning_enabled": true +} diff --git a/src/plone/restapi/tests/http-examples/event.resp b/src/plone/restapi/tests/http-examples/event.resp index 88f2093516..b4765e4e69 100644 --- a/src/plone/restapi/tests/http-examples/event.resp +++ b/src/plone/restapi/tests/http-examples/event.resp @@ -2,80 +2,80 @@ HTTP/1.1 200 OK Content-Type: application/json { - "@components": { - "actions": { - "@id": "http://localhost:55001/plone/event/@actions" - }, - "breadcrumbs": { - "@id": "http://localhost:55001/plone/event/@breadcrumbs" - }, - "contextnavigation": { - "@id": "http://localhost:55001/plone/event/@contextnavigation" - }, - "navigation": { - "@id": "http://localhost:55001/plone/event/@navigation" - }, - "types": { - "@id": "http://localhost:55001/plone/event/@types" - }, - "workflow": { - "@id": "http://localhost:55001/plone/event/@workflow" - } - }, - "@id": "http://localhost:55001/plone/event", - "@type": "Event", - "UID": "SomeUUID000000000000000000000002", - "allow_discussion": false, - "attendees": [], - "changeNote": "", - "contact_email": null, - "contact_name": null, - "contact_phone": null, - "contributors": [], - "created": "1995-07-31T13:45:00", - "creators": [ - "test_user_1_" - ], - "description": "This is an event", - "effective": null, - "end": "2013-01-01T12:00:00", - "event_url": null, - "exclude_from_nav": false, - "expires": null, - "id": "event", - "is_folderish": false, - "language": "", - "layout": "event_view", - "location": null, - "lock": { - "locked": false, - "stealable": true - }, - "modified": "1995-07-31T17:30:00", - "next_item": {}, - "open_end": false, - "parent": { - "@id": "http://localhost:55001/plone", - "@type": "Plone Site", - "description": "", - "title": "Plone site" - }, - "previous_item": { - "@id": "http://localhost:55001/plone/front-page", - "@type": "Document", - "description": "Congratulations! You have successfully installed Plone.", - "title": "Welcome to Plone" - }, - "recurrence": null, - "relatedItems": [], - "review_state": "private", - "rights": "", - "start": "2013-01-01T10:00:00", - "subjects": [], - "sync_uid": null, - "text": null, - "title": "Event", - "version": "current", - "versioning_enabled": true, - "whole_day": false -} \ No newline at end of file + "@components": { + "actions": { + "@id": "http://localhost:55001/plone/event/@actions" + }, + "breadcrumbs": { + "@id": "http://localhost:55001/plone/event/@breadcrumbs" + }, + "contextnavigation": { + "@id": "http://localhost:55001/plone/event/@contextnavigation" + }, + "navigation": { + "@id": "http://localhost:55001/plone/event/@navigation" + }, + "types": { + "@id": "http://localhost:55001/plone/event/@types" + }, + "workflow": { + "@id": "http://localhost:55001/plone/event/@workflow" + } + }, + "@id": "http://localhost:55001/plone/event", + "@type": "Event", + "UID": "SomeUUID000000000000000000000002", + "allow_discussion": false, + "attendees": [], + "changeNote": "", + "contact_email": null, + "contact_name": null, + "contact_phone": null, + "contributors": [], + "created": "1995-07-31T13:45:00", + "creators": [ + "test_user_1_" + ], + "description": "This is an event", + "effective": null, + "end": "2013-01-01T12:00:00", + "event_url": null, + "exclude_from_nav": false, + "expires": null, + "id": "event", + "is_folderish": false, + "language": "", + "layout": "event_view", + "location": null, + "lock": { + "locked": false, + "stealable": true + }, + "modified": "1995-07-31T17:30:00", + "next_item": {}, + "open_end": false, + "parent": { + "@id": "http://localhost:55001/plone", + "@type": "Plone Site", + "description": "", + "title": "Plone site" + }, + "previous_item": { + "@id": "http://localhost:55001/plone/front-page", + "@type": "Document", + "description": "Congratulations! You have successfully installed Plone.", + "title": "Welcome to Plone" + }, + "recurrence": null, + "relatedItems": [], + "review_state": "private", + "rights": "", + "start": "2013-01-01T10:00:00", + "subjects": [], + "sync_uid": null, + "text": null, + "title": "Event", + "version": "current", + "versioning_enabled": true, + "whole_day": false +} diff --git a/src/plone/restapi/tests/http-examples/expansion.resp b/src/plone/restapi/tests/http-examples/expansion.resp index ce3dd566c0..783586cada 100644 --- a/src/plone/restapi/tests/http-examples/expansion.resp +++ b/src/plone/restapi/tests/http-examples/expansion.resp @@ -2,68 +2,68 @@ HTTP/1.1 200 OK Content-Type: application/json { - "@components": { - "actions": { - "@id": "http://localhost:55001/plone/front-page/@actions" - }, - "breadcrumbs": { - "@id": "http://localhost:55001/plone/front-page/@breadcrumbs" - }, - "contextnavigation": { - "@id": "http://localhost:55001/plone/front-page/@contextnavigation" - }, - "navigation": { - "@id": "http://localhost:55001/plone/front-page/@navigation" - }, - "types": { - "@id": "http://localhost:55001/plone/front-page/@types" - }, - "workflow": { - "@id": "http://localhost:55001/plone/front-page/@workflow" - } - }, - "@id": "http://localhost:55001/plone/front-page", - "@type": "Document", - "UID": "SomeUUID000000000000000000000001", - "allow_discussion": false, - "changeNote": "", - "contributors": [], - "created": "1995-07-31T13:45:00", - "creators": [ - "test_user_1_" - ], - "description": "Congratulations! You have successfully installed Plone.", - "effective": null, - "exclude_from_nav": false, - "expires": null, - "id": "front-page", - "is_folderish": false, - "language": "", - "layout": "document_view", - "lock": { - "locked": false, - "stealable": true - }, - "modified": "1995-07-31T17:30:00", - "next_item": {}, - "parent": { - "@id": "http://localhost:55001/plone", - "@type": "Plone Site", - "description": "", - "title": "Plone site" - }, - "previous_item": {}, - "relatedItems": [], - "review_state": "private", - "rights": "", - "subjects": [], - "table_of_contents": null, - "text": { - "content-type": "text/plain", - "data": "

If you're seeing this instead of the web site you were expecting, the owner of this web site has just installed Plone. Do not contact the Plone Team or the Plone mailing lists about this.

", - "encoding": "utf-8" - }, - "title": "Welcome to Plone", - "version": "current", - "versioning_enabled": true -} \ No newline at end of file + "@components": { + "actions": { + "@id": "http://localhost:55001/plone/front-page/@actions" + }, + "breadcrumbs": { + "@id": "http://localhost:55001/plone/front-page/@breadcrumbs" + }, + "contextnavigation": { + "@id": "http://localhost:55001/plone/front-page/@contextnavigation" + }, + "navigation": { + "@id": "http://localhost:55001/plone/front-page/@navigation" + }, + "types": { + "@id": "http://localhost:55001/plone/front-page/@types" + }, + "workflow": { + "@id": "http://localhost:55001/plone/front-page/@workflow" + } + }, + "@id": "http://localhost:55001/plone/front-page", + "@type": "Document", + "UID": "SomeUUID000000000000000000000001", + "allow_discussion": false, + "changeNote": "", + "contributors": [], + "created": "1995-07-31T13:45:00", + "creators": [ + "test_user_1_" + ], + "description": "Congratulations! You have successfully installed Plone.", + "effective": null, + "exclude_from_nav": false, + "expires": null, + "id": "front-page", + "is_folderish": false, + "language": "", + "layout": "document_view", + "lock": { + "locked": false, + "stealable": true + }, + "modified": "1995-07-31T17:30:00", + "next_item": {}, + "parent": { + "@id": "http://localhost:55001/plone", + "@type": "Plone Site", + "description": "", + "title": "Plone site" + }, + "previous_item": {}, + "relatedItems": [], + "review_state": "private", + "rights": "", + "subjects": [], + "table_of_contents": null, + "text": { + "content-type": "text/plain", + "data": "

If you're seeing this instead of the web site you were expecting, the owner of this web site has just installed Plone. Do not contact the Plone Team or the Plone mailing lists about this.

", + "encoding": "utf-8" + }, + "title": "Welcome to Plone", + "version": "current", + "versioning_enabled": true +} diff --git a/src/plone/restapi/tests/http-examples/expansion_expanded.resp b/src/plone/restapi/tests/http-examples/expansion_expanded.resp index 932914be81..b554f1f8c2 100644 --- a/src/plone/restapi/tests/http-examples/expansion_expanded.resp +++ b/src/plone/restapi/tests/http-examples/expansion_expanded.resp @@ -2,75 +2,75 @@ HTTP/1.1 200 OK Content-Type: application/json { - "@components": { - "actions": { - "@id": "http://localhost:55001/plone/front-page/@actions" - }, - "breadcrumbs": { - "@id": "http://localhost:55001/plone/front-page/@breadcrumbs", - "items": [ - { - "@id": "http://localhost:55001/plone/front-page", - "title": "Welcome to Plone" + "@components": { + "actions": { + "@id": "http://localhost:55001/plone/front-page/@actions" + }, + "breadcrumbs": { + "@id": "http://localhost:55001/plone/front-page/@breadcrumbs", + "items": [ + { + "@id": "http://localhost:55001/plone/front-page", + "title": "Welcome to Plone" + } + ], + "root": "http://localhost:55001/plone" + }, + "contextnavigation": { + "@id": "http://localhost:55001/plone/front-page/@contextnavigation" + }, + "navigation": { + "@id": "http://localhost:55001/plone/front-page/@navigation" + }, + "types": { + "@id": "http://localhost:55001/plone/front-page/@types" + }, + "workflow": { + "@id": "http://localhost:55001/plone/front-page/@workflow" } - ], - "root": "http://localhost:55001/plone" - }, - "contextnavigation": { - "@id": "http://localhost:55001/plone/front-page/@contextnavigation" - }, - "navigation": { - "@id": "http://localhost:55001/plone/front-page/@navigation" - }, - "types": { - "@id": "http://localhost:55001/plone/front-page/@types" - }, - "workflow": { - "@id": "http://localhost:55001/plone/front-page/@workflow" - } - }, - "@id": "http://localhost:55001/plone/front-page", - "@type": "Document", - "UID": "SomeUUID000000000000000000000001", - "allow_discussion": false, - "changeNote": "", - "contributors": [], - "created": "1995-07-31T13:45:00", - "creators": [ - "test_user_1_" - ], - "description": "Congratulations! You have successfully installed Plone.", - "effective": null, - "exclude_from_nav": false, - "expires": null, - "id": "front-page", - "is_folderish": false, - "language": "", - "layout": "document_view", - "lock": { - "locked": false, - "stealable": true - }, - "modified": "1995-07-31T17:30:00", - "next_item": {}, - "parent": { - "@id": "http://localhost:55001/plone", - "@type": "Plone Site", - "description": "", - "title": "Plone site" - }, - "previous_item": {}, - "relatedItems": [], - "review_state": "private", - "rights": "", - "subjects": [], - "table_of_contents": null, - "text": { - "content-type": "text/plain", - "data": "

If you're seeing this instead of the web site you were expecting, the owner of this web site has just installed Plone. Do not contact the Plone Team or the Plone mailing lists about this.

", - "encoding": "utf-8" - }, - "title": "Welcome to Plone", - "version": "current", - "versioning_enabled": true -} \ No newline at end of file + }, + "@id": "http://localhost:55001/plone/front-page", + "@type": "Document", + "UID": "SomeUUID000000000000000000000001", + "allow_discussion": false, + "changeNote": "", + "contributors": [], + "created": "1995-07-31T13:45:00", + "creators": [ + "test_user_1_" + ], + "description": "Congratulations! You have successfully installed Plone.", + "effective": null, + "exclude_from_nav": false, + "expires": null, + "id": "front-page", + "is_folderish": false, + "language": "", + "layout": "document_view", + "lock": { + "locked": false, + "stealable": true + }, + "modified": "1995-07-31T17:30:00", + "next_item": {}, + "parent": { + "@id": "http://localhost:55001/plone", + "@type": "Plone Site", + "description": "", + "title": "Plone site" + }, + "previous_item": {}, + "relatedItems": [], + "review_state": "private", + "rights": "", + "subjects": [], + "table_of_contents": null, + "text": { + "content-type": "text/plain", + "data": "

If you're seeing this instead of the web site you were expecting, the owner of this web site has just installed Plone. Do not contact the Plone Team or the Plone mailing lists about this.

", + "encoding": "utf-8" + }, + "title": "Welcome to Plone", + "version": "current", + "versioning_enabled": true +} diff --git a/src/plone/restapi/tests/http-examples/expansion_expanded_full.resp b/src/plone/restapi/tests/http-examples/expansion_expanded_full.resp index bca9e8985a..e7b16baeaf 100644 --- a/src/plone/restapi/tests/http-examples/expansion_expanded_full.resp +++ b/src/plone/restapi/tests/http-examples/expansion_expanded_full.resp @@ -2,255 +2,255 @@ HTTP/1.1 200 OK 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" + "@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" + }, + { + "icon": "", + "id": "redirection", + "title": "URL Management" + } + ], + "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": "dashboard", + "title": "Dashboard" + }, + { + "icon": "", + "id": "plone_setup", + "title": "Site Setup" + }, + { + "icon": "", + "id": "logout", + "title": "Log out" + } + ] + }, + "breadcrumbs": { + "@id": "http://localhost:55001/plone/front-page/@breadcrumbs", + "items": [ + { + "@id": "http://localhost:55001/plone/front-page", + "title": "Welcome to Plone" + } + ], + "root": "http://localhost:55001/plone" + }, + "contextnavigation": { + "@id": "http://localhost:55001/plone/front-page/@contextnavigation" + }, + "navigation": { + "@id": "http://localhost:55001/plone/front-page/@navigation", + "items": [ + { + "@id": "http://localhost:55001/plone", + "description": "", + "items": [], + "review_state": null, + "title": "Home" + }, + { + "@id": "http://localhost:55001/plone/front-page", + "description": "Congratulations! You have successfully installed Plone.", + "items": [], + "review_state": "private", + "title": "Welcome to Plone" + } + ] + }, + "types": [ + { + "@id": "http://localhost:55001/plone/@types/Collection", + "addable": false, + "title": "Collection" + }, + { + "@id": "http://localhost:55001/plone/@types/DXTestDocument", + "addable": false, + "title": "DX Test Document" + }, + { + "@id": "http://localhost:55001/plone/@types/Event", + "addable": false, + "title": "Event" + }, + { + "@id": "http://localhost:55001/plone/@types/File", + "addable": false, + "title": "File" + }, + { + "@id": "http://localhost:55001/plone/@types/Folder", + "addable": false, + "title": "Folder" + }, + { + "@id": "http://localhost:55001/plone/@types/Image", + "addable": false, + "title": "Image" + }, + { + "@id": "http://localhost:55001/plone/@types/Link", + "addable": false, + "title": "Link" + }, + { + "@id": "http://localhost:55001/plone/@types/News Item", + "addable": false, + "title": "News Item" + }, + { + "@id": "http://localhost:55001/plone/@types/Document", + "addable": false, + "title": "Page" + } + ], + "workflow": { + "@id": "http://localhost:55001/plone/front-page/@workflow", + "history": [ + { + "action": null, + "actor": "test_user_1_", + "comments": "", + "review_state": "private", + "time": "1995-07-31T17:30:00", + "title": "Private" + } + ], + "transitions": [ + { + "@id": "http://localhost:55001/plone/front-page/@workflow/publish", + "title": "Publish" + }, + { + "@id": "http://localhost:55001/plone/front-page/@workflow/submit", + "title": "Submit for publication" + } + ] } - ], - "object_buttons": [ - { - "icon": "", - "id": "cut", - "title": "Cut" - }, - { - "icon": "", - "id": "copy", - "title": "Copy" - }, - { - "icon": "", - "id": "delete", - "title": "Delete" - }, - { - "icon": "", - "id": "rename", - "title": "Rename" - }, - { - "icon": "", - "id": "redirection", - "title": "URL Management" - } - ], - "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": "dashboard", - "title": "Dashboard" - }, - { - "icon": "", - "id": "plone_setup", - "title": "Site Setup" - }, - { - "icon": "", - "id": "logout", - "title": "Log out" - } - ] - }, - "breadcrumbs": { - "@id": "http://localhost:55001/plone/front-page/@breadcrumbs", - "items": [ - { - "@id": "http://localhost:55001/plone/front-page", - "title": "Welcome to Plone" - } - ], - "root": "http://localhost:55001/plone" - }, - "contextnavigation": { - "@id": "http://localhost:55001/plone/front-page/@contextnavigation" - }, - "navigation": { - "@id": "http://localhost:55001/plone/front-page/@navigation", - "items": [ - { - "@id": "http://localhost:55001/plone", - "description": "", - "items": [], - "review_state": null, - "title": "Home" - }, - { - "@id": "http://localhost:55001/plone/front-page", - "description": "Congratulations! You have successfully installed Plone.", - "items": [], - "review_state": "private", - "title": "Welcome to Plone" - } - ] - }, - "types": [ - { - "@id": "http://localhost:55001/plone/@types/Collection", - "addable": false, - "title": "Collection" - }, - { - "@id": "http://localhost:55001/plone/@types/DXTestDocument", - "addable": false, - "title": "DX Test Document" - }, - { - "@id": "http://localhost:55001/plone/@types/Event", - "addable": false, - "title": "Event" - }, - { - "@id": "http://localhost:55001/plone/@types/File", - "addable": false, - "title": "File" - }, - { - "@id": "http://localhost:55001/plone/@types/Folder", - "addable": false, - "title": "Folder" - }, - { - "@id": "http://localhost:55001/plone/@types/Image", - "addable": false, - "title": "Image" - }, - { - "@id": "http://localhost:55001/plone/@types/Link", - "addable": false, - "title": "Link" - }, - { - "@id": "http://localhost:55001/plone/@types/News Item", - "addable": false, - "title": "News Item" - }, - { - "@id": "http://localhost:55001/plone/@types/Document", - "addable": false, - "title": "Page" - } - ], - "workflow": { - "@id": "http://localhost:55001/plone/front-page/@workflow", - "history": [ - { - "action": null, - "actor": "test_user_1_", - "comments": "", - "review_state": "private", - "time": "1995-07-31T17:30:00", - "title": "Private" - } - ], - "transitions": [ - { - "@id": "http://localhost:55001/plone/front-page/@workflow/publish", - "title": "Publish" - }, - { - "@id": "http://localhost:55001/plone/front-page/@workflow/submit", - "title": "Submit for publication" - } - ] - } - }, - "@id": "http://localhost:55001/plone/front-page", - "@type": "Document", - "UID": "SomeUUID000000000000000000000001", - "allow_discussion": false, - "changeNote": "", - "contributors": [], - "created": "1995-07-31T13:45:00", - "creators": [ - "test_user_1_" - ], - "description": "Congratulations! You have successfully installed Plone.", - "effective": null, - "exclude_from_nav": false, - "expires": null, - "id": "front-page", - "is_folderish": false, - "language": "", - "layout": "document_view", - "lock": { - "locked": false, - "stealable": true - }, - "modified": "1995-07-31T17:30:00", - "next_item": {}, - "parent": { - "@id": "http://localhost:55001/plone", - "@type": "Plone Site", - "description": "", - "title": "Plone site" - }, - "previous_item": {}, - "relatedItems": [], - "review_state": "private", - "rights": "", - "subjects": [], - "table_of_contents": null, - "text": { - "content-type": "text/plain", - "data": "

If you're seeing this instead of the web site you were expecting, the owner of this web site has just installed Plone. Do not contact the Plone Team or the Plone mailing lists about this.

", - "encoding": "utf-8" - }, - "title": "Welcome to Plone", - "version": "current", - "versioning_enabled": true -} \ No newline at end of file + }, + "@id": "http://localhost:55001/plone/front-page", + "@type": "Document", + "UID": "SomeUUID000000000000000000000001", + "allow_discussion": false, + "changeNote": "", + "contributors": [], + "created": "1995-07-31T13:45:00", + "creators": [ + "test_user_1_" + ], + "description": "Congratulations! You have successfully installed Plone.", + "effective": null, + "exclude_from_nav": false, + "expires": null, + "id": "front-page", + "is_folderish": false, + "language": "", + "layout": "document_view", + "lock": { + "locked": false, + "stealable": true + }, + "modified": "1995-07-31T17:30:00", + "next_item": {}, + "parent": { + "@id": "http://localhost:55001/plone", + "@type": "Plone Site", + "description": "", + "title": "Plone site" + }, + "previous_item": {}, + "relatedItems": [], + "review_state": "private", + "rights": "", + "subjects": [], + "table_of_contents": null, + "text": { + "content-type": "text/plain", + "data": "

If you're seeing this instead of the web site you were expecting, the owner of this web site has just installed Plone. Do not contact the Plone Team or the Plone mailing lists about this.

", + "encoding": "utf-8" + }, + "title": "Welcome to Plone", + "version": "current", + "versioning_enabled": true +} diff --git a/src/plone/restapi/tests/http-examples/file.resp b/src/plone/restapi/tests/http-examples/file.resp index 291ae8ca25..47556c6c91 100644 --- a/src/plone/restapi/tests/http-examples/file.resp +++ b/src/plone/restapi/tests/http-examples/file.resp @@ -2,68 +2,68 @@ HTTP/1.1 200 OK Content-Type: application/json { - "@components": { - "actions": { - "@id": "http://localhost:55001/plone/file/@actions" - }, - "breadcrumbs": { - "@id": "http://localhost:55001/plone/file/@breadcrumbs" - }, - "contextnavigation": { - "@id": "http://localhost:55001/plone/file/@contextnavigation" - }, - "navigation": { - "@id": "http://localhost:55001/plone/file/@navigation" - }, - "types": { - "@id": "http://localhost:55001/plone/file/@types" - }, - "workflow": { - "@id": "http://localhost:55001/plone/file/@workflow" - } - }, - "@id": "http://localhost:55001/plone/file", - "@type": "File", - "UID": "SomeUUID000000000000000000000002", - "allow_discussion": false, - "contributors": [], - "created": "1995-07-31T13:45:00", - "creators": [ - "test_user_1_" - ], - "description": "This is a file", - "effective": null, - "exclude_from_nav": false, - "expires": null, - "file": { - "content-type": "application/pdf", - "download": "http://localhost:55001/plone/file/@@download/file", - "filename": "file.pdf", - "size": 74429 - }, - "id": "file", - "is_folderish": false, - "language": "", - "layout": "file_view", - "lock": {}, - "modified": "1995-07-31T17:30:00", - "next_item": {}, - "parent": { - "@id": "http://localhost:55001/plone", - "@type": "Plone Site", - "description": "", - "title": "Plone site" - }, - "previous_item": { - "@id": "http://localhost:55001/plone/front-page", - "@type": "Document", - "description": "Congratulations! You have successfully installed Plone.", - "title": "Welcome to Plone" - }, - "relatedItems": [], - "review_state": null, - "rights": "", - "subjects": [], - "title": "My File", - "version": "current" -} \ No newline at end of file + "@components": { + "actions": { + "@id": "http://localhost:55001/plone/file/@actions" + }, + "breadcrumbs": { + "@id": "http://localhost:55001/plone/file/@breadcrumbs" + }, + "contextnavigation": { + "@id": "http://localhost:55001/plone/file/@contextnavigation" + }, + "navigation": { + "@id": "http://localhost:55001/plone/file/@navigation" + }, + "types": { + "@id": "http://localhost:55001/plone/file/@types" + }, + "workflow": { + "@id": "http://localhost:55001/plone/file/@workflow" + } + }, + "@id": "http://localhost:55001/plone/file", + "@type": "File", + "UID": "SomeUUID000000000000000000000002", + "allow_discussion": false, + "contributors": [], + "created": "1995-07-31T13:45:00", + "creators": [ + "test_user_1_" + ], + "description": "This is a file", + "effective": null, + "exclude_from_nav": false, + "expires": null, + "file": { + "content-type": "application/pdf", + "download": "http://localhost:55001/plone/file/@@download/file", + "filename": "file.pdf", + "size": 74429 + }, + "id": "file", + "is_folderish": false, + "language": "", + "layout": "file_view", + "lock": {}, + "modified": "1995-07-31T17:30:00", + "next_item": {}, + "parent": { + "@id": "http://localhost:55001/plone", + "@type": "Plone Site", + "description": "", + "title": "Plone site" + }, + "previous_item": { + "@id": "http://localhost:55001/plone/front-page", + "@type": "Document", + "description": "Congratulations! You have successfully installed Plone.", + "title": "Welcome to Plone" + }, + "relatedItems": [], + "review_state": null, + "rights": "", + "subjects": [], + "title": "My File", + "version": "current" +} diff --git a/src/plone/restapi/tests/http-examples/folder.resp b/src/plone/restapi/tests/http-examples/folder.resp index cc7f0324ab..5f6af7eeab 100644 --- a/src/plone/restapi/tests/http-examples/folder.resp +++ b/src/plone/restapi/tests/http-examples/folder.resp @@ -2,80 +2,80 @@ HTTP/1.1 200 OK Content-Type: application/json { - "@components": { - "actions": { - "@id": "http://localhost:55001/plone/folder/@actions" - }, - "breadcrumbs": { - "@id": "http://localhost:55001/plone/folder/@breadcrumbs" - }, - "contextnavigation": { - "@id": "http://localhost:55001/plone/folder/@contextnavigation" - }, - "navigation": { - "@id": "http://localhost:55001/plone/folder/@navigation" - }, - "types": { - "@id": "http://localhost:55001/plone/folder/@types" - }, - "workflow": { - "@id": "http://localhost:55001/plone/folder/@workflow" - } - }, - "@id": "http://localhost:55001/plone/folder", - "@type": "Folder", - "UID": "SomeUUID000000000000000000000002", - "allow_discussion": false, - "contributors": [], - "created": "1995-07-31T13:45:00", - "creators": [ - "test_user_1_" - ], - "description": "This is a folder with two documents", - "effective": null, - "exclude_from_nav": false, - "expires": null, - "id": "folder", - "is_folderish": true, - "items": [ - { - "@id": "http://localhost:55001/plone/folder/doc1", - "@type": "Document", - "description": "", - "review_state": "private", - "title": "A document within a folder" - }, - { - "@id": "http://localhost:55001/plone/folder/doc2", - "@type": "Document", - "description": "", - "review_state": "private", - "title": "A document within a folder" - } - ], - "items_total": 2, - "language": "", - "layout": "listing_view", - "lock": {}, - "modified": "1995-07-31T17:30:00", - "nextPreviousEnabled": false, - "next_item": {}, - "parent": { - "@id": "http://localhost:55001/plone", - "@type": "Plone Site", - "description": "", - "title": "Plone site" - }, - "previous_item": { - "@id": "http://localhost:55001/plone/front-page", - "@type": "Document", - "description": "Congratulations! You have successfully installed Plone.", - "title": "Welcome to Plone" - }, - "relatedItems": [], - "review_state": "private", - "rights": "", - "subjects": [], - "title": "My Folder", - "version": "current" -} \ No newline at end of file + "@components": { + "actions": { + "@id": "http://localhost:55001/plone/folder/@actions" + }, + "breadcrumbs": { + "@id": "http://localhost:55001/plone/folder/@breadcrumbs" + }, + "contextnavigation": { + "@id": "http://localhost:55001/plone/folder/@contextnavigation" + }, + "navigation": { + "@id": "http://localhost:55001/plone/folder/@navigation" + }, + "types": { + "@id": "http://localhost:55001/plone/folder/@types" + }, + "workflow": { + "@id": "http://localhost:55001/plone/folder/@workflow" + } + }, + "@id": "http://localhost:55001/plone/folder", + "@type": "Folder", + "UID": "SomeUUID000000000000000000000002", + "allow_discussion": false, + "contributors": [], + "created": "1995-07-31T13:45:00", + "creators": [ + "test_user_1_" + ], + "description": "This is a folder with two documents", + "effective": null, + "exclude_from_nav": false, + "expires": null, + "id": "folder", + "is_folderish": true, + "items": [ + { + "@id": "http://localhost:55001/plone/folder/doc1", + "@type": "Document", + "description": "", + "review_state": "private", + "title": "A document within a folder" + }, + { + "@id": "http://localhost:55001/plone/folder/doc2", + "@type": "Document", + "description": "", + "review_state": "private", + "title": "A document within a folder" + } + ], + "items_total": 2, + "language": "", + "layout": "listing_view", + "lock": {}, + "modified": "1995-07-31T17:30:00", + "nextPreviousEnabled": false, + "next_item": {}, + "parent": { + "@id": "http://localhost:55001/plone", + "@type": "Plone Site", + "description": "", + "title": "Plone site" + }, + "previous_item": { + "@id": "http://localhost:55001/plone/front-page", + "@type": "Document", + "description": "Congratulations! You have successfully installed Plone.", + "title": "Welcome to Plone" + }, + "relatedItems": [], + "review_state": "private", + "rights": "", + "subjects": [], + "title": "My Folder", + "version": "current" +} diff --git a/src/plone/restapi/tests/http-examples/groups.resp b/src/plone/restapi/tests/http-examples/groups.resp index 6f24788b5e..07bd221856 100644 --- a/src/plone/restapi/tests/http-examples/groups.resp +++ b/src/plone/restapi/tests/http-examples/groups.resp @@ -2,60 +2,60 @@ HTTP/1.1 200 OK Content-Type: application/json [ - { - "@id": "http://localhost:55001/plone/@groups/Administrators", - "description": "", - "email": "", - "groupname": "Administrators", - "id": "Administrators", - "roles": [ - "Manager", - "Authenticated" - ], - "title": "Administrators" - }, - { - "@id": "http://localhost:55001/plone/@groups/Reviewers", - "description": "", - "email": "", - "groupname": "Reviewers", - "id": "Reviewers", - "roles": [ - "Reviewer", - "Authenticated" - ], - "title": "Reviewers" - }, - { - "@id": "http://localhost:55001/plone/@groups/Site Administrators", - "description": "", - "email": "", - "groupname": "Site Administrators", - "id": "Site Administrators", - "roles": [ - "Site Administrator", - "Authenticated" - ], - "title": "Site Administrators" - }, - { - "@id": "http://localhost:55001/plone/@groups/ploneteam", - "description": "We are Plone", - "email": "ploneteam@plone.org", - "groupname": "ploneteam", - "id": "ploneteam", - "roles": [ - "Authenticated" - ], - "title": "Plone Team" - }, - { - "@id": "http://localhost:55001/plone/@groups/AuthenticatedUsers", - "description": "Automatic Group Provider", - "email": "", - "groupname": "AuthenticatedUsers", - "id": "AuthenticatedUsers", - "roles": [], - "title": "Authenticated Users (Virtual Group)" - } -] \ No newline at end of file + { + "@id": "http://localhost:55001/plone/@groups/Administrators", + "description": "", + "email": "", + "groupname": "Administrators", + "id": "Administrators", + "roles": [ + "Manager", + "Authenticated" + ], + "title": "Administrators" + }, + { + "@id": "http://localhost:55001/plone/@groups/Reviewers", + "description": "", + "email": "", + "groupname": "Reviewers", + "id": "Reviewers", + "roles": [ + "Reviewer", + "Authenticated" + ], + "title": "Reviewers" + }, + { + "@id": "http://localhost:55001/plone/@groups/Site Administrators", + "description": "", + "email": "", + "groupname": "Site Administrators", + "id": "Site Administrators", + "roles": [ + "Site Administrator", + "Authenticated" + ], + "title": "Site Administrators" + }, + { + "@id": "http://localhost:55001/plone/@groups/ploneteam", + "description": "We are Plone", + "email": "ploneteam@plone.org", + "groupname": "ploneteam", + "id": "ploneteam", + "roles": [ + "Authenticated" + ], + "title": "Plone Team" + }, + { + "@id": "http://localhost:55001/plone/@groups/AuthenticatedUsers", + "description": "Automatic Group Provider", + "email": "", + "groupname": "AuthenticatedUsers", + "id": "AuthenticatedUsers", + "roles": [], + "title": "Authenticated Users (Virtual Group)" + } +] diff --git a/src/plone/restapi/tests/http-examples/groups_created.req b/src/plone/restapi/tests/http-examples/groups_created.req index fd6d460677..26c197cbec 100644 --- a/src/plone/restapi/tests/http-examples/groups_created.req +++ b/src/plone/restapi/tests/http-examples/groups_created.req @@ -18,4 +18,4 @@ Content-Type: application/json "admin", "test_user_1_" ] -} \ No newline at end of file +} diff --git a/src/plone/restapi/tests/http-examples/groups_created.resp b/src/plone/restapi/tests/http-examples/groups_created.resp index db08b74d5c..66fb026f35 100644 --- a/src/plone/restapi/tests/http-examples/groups_created.resp +++ b/src/plone/restapi/tests/http-examples/groups_created.resp @@ -3,23 +3,23 @@ Content-Type: application/json Location: http://localhost:55001/plone/@groups/fwt { - "@id": "http://localhost:55001/plone/@groups/fwt", - "description": "The Plone Framework Team", - "email": "fwt@plone.org", - "groupname": "fwt", - "id": "fwt", - "roles": [ - "Manager", - "Authenticated" - ], - "title": "Framework Team", - "users": { - "@id": "http://localhost:55001/plone/@groups", - "items": [ - "Administrators", - "admin", - "test_user_1_" - ], - "items_total": 3 - } -} \ No newline at end of file + "@id": "http://localhost:55001/plone/@groups/fwt", + "description": "The Plone Framework Team", + "email": "fwt@plone.org", + "groupname": "fwt", + "id": "fwt", + "roles": [ + "Manager", + "Authenticated" + ], + "title": "Framework Team", + "users": { + "@id": "http://localhost:55001/plone/@groups", + "items": [ + "Administrators", + "admin", + "test_user_1_" + ], + "items_total": 3 + } +} diff --git a/src/plone/restapi/tests/http-examples/groups_filtered_by_groupname.resp b/src/plone/restapi/tests/http-examples/groups_filtered_by_groupname.resp index 2932114efe..eaa2f96734 100644 --- a/src/plone/restapi/tests/http-examples/groups_filtered_by_groupname.resp +++ b/src/plone/restapi/tests/http-examples/groups_filtered_by_groupname.resp @@ -2,15 +2,15 @@ HTTP/1.1 200 OK Content-Type: application/json [ - { - "@id": "http://localhost:55001/plone/@groups/ploneteam", - "description": "We are Plone", - "email": "ploneteam@plone.org", - "groupname": "ploneteam", - "id": "ploneteam", - "roles": [ - "Authenticated" - ], - "title": "Plone Team" - } -] \ No newline at end of file + { + "@id": "http://localhost:55001/plone/@groups/ploneteam", + "description": "We are Plone", + "email": "ploneteam@plone.org", + "groupname": "ploneteam", + "id": "ploneteam", + "roles": [ + "Authenticated" + ], + "title": "Plone Team" + } +] diff --git a/src/plone/restapi/tests/http-examples/groups_get.resp b/src/plone/restapi/tests/http-examples/groups_get.resp index 656466e018..e54bb1555c 100644 --- a/src/plone/restapi/tests/http-examples/groups_get.resp +++ b/src/plone/restapi/tests/http-examples/groups_get.resp @@ -2,18 +2,18 @@ HTTP/1.1 200 OK Content-Type: application/json { - "@id": "http://localhost:55001/plone/@groups/ploneteam", - "description": "We are Plone", - "email": "ploneteam@plone.org", - "groupname": "ploneteam", - "id": "ploneteam", - "roles": [ - "Authenticated" - ], - "title": "Plone Team", - "users": { - "@id": "http://localhost:55001/plone/@groups/ploneteam", - "items": [], - "items_total": 0 - } -} \ No newline at end of file + "@id": "http://localhost:55001/plone/@groups/ploneteam", + "description": "We are Plone", + "email": "ploneteam@plone.org", + "groupname": "ploneteam", + "id": "ploneteam", + "roles": [ + "Authenticated" + ], + "title": "Plone Team", + "users": { + "@id": "http://localhost:55001/plone/@groups/ploneteam", + "items": [], + "items_total": 0 + } +} diff --git a/src/plone/restapi/tests/http-examples/groups_update.req b/src/plone/restapi/tests/http-examples/groups_update.req index cae1256832..70fe756077 100644 --- a/src/plone/restapi/tests/http-examples/groups_update.req +++ b/src/plone/restapi/tests/http-examples/groups_update.req @@ -8,4 +8,4 @@ Content-Type: application/json "users": { "test_user_1_": false } -} \ No newline at end of file +} diff --git a/src/plone/restapi/tests/http-examples/history_get.resp b/src/plone/restapi/tests/http-examples/history_get.resp index 7aec16f905..de29a07dc9 100644 --- a/src/plone/restapi/tests/http-examples/history_get.resp +++ b/src/plone/restapi/tests/http-examples/history_get.resp @@ -2,35 +2,35 @@ HTTP/1.1 200 OK Content-Type: application/json [ - { - "@id": "http://localhost:55001/plone/front-page/@history/0", - "action": "Edited", - "actor": { - "@id": "http://localhost:55001/plone/@users/test-user", - "fullname": "test-user", - "id": "test-user", - "username": null - }, - "comments": "Initial version", - "may_revert": true, - "time": "1995-07-31T17:30:00", - "transition_title": "Edited", - "type": "versioning", - "version": 0 - }, - { - "action": "Create", - "actor": { - "@id": "http://localhost:55001/plone/@users/test_user_1_", - "fullname": "test_user_1_", - "id": "test_user_1_", - "username": null - }, - "comments": "", - "review_state": "private", - "state_title": "Private", - "time": "1995-07-31T18:30:00", - "transition_title": "Create", - "type": "workflow" - } -] \ No newline at end of file + { + "@id": "http://localhost:55001/plone/front-page/@history/0", + "action": "Edited", + "actor": { + "@id": "http://localhost:55001/plone/@users/test-user", + "fullname": "test-user", + "id": "test-user", + "username": null + }, + "comments": "Initial version", + "may_revert": true, + "time": "1995-07-31T17:30:00", + "transition_title": "Edited", + "type": "versioning", + "version": 0 + }, + { + "action": "Create", + "actor": { + "@id": "http://localhost:55001/plone/@users/test_user_1_", + "fullname": "test_user_1_", + "id": "test_user_1_", + "username": null + }, + "comments": "", + "review_state": "private", + "state_title": "Private", + "time": "1995-07-31T18:30:00", + "transition_title": "Create", + "type": "workflow" + } +] diff --git a/src/plone/restapi/tests/http-examples/history_revert.req b/src/plone/restapi/tests/http-examples/history_revert.req index b094e3e7a2..039477224c 100644 --- a/src/plone/restapi/tests/http-examples/history_revert.req +++ b/src/plone/restapi/tests/http-examples/history_revert.req @@ -5,4 +5,4 @@ Content-Type: application/json { "version": 0 -} \ No newline at end of file +} diff --git a/src/plone/restapi/tests/http-examples/history_revert.resp b/src/plone/restapi/tests/http-examples/history_revert.resp index dab8e2e79d..1f25c75379 100644 --- a/src/plone/restapi/tests/http-examples/history_revert.resp +++ b/src/plone/restapi/tests/http-examples/history_revert.resp @@ -2,5 +2,5 @@ HTTP/1.1 200 OK Content-Type: application/json { - "message": "Welcome to Plone has been reverted to revision 0." -} \ No newline at end of file + "message": "Welcome to Plone has been reverted to revision 0." +} diff --git a/src/plone/restapi/tests/http-examples/image.resp b/src/plone/restapi/tests/http-examples/image.resp index ce499f06b2..12d9158fd7 100644 --- a/src/plone/restapi/tests/http-examples/image.resp +++ b/src/plone/restapi/tests/http-examples/image.resp @@ -2,107 +2,107 @@ HTTP/1.1 200 OK Content-Type: application/json { - "@components": { - "actions": { - "@id": "http://localhost:55001/plone/image/@actions" - }, - "breadcrumbs": { - "@id": "http://localhost:55001/plone/image/@breadcrumbs" - }, - "contextnavigation": { - "@id": "http://localhost:55001/plone/image/@contextnavigation" - }, - "navigation": { - "@id": "http://localhost:55001/plone/image/@navigation" - }, - "types": { - "@id": "http://localhost:55001/plone/image/@types" - }, - "workflow": { - "@id": "http://localhost:55001/plone/image/@workflow" - } - }, - "@id": "http://localhost:55001/plone/image", - "@type": "Image", - "UID": "SomeUUID000000000000000000000002", - "allow_discussion": false, - "contributors": [], - "created": "1995-07-31T13:45:00", - "creators": [ - "test_user_1_" - ], - "description": "This is an image", - "effective": null, - "exclude_from_nav": false, - "expires": null, - "id": "image", - "image": { - "content-type": "image/png", - "download": "http://localhost:55001/plone/image/@@images/uuid1.png", - "filename": "image.png", - "height": 56, - "scales": { - "icon": { - "download": "http://localhost:55001/plone/image/@@images/uuid1.png", - "height": 8, - "width": 32 - }, - "large": { - "download": "http://localhost:55001/plone/image/@@images/uuid1.png", - "height": 56, + "@components": { + "actions": { + "@id": "http://localhost:55001/plone/image/@actions" + }, + "breadcrumbs": { + "@id": "http://localhost:55001/plone/image/@breadcrumbs" + }, + "contextnavigation": { + "@id": "http://localhost:55001/plone/image/@contextnavigation" + }, + "navigation": { + "@id": "http://localhost:55001/plone/image/@navigation" + }, + "types": { + "@id": "http://localhost:55001/plone/image/@types" + }, + "workflow": { + "@id": "http://localhost:55001/plone/image/@workflow" + } + }, + "@id": "http://localhost:55001/plone/image", + "@type": "Image", + "UID": "SomeUUID000000000000000000000002", + "allow_discussion": false, + "contributors": [], + "created": "1995-07-31T13:45:00", + "creators": [ + "test_user_1_" + ], + "description": "This is an image", + "effective": null, + "exclude_from_nav": false, + "expires": null, + "id": "image", + "image": { + "content-type": "image/png", + "download": "http://localhost:55001/plone/image/@@images/uuid1.png", + "filename": "image.png", + "height": 56, + "scales": { + "icon": { + "download": "http://localhost:55001/plone/image/@@images/uuid1.png", + "height": 8, + "width": 32 + }, + "large": { + "download": "http://localhost:55001/plone/image/@@images/uuid1.png", + "height": 56, + "width": 215 + }, + "listing": { + "download": "http://localhost:55001/plone/image/@@images/uuid1.png", + "height": 4, + "width": 16 + }, + "mini": { + "download": "http://localhost:55001/plone/image/@@images/uuid1.png", + "height": 52, + "width": 200 + }, + "preview": { + "download": "http://localhost:55001/plone/image/@@images/uuid1.png", + "height": 56, + "width": 215 + }, + "thumb": { + "download": "http://localhost:55001/plone/image/@@images/uuid1.png", + "height": 33, + "width": 128 + }, + "tile": { + "download": "http://localhost:55001/plone/image/@@images/uuid1.png", + "height": 16, + "width": 64 + } + }, + "size": 1185, "width": 215 - }, - "listing": { - "download": "http://localhost:55001/plone/image/@@images/uuid1.png", - "height": 4, - "width": 16 - }, - "mini": { - "download": "http://localhost:55001/plone/image/@@images/uuid1.png", - "height": 52, - "width": 200 - }, - "preview": { - "download": "http://localhost:55001/plone/image/@@images/uuid1.png", - "height": 56, - "width": 215 - }, - "thumb": { - "download": "http://localhost:55001/plone/image/@@images/uuid1.png", - "height": 33, - "width": 128 - }, - "tile": { - "download": "http://localhost:55001/plone/image/@@images/uuid1.png", - "height": 16, - "width": 64 - } - }, - "size": 1185, - "width": 215 - }, - "is_folderish": false, - "language": "", - "layout": "image_view", - "lock": {}, - "modified": "1995-07-31T17:30:00", - "next_item": {}, - "parent": { - "@id": "http://localhost:55001/plone", - "@type": "Plone Site", - "description": "", - "title": "Plone site" - }, - "previous_item": { - "@id": "http://localhost:55001/plone/front-page", - "@type": "Document", - "description": "Congratulations! You have successfully installed Plone.", - "title": "Welcome to Plone" - }, - "relatedItems": [], - "review_state": null, - "rights": "", - "subjects": [], - "title": "My Image", - "version": "current" -} \ No newline at end of file + }, + "is_folderish": false, + "language": "", + "layout": "image_view", + "lock": {}, + "modified": "1995-07-31T17:30:00", + "next_item": {}, + "parent": { + "@id": "http://localhost:55001/plone", + "@type": "Plone Site", + "description": "", + "title": "Plone site" + }, + "previous_item": { + "@id": "http://localhost:55001/plone/front-page", + "@type": "Document", + "description": "Congratulations! You have successfully installed Plone.", + "title": "Welcome to Plone" + }, + "relatedItems": [], + "review_state": null, + "rights": "", + "subjects": [], + "title": "My Image", + "version": "current" +} diff --git a/src/plone/restapi/tests/http-examples/jwt_logged_in.resp b/src/plone/restapi/tests/http-examples/jwt_logged_in.resp index b178df6e35..7e8dca4f6c 100644 --- a/src/plone/restapi/tests/http-examples/jwt_logged_in.resp +++ b/src/plone/restapi/tests/http-examples/jwt_logged_in.resp @@ -2,37 +2,37 @@ HTTP/1.1 200 OK Content-Type: application/json { - "@components": { - "actions": { - "@id": "http://localhost:55001/plone/@actions" - }, - "breadcrumbs": { - "@id": "http://localhost:55001/plone/@breadcrumbs" - }, - "contextnavigation": { - "@id": "http://localhost:55001/plone/@contextnavigation" - }, - "navigation": { - "@id": "http://localhost:55001/plone/@navigation" - } - }, - "@id": "http://localhost:55001/plone/", - "@type": "Plone Site", - "blocks": {}, - "blocks_layout": {}, - "description": "", - "id": "plone", - "is_folderish": true, - "items": [ - { - "@id": "http://localhost:55001/plone/front-page", - "@type": "Document", - "description": "Congratulations! You have successfully installed Plone.", - "review_state": "private", - "title": "Welcome to Plone" - } - ], - "items_total": 1, - "parent": {}, - "title": "Plone site" -} \ No newline at end of file + "@components": { + "actions": { + "@id": "http://localhost:55001/plone/@actions" + }, + "breadcrumbs": { + "@id": "http://localhost:55001/plone/@breadcrumbs" + }, + "contextnavigation": { + "@id": "http://localhost:55001/plone/@contextnavigation" + }, + "navigation": { + "@id": "http://localhost:55001/plone/@navigation" + } + }, + "@id": "http://localhost:55001/plone/", + "@type": "Plone Site", + "blocks": {}, + "blocks_layout": {}, + "description": "", + "id": "plone", + "is_folderish": true, + "items": [ + { + "@id": "http://localhost:55001/plone/front-page", + "@type": "Document", + "description": "Congratulations! You have successfully installed Plone.", + "review_state": "private", + "title": "Welcome to Plone" + } + ], + "items_total": 1, + "parent": {}, + "title": "Plone site" +} diff --git a/src/plone/restapi/tests/http-examples/jwt_login.req b/src/plone/restapi/tests/http-examples/jwt_login.req index 467773a827..7f2382cfbd 100644 --- a/src/plone/restapi/tests/http-examples/jwt_login.req +++ b/src/plone/restapi/tests/http-examples/jwt_login.req @@ -5,4 +5,4 @@ Content-Type: application/json { "login": "admin", "password": "secret" -} \ No newline at end of file +} diff --git a/src/plone/restapi/tests/http-examples/jwt_login.resp b/src/plone/restapi/tests/http-examples/jwt_login.resp index f2e579491e..b145aa1ab9 100644 --- a/src/plone/restapi/tests/http-examples/jwt_login.resp +++ b/src/plone/restapi/tests/http-examples/jwt_login.resp @@ -2,5 +2,5 @@ HTTP/1.1 200 OK Content-Type: application/json { - "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbiIsImZ1bGxuYW1lIjoiIn0.krI8ep0NQHyYYObtXl1ygI4NM2UbHUlZqF7kKnx9JFo" -} \ No newline at end of file + "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbiIsImZ1bGxuYW1lIjoiIn0.krI8ep0NQHyYYObtXl1ygI4NM2UbHUlZqF7kKnx9JFo" +} diff --git a/src/plone/restapi/tests/http-examples/jwt_login_renew.resp b/src/plone/restapi/tests/http-examples/jwt_login_renew.resp index f2e579491e..b145aa1ab9 100644 --- a/src/plone/restapi/tests/http-examples/jwt_login_renew.resp +++ b/src/plone/restapi/tests/http-examples/jwt_login_renew.resp @@ -2,5 +2,5 @@ HTTP/1.1 200 OK Content-Type: application/json { - "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbiIsImZ1bGxuYW1lIjoiIn0.krI8ep0NQHyYYObtXl1ygI4NM2UbHUlZqF7kKnx9JFo" -} \ No newline at end of file + "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbiIsImZ1bGxuYW1lIjoiIn0.krI8ep0NQHyYYObtXl1ygI4NM2UbHUlZqF7kKnx9JFo" +} diff --git a/src/plone/restapi/tests/http-examples/link.resp b/src/plone/restapi/tests/http-examples/link.resp index 902f8e2cc0..7913206eab 100644 --- a/src/plone/restapi/tests/http-examples/link.resp +++ b/src/plone/restapi/tests/http-examples/link.resp @@ -2,64 +2,64 @@ HTTP/1.1 200 OK Content-Type: application/json { - "@components": { - "actions": { - "@id": "http://localhost:55001/plone/link/@actions" - }, - "breadcrumbs": { - "@id": "http://localhost:55001/plone/link/@breadcrumbs" - }, - "contextnavigation": { - "@id": "http://localhost:55001/plone/link/@contextnavigation" - }, - "navigation": { - "@id": "http://localhost:55001/plone/link/@navigation" - }, - "types": { - "@id": "http://localhost:55001/plone/link/@types" - }, - "workflow": { - "@id": "http://localhost:55001/plone/link/@workflow" - } - }, - "@id": "http://localhost:55001/plone/link", - "@type": "Link", - "UID": "SomeUUID000000000000000000000002", - "allow_discussion": false, - "changeNote": "", - "contributors": [], - "created": "1995-07-31T13:45:00", - "creators": [ - "test_user_1_" - ], - "description": "This is a link", - "effective": null, - "exclude_from_nav": false, - "expires": null, - "id": "link", - "is_folderish": false, - "language": "", - "layout": "link_redirect_view", - "lock": {}, - "modified": "1995-07-31T17:30:00", - "next_item": {}, - "parent": { - "@id": "http://localhost:55001/plone", - "@type": "Plone Site", - "description": "", - "title": "Plone site" - }, - "previous_item": { - "@id": "http://localhost:55001/plone/front-page", - "@type": "Document", - "description": "Congratulations! You have successfully installed Plone.", - "title": "Welcome to Plone" - }, - "remoteUrl": "http://localhost:55001/plone", - "review_state": "private", - "rights": "", - "subjects": [], - "title": "My Link", - "version": "current", - "versioning_enabled": true -} \ No newline at end of file + "@components": { + "actions": { + "@id": "http://localhost:55001/plone/link/@actions" + }, + "breadcrumbs": { + "@id": "http://localhost:55001/plone/link/@breadcrumbs" + }, + "contextnavigation": { + "@id": "http://localhost:55001/plone/link/@contextnavigation" + }, + "navigation": { + "@id": "http://localhost:55001/plone/link/@navigation" + }, + "types": { + "@id": "http://localhost:55001/plone/link/@types" + }, + "workflow": { + "@id": "http://localhost:55001/plone/link/@workflow" + } + }, + "@id": "http://localhost:55001/plone/link", + "@type": "Link", + "UID": "SomeUUID000000000000000000000002", + "allow_discussion": false, + "changeNote": "", + "contributors": [], + "created": "1995-07-31T13:45:00", + "creators": [ + "test_user_1_" + ], + "description": "This is a link", + "effective": null, + "exclude_from_nav": false, + "expires": null, + "id": "link", + "is_folderish": false, + "language": "", + "layout": "link_redirect_view", + "lock": {}, + "modified": "1995-07-31T17:30:00", + "next_item": {}, + "parent": { + "@id": "http://localhost:55001/plone", + "@type": "Plone Site", + "description": "", + "title": "Plone site" + }, + "previous_item": { + "@id": "http://localhost:55001/plone/front-page", + "@type": "Document", + "description": "Congratulations! You have successfully installed Plone.", + "title": "Welcome to Plone" + }, + "remoteUrl": "http://localhost:55001/plone", + "review_state": "private", + "rights": "", + "subjects": [], + "title": "My Link", + "version": "current", + "versioning_enabled": true +} diff --git a/src/plone/restapi/tests/http-examples/lock.resp b/src/plone/restapi/tests/http-examples/lock.resp index 3b957055ab..5cbb1a9d2a 100644 --- a/src/plone/restapi/tests/http-examples/lock.resp +++ b/src/plone/restapi/tests/http-examples/lock.resp @@ -2,14 +2,14 @@ HTTP/1.1 200 OK Content-Type: application/json { - "created": "1995-07-31T17:30:00", - "creator": "admin", - "creator_name": "admin", - "creator_url": "http://localhost:55001/plone/author/admin", - "locked": true, - "name": "plone.locking.stealable", - "stealable": true, - "time": 807211800.0, - "timeout": 600, - "token": "0.684672730996-0.25195226375-00105A989226:1477076400.000" -} \ No newline at end of file + "created": "1995-07-31T17:30:00", + "creator": "admin", + "creator_name": "admin", + "creator_url": "http://localhost:55001/plone/author/admin", + "locked": true, + "name": "plone.locking.stealable", + "stealable": true, + "time": 807211800.0, + "timeout": 600, + "token": "0.684672730996-0.25195226375-00105A989226:1477076400.000" +} diff --git a/src/plone/restapi/tests/http-examples/lock_get.resp b/src/plone/restapi/tests/http-examples/lock_get.resp index 52852385e7..4d6986ed51 100644 --- a/src/plone/restapi/tests/http-examples/lock_get.resp +++ b/src/plone/restapi/tests/http-examples/lock_get.resp @@ -2,6 +2,6 @@ HTTP/1.1 200 OK Content-Type: application/json { - "locked": false, - "stealable": true -} \ No newline at end of file + "locked": false, + "stealable": true +} diff --git a/src/plone/restapi/tests/http-examples/lock_nonstealable_timeout.req b/src/plone/restapi/tests/http-examples/lock_nonstealable_timeout.req index 40383b764b..8572a827c0 100644 --- a/src/plone/restapi/tests/http-examples/lock_nonstealable_timeout.req +++ b/src/plone/restapi/tests/http-examples/lock_nonstealable_timeout.req @@ -6,4 +6,4 @@ Content-Type: application/json { "stealable": false, "timeout": 3600 -} \ No newline at end of file +} diff --git a/src/plone/restapi/tests/http-examples/lock_nonstealable_timeout.resp b/src/plone/restapi/tests/http-examples/lock_nonstealable_timeout.resp index 473fa94216..ad881caf98 100644 --- a/src/plone/restapi/tests/http-examples/lock_nonstealable_timeout.resp +++ b/src/plone/restapi/tests/http-examples/lock_nonstealable_timeout.resp @@ -2,14 +2,14 @@ HTTP/1.1 200 OK Content-Type: application/json { - "created": "1995-07-31T17:30:00", - "creator": "admin", - "creator_name": "admin", - "creator_url": "http://localhost:55001/plone/author/admin", - "locked": true, - "name": "plone.locking.stealable", - "stealable": true, - "time": 807211800.0, - "timeout": 3600, - "token": "0.684672730996-0.25195226375-00105A989226:1477076400.000" -} \ No newline at end of file + "created": "1995-07-31T17:30:00", + "creator": "admin", + "creator_name": "admin", + "creator_url": "http://localhost:55001/plone/author/admin", + "locked": true, + "name": "plone.locking.stealable", + "stealable": true, + "time": 807211800.0, + "timeout": 3600, + "token": "0.684672730996-0.25195226375-00105A989226:1477076400.000" +} diff --git a/src/plone/restapi/tests/http-examples/lock_update.req b/src/plone/restapi/tests/http-examples/lock_update.req index b9e39d8463..53a9a65a95 100644 --- a/src/plone/restapi/tests/http-examples/lock_update.req +++ b/src/plone/restapi/tests/http-examples/lock_update.req @@ -6,4 +6,4 @@ Content-Type: application/json { "title": "New Title" -} \ No newline at end of file +} diff --git a/src/plone/restapi/tests/http-examples/move.req b/src/plone/restapi/tests/http-examples/move.req index d90e009d4b..c51b3b50da 100644 --- a/src/plone/restapi/tests/http-examples/move.req +++ b/src/plone/restapi/tests/http-examples/move.req @@ -5,4 +5,4 @@ Content-Type: application/json { "source": "http://localhost:55001/plone/front-page" -} \ No newline at end of file +} diff --git a/src/plone/restapi/tests/http-examples/move.resp b/src/plone/restapi/tests/http-examples/move.resp index e9fdeb80eb..b78d9432b8 100644 --- a/src/plone/restapi/tests/http-examples/move.resp +++ b/src/plone/restapi/tests/http-examples/move.resp @@ -2,8 +2,8 @@ HTTP/1.1 200 OK Content-Type: application/json [ - { - "source": "http://localhost:55001/plone/front-page", - "target": "http://localhost:55001/plone/folder/front-page" - } -] \ No newline at end of file + { + "source": "http://localhost:55001/plone/front-page", + "target": "http://localhost:55001/plone/folder/front-page" + } +] diff --git a/src/plone/restapi/tests/http-examples/navigation.resp b/src/plone/restapi/tests/http-examples/navigation.resp index 8f3ca6afd0..a84ba34c77 100644 --- a/src/plone/restapi/tests/http-examples/navigation.resp +++ b/src/plone/restapi/tests/http-examples/navigation.resp @@ -2,21 +2,21 @@ HTTP/1.1 200 OK Content-Type: application/json { - "@id": "http://localhost:55001/plone/front-page/@navigation", - "items": [ - { - "@id": "http://localhost:55001/plone", - "description": "", - "items": [], - "review_state": null, - "title": "Home" - }, - { - "@id": "http://localhost:55001/plone/front-page", - "description": "Congratulations! You have successfully installed Plone.", - "items": [], - "review_state": "private", - "title": "Welcome to Plone" - } - ] -} \ No newline at end of file + "@id": "http://localhost:55001/plone/front-page/@navigation", + "items": [ + { + "@id": "http://localhost:55001/plone", + "description": "", + "items": [], + "review_state": null, + "title": "Home" + }, + { + "@id": "http://localhost:55001/plone/front-page", + "description": "Congratulations! You have successfully installed Plone.", + "items": [], + "review_state": "private", + "title": "Welcome to Plone" + } + ] +} diff --git a/src/plone/restapi/tests/http-examples/navigation_tree.resp b/src/plone/restapi/tests/http-examples/navigation_tree.resp index ef5586df3e..c03eddc5f1 100644 --- a/src/plone/restapi/tests/http-examples/navigation_tree.resp +++ b/src/plone/restapi/tests/http-examples/navigation_tree.resp @@ -2,78 +2,78 @@ HTTP/1.1 200 OK Content-Type: application/json { - "@id": "http://localhost:55001/plone/front-page/@navigation", - "items": [ - { - "@id": "http://localhost:55001/plone", - "description": "", - "items": [], - "review_state": null, - "title": "Home" - }, - { - "@id": "http://localhost:55001/plone/front-page", - "description": "Congratulations! You have successfully installed Plone.", - "items": [], - "review_state": "private", - "title": "Welcome to Plone" - }, - { - "@id": "http://localhost:55001/plone/folder", - "description": "", - "items": [ + "@id": "http://localhost:55001/plone/front-page/@navigation", + "items": [ { - "@id": "http://localhost:55001/plone/folder/subfolder1", - "description": "", - "items": [ - { - "@id": "http://localhost:55001/plone/folder/subfolder1/thirdlevelfolder", - "description": "", - "items": [ + "@id": "http://localhost:55001/plone", + "description": "", + "items": [], + "review_state": null, + "title": "Home" + }, + { + "@id": "http://localhost:55001/plone/front-page", + "description": "Congratulations! You have successfully installed Plone.", + "items": [], + "review_state": "private", + "title": "Welcome to Plone" + }, + { + "@id": "http://localhost:55001/plone/folder", + "description": "", + "items": [ + { + "@id": "http://localhost:55001/plone/folder/subfolder1", + "description": "", + "items": [ + { + "@id": "http://localhost:55001/plone/folder/subfolder1/thirdlevelfolder", + "description": "", + "items": [ + { + "@id": "http://localhost:55001/plone/folder/subfolder1/thirdlevelfolder/fourthlevelfolder", + "description": "", + "items": [], + "review_state": "private", + "title": "Fourth Level Folder", + "use_view_action_in_listings": false + } + ], + "review_state": "private", + "title": "Third Level Folder", + "use_view_action_in_listings": false + } + ], + "review_state": "private", + "title": "SubFolder 1", + "use_view_action_in_listings": false + }, { - "@id": "http://localhost:55001/plone/folder/subfolder1/thirdlevelfolder/fourthlevelfolder", - "description": "", - "items": [], - "review_state": "private", - "title": "Fourth Level Folder", - "use_view_action_in_listings": false + "@id": "http://localhost:55001/plone/folder/subfolder2", + "description": "", + "items": [], + "review_state": "private", + "title": "SubFolder 2", + "use_view_action_in_listings": false + }, + { + "@id": "http://localhost:55001/plone/folder/doc1", + "description": "", + "items": [], + "review_state": "private", + "title": "A document", + "use_view_action_in_listings": false } - ], - "review_state": "private", - "title": "Third Level Folder", - "use_view_action_in_listings": false - } - ], - "review_state": "private", - "title": "SubFolder 1", - "use_view_action_in_listings": false - }, - { - "@id": "http://localhost:55001/plone/folder/subfolder2", - "description": "", - "items": [], - "review_state": "private", - "title": "SubFolder 2", - "use_view_action_in_listings": false - }, + ], + "review_state": "private", + "title": "Some Folder" + }, { - "@id": "http://localhost:55001/plone/folder/doc1", - "description": "", - "items": [], - "review_state": "private", - "title": "A document", - "use_view_action_in_listings": false + "@id": "http://localhost:55001/plone/folder2", + "description": "", + "items": [], + "review_state": "private", + "title": "Some Folder 2" } - ], - "review_state": "private", - "title": "Some Folder" - }, - { - "@id": "http://localhost:55001/plone/folder2", - "description": "", - "items": [], - "review_state": "private", - "title": "Some Folder 2" - } - ] -} \ No newline at end of file + ] +} diff --git a/src/plone/restapi/tests/http-examples/newsitem.resp b/src/plone/restapi/tests/http-examples/newsitem.resp index be0c336736..7b13607f99 100644 --- a/src/plone/restapi/tests/http-examples/newsitem.resp +++ b/src/plone/restapi/tests/http-examples/newsitem.resp @@ -2,118 +2,118 @@ HTTP/1.1 200 OK Content-Type: application/json { - "@components": { - "actions": { - "@id": "http://localhost:55001/plone/newsitem/@actions" - }, - "breadcrumbs": { - "@id": "http://localhost:55001/plone/newsitem/@breadcrumbs" - }, - "contextnavigation": { - "@id": "http://localhost:55001/plone/newsitem/@contextnavigation" - }, - "navigation": { - "@id": "http://localhost:55001/plone/newsitem/@navigation" - }, - "types": { - "@id": "http://localhost:55001/plone/newsitem/@types" - }, - "workflow": { - "@id": "http://localhost:55001/plone/newsitem/@workflow" - } - }, - "@id": "http://localhost:55001/plone/newsitem", - "@type": "News Item", - "UID": "SomeUUID000000000000000000000002", - "allow_discussion": false, - "changeNote": "", - "contributors": [], - "created": "1995-07-31T13:45:00", - "creators": [ - "test_user_1_" - ], - "description": "This is a news item", - "effective": null, - "exclude_from_nav": false, - "expires": null, - "id": "newsitem", - "image": { - "content-type": "image/png", - "download": "http://localhost:55001/plone/newsitem/@@images/uuid1.png", - "filename": "image.png", - "height": 56, - "scales": { - "icon": { - "download": "http://localhost:55001/plone/newsitem/@@images/uuid1.png", - "height": 8, - "width": 32 - }, - "large": { - "download": "http://localhost:55001/plone/newsitem/@@images/uuid1.png", - "height": 56, + "@components": { + "actions": { + "@id": "http://localhost:55001/plone/newsitem/@actions" + }, + "breadcrumbs": { + "@id": "http://localhost:55001/plone/newsitem/@breadcrumbs" + }, + "contextnavigation": { + "@id": "http://localhost:55001/plone/newsitem/@contextnavigation" + }, + "navigation": { + "@id": "http://localhost:55001/plone/newsitem/@navigation" + }, + "types": { + "@id": "http://localhost:55001/plone/newsitem/@types" + }, + "workflow": { + "@id": "http://localhost:55001/plone/newsitem/@workflow" + } + }, + "@id": "http://localhost:55001/plone/newsitem", + "@type": "News Item", + "UID": "SomeUUID000000000000000000000002", + "allow_discussion": false, + "changeNote": "", + "contributors": [], + "created": "1995-07-31T13:45:00", + "creators": [ + "test_user_1_" + ], + "description": "This is a news item", + "effective": null, + "exclude_from_nav": false, + "expires": null, + "id": "newsitem", + "image": { + "content-type": "image/png", + "download": "http://localhost:55001/plone/newsitem/@@images/uuid1.png", + "filename": "image.png", + "height": 56, + "scales": { + "icon": { + "download": "http://localhost:55001/plone/newsitem/@@images/uuid1.png", + "height": 8, + "width": 32 + }, + "large": { + "download": "http://localhost:55001/plone/newsitem/@@images/uuid1.png", + "height": 56, + "width": 215 + }, + "listing": { + "download": "http://localhost:55001/plone/newsitem/@@images/uuid1.png", + "height": 4, + "width": 16 + }, + "mini": { + "download": "http://localhost:55001/plone/newsitem/@@images/uuid1.png", + "height": 52, + "width": 200 + }, + "preview": { + "download": "http://localhost:55001/plone/newsitem/@@images/uuid1.png", + "height": 56, + "width": 215 + }, + "thumb": { + "download": "http://localhost:55001/plone/newsitem/@@images/uuid1.png", + "height": 33, + "width": 128 + }, + "tile": { + "download": "http://localhost:55001/plone/newsitem/@@images/uuid1.png", + "height": 16, + "width": 64 + } + }, + "size": 1185, "width": 215 - }, - "listing": { - "download": "http://localhost:55001/plone/newsitem/@@images/uuid1.png", - "height": 4, - "width": 16 - }, - "mini": { - "download": "http://localhost:55001/plone/newsitem/@@images/uuid1.png", - "height": 52, - "width": 200 - }, - "preview": { - "download": "http://localhost:55001/plone/newsitem/@@images/uuid1.png", - "height": 56, - "width": 215 - }, - "thumb": { - "download": "http://localhost:55001/plone/newsitem/@@images/uuid1.png", - "height": 33, - "width": 128 - }, - "tile": { - "download": "http://localhost:55001/plone/newsitem/@@images/uuid1.png", - "height": 16, - "width": 64 - } - }, - "size": 1185, - "width": 215 - }, - "image_caption": "This is an image caption.", - "is_folderish": false, - "language": "", - "layout": "newsitem_view", - "lock": { - "locked": false, - "stealable": true - }, - "modified": "1995-07-31T17:30:00", - "next_item": {}, - "parent": { - "@id": "http://localhost:55001/plone", - "@type": "Plone Site", - "description": "", - "title": "Plone site" - }, - "previous_item": { - "@id": "http://localhost:55001/plone/front-page", - "@type": "Document", - "description": "Congratulations! You have successfully installed Plone.", - "title": "Welcome to Plone" - }, - "relatedItems": [], - "review_state": "private", - "rights": "", - "subjects": [], - "text": { - "content-type": "text/plain", - "data": "

Lorem ipsum

", - "encoding": "utf-8" - }, - "title": "My News Item", - "version": "current", - "versioning_enabled": true -} \ No newline at end of file + }, + "image_caption": "This is an image caption.", + "is_folderish": false, + "language": "", + "layout": "newsitem_view", + "lock": { + "locked": false, + "stealable": true + }, + "modified": "1995-07-31T17:30:00", + "next_item": {}, + "parent": { + "@id": "http://localhost:55001/plone", + "@type": "Plone Site", + "description": "", + "title": "Plone site" + }, + "previous_item": { + "@id": "http://localhost:55001/plone/front-page", + "@type": "Document", + "description": "Congratulations! You have successfully installed Plone.", + "title": "Welcome to Plone" + }, + "relatedItems": [], + "review_state": "private", + "rights": "", + "subjects": [], + "text": { + "content-type": "text/plain", + "data": "

Lorem ipsum

", + "encoding": "utf-8" + }, + "title": "My News Item", + "version": "current", + "versioning_enabled": true +} diff --git a/src/plone/restapi/tests/http-examples/principals.resp b/src/plone/restapi/tests/http-examples/principals.resp index ed94e761dc..52080db0eb 100644 --- a/src/plone/restapi/tests/http-examples/principals.resp +++ b/src/plone/restapi/tests/http-examples/principals.resp @@ -2,18 +2,18 @@ HTTP/1.1 200 OK Content-Type: application/json { - "groups": [ - { - "@id": "http://localhost:55001/plone/@groups/ploneteam", - "description": "We are Plone", - "email": "ploneteam@plone.org", - "groupname": "ploneteam", - "id": "ploneteam", - "roles": [ - "Authenticated" - ], - "title": "Plone Team" - } - ], - "users": [] -} \ No newline at end of file + "groups": [ + { + "@id": "http://localhost:55001/plone/@groups/ploneteam", + "description": "We are Plone", + "email": "ploneteam@plone.org", + "groupname": "ploneteam", + "id": "ploneteam", + "roles": [ + "Authenticated" + ], + "title": "Plone Team" + } + ], + "users": [] +} diff --git a/src/plone/restapi/tests/http-examples/querystring_get.resp b/src/plone/restapi/tests/http-examples/querystring_get.resp index 86768a9e9e..00af14c6cc 100644 --- a/src/plone/restapi/tests/http-examples/querystring_get.resp +++ b/src/plone/restapi/tests/http-examples/querystring_get.resp @@ -2,1631 +2,1631 @@ HTTP/1.1 200 OK Content-Type: application/json { - "@id": "http://localhost:55001/plone/@querystring", - "indexes": { - "Creator": { - "description": "The person that created an item", - "enabled": true, - "group": "Metadata", - "operations": [ - "plone.app.querystring.operation.string.currentUser", - "plone.app.querystring.operation.selection.any" - ], - "operators": { - "plone.app.querystring.operation.selection.any": { - "description": "Tip: you can use * to autocomplete.", - "operation": "plone.app.querystring.queryparser._contains", - "title": "Matches any of", - "widget": "MultipleSelectionWidget" - }, - "plone.app.querystring.operation.string.currentUser": { - "description": "The user viewing the querystring results", - "operation": "plone.app.querystring.queryparser._currentUser", - "title": "Current logged in user", - "widget": null + "@id": "http://localhost:55001/plone/@querystring", + "indexes": { + "Creator": { + "description": "The person that created an item", + "enabled": true, + "group": "Metadata", + "operations": [ + "plone.app.querystring.operation.string.currentUser", + "plone.app.querystring.operation.selection.any" + ], + "operators": { + "plone.app.querystring.operation.selection.any": { + "description": "Tip: you can use * to autocomplete.", + "operation": "plone.app.querystring.queryparser._contains", + "title": "Matches any of", + "widget": "MultipleSelectionWidget" + }, + "plone.app.querystring.operation.string.currentUser": { + "description": "The user viewing the querystring results", + "operation": "plone.app.querystring.queryparser._currentUser", + "title": "Current logged in user", + "widget": null + } + }, + "sortable": true, + "title": "Creator", + "values": {}, + "vocabulary": "plone.app.vocabularies.Users" + }, + "Description": { + "description": "An item's description", + "enabled": true, + "group": "Text", + "operations": [ + "plone.app.querystring.operation.string.contains" + ], + "operators": { + "plone.app.querystring.operation.string.contains": { + "description": null, + "operation": "plone.app.querystring.queryparser._contains", + "title": "Contains", + "widget": "StringWidget" + } + }, + "sortable": false, + "title": "Description", + "values": {}, + "vocabulary": null + }, + "SearchableText": { + "description": "Text search of an item's contents", + "enabled": true, + "group": "Text", + "operations": [ + "plone.app.querystring.operation.string.contains" + ], + "operators": { + "plone.app.querystring.operation.string.contains": { + "description": null, + "operation": "plone.app.querystring.queryparser._contains", + "title": "Contains", + "widget": "StringWidget" + } + }, + "sortable": false, + "title": "Searchable text", + "values": {}, + "vocabulary": null + }, + "Subject": { + "description": "Tags are used for organization of content", + "enabled": true, + "group": "Text", + "operations": [ + "plone.app.querystring.operation.selection.any", + "plone.app.querystring.operation.selection.all" + ], + "operators": { + "plone.app.querystring.operation.selection.all": { + "description": "Tip: you can use * to autocomplete.", + "operation": "plone.app.querystring.queryparser._all", + "title": "Matches all of", + "widget": "MultipleSelectionWidget" + }, + "plone.app.querystring.operation.selection.any": { + "description": "Tip: you can use * to autocomplete.", + "operation": "plone.app.querystring.queryparser._contains", + "title": "Matches any of", + "widget": "MultipleSelectionWidget" + } + }, + "sortable": false, + "title": "Tag", + "values": {}, + "vocabulary": "plone.app.vocabularies.Keywords" + }, + "Title": { + "description": "Text search of an item's title", + "enabled": true, + "group": "Text", + "operations": [ + "plone.app.querystring.operation.string.contains" + ], + "operators": { + "plone.app.querystring.operation.string.contains": { + "description": null, + "operation": "plone.app.querystring.queryparser._contains", + "title": "Contains", + "widget": "StringWidget" + } + }, + "sortable": false, + "title": "Title", + "values": {}, + "vocabulary": null + }, + "created": { + "description": "The date an item was created", + "enabled": true, + "group": "Dates", + "operations": [ + "plone.app.querystring.operation.date.lessThan", + "plone.app.querystring.operation.date.largerThan", + "plone.app.querystring.operation.date.between", + "plone.app.querystring.operation.date.lessThanRelativeDate", + "plone.app.querystring.operation.date.largerThanRelativeDate", + "plone.app.querystring.operation.date.today", + "plone.app.querystring.operation.date.beforeToday", + "plone.app.querystring.operation.date.afterToday", + "plone.app.querystring.operation.date.beforeRelativeDate", + "plone.app.querystring.operation.date.afterRelativeDate" + ], + "operators": { + "plone.app.querystring.operation.date.afterRelativeDate": { + "description": "After N days in the future", + "operation": "plone.app.querystring.queryparser._afterRelativeDate", + "title": "After relative Date", + "widget": "RelativeDateWidget" + }, + "plone.app.querystring.operation.date.afterToday": { + "description": "After the current day", + "operation": "plone.app.querystring.queryparser._afterToday", + "title": "After today", + "widget": null + }, + "plone.app.querystring.operation.date.beforeRelativeDate": { + "description": "Before N days in the past", + "operation": "plone.app.querystring.queryparser._beforeRelativeDate", + "title": "Before relative Date", + "widget": "RelativeDateWidget" + }, + "plone.app.querystring.operation.date.beforeToday": { + "description": "Before the current day", + "operation": "plone.app.querystring.queryparser._beforeToday", + "title": "Before today", + "widget": null + }, + "plone.app.querystring.operation.date.between": { + "description": "Please use YYYY/MM/DD.", + "operation": "plone.app.querystring.queryparser._between", + "title": "Between dates", + "widget": "DateRangeWidget" + }, + "plone.app.querystring.operation.date.largerThan": { + "description": "Please use YYYY/MM/DD.", + "operation": "plone.app.querystring.queryparser._largerThan", + "title": "After date", + "widget": "DateWidget" + }, + "plone.app.querystring.operation.date.largerThanRelativeDate": { + "description": "Please enter the number in days.", + "operation": "plone.app.querystring.queryparser._moreThanRelativeDate", + "title": "Within last", + "widget": "RelativeDateWidget" + }, + "plone.app.querystring.operation.date.lessThan": { + "description": "Please use YYYY/MM/DD.", + "operation": "plone.app.querystring.queryparser._lessThan", + "title": "Before date", + "widget": "DateWidget" + }, + "plone.app.querystring.operation.date.lessThanRelativeDate": { + "description": "Please enter the number in days.", + "operation": "plone.app.querystring.queryparser._lessThanRelativeDate", + "title": "Within next", + "widget": "RelativeDateWidget" + }, + "plone.app.querystring.operation.date.today": { + "description": "The current day", + "operation": "plone.app.querystring.queryparser._today", + "title": "Today", + "widget": null + } + }, + "sortable": true, + "title": "Creation date", + "values": {}, + "vocabulary": null + }, + "effective": { + "description": "The time and date an item was first published", + "enabled": true, + "group": "Dates", + "operations": [ + "plone.app.querystring.operation.date.lessThan", + "plone.app.querystring.operation.date.largerThan", + "plone.app.querystring.operation.date.between", + "plone.app.querystring.operation.date.lessThanRelativeDate", + "plone.app.querystring.operation.date.largerThanRelativeDate", + "plone.app.querystring.operation.date.today", + "plone.app.querystring.operation.date.beforeToday", + "plone.app.querystring.operation.date.afterToday", + "plone.app.querystring.operation.date.beforeRelativeDate", + "plone.app.querystring.operation.date.afterRelativeDate" + ], + "operators": { + "plone.app.querystring.operation.date.afterRelativeDate": { + "description": "After N days in the future", + "operation": "plone.app.querystring.queryparser._afterRelativeDate", + "title": "After relative Date", + "widget": "RelativeDateWidget" + }, + "plone.app.querystring.operation.date.afterToday": { + "description": "After the current day", + "operation": "plone.app.querystring.queryparser._afterToday", + "title": "After today", + "widget": null + }, + "plone.app.querystring.operation.date.beforeRelativeDate": { + "description": "Before N days in the past", + "operation": "plone.app.querystring.queryparser._beforeRelativeDate", + "title": "Before relative Date", + "widget": "RelativeDateWidget" + }, + "plone.app.querystring.operation.date.beforeToday": { + "description": "Before the current day", + "operation": "plone.app.querystring.queryparser._beforeToday", + "title": "Before today", + "widget": null + }, + "plone.app.querystring.operation.date.between": { + "description": "Please use YYYY/MM/DD.", + "operation": "plone.app.querystring.queryparser._between", + "title": "Between dates", + "widget": "DateRangeWidget" + }, + "plone.app.querystring.operation.date.largerThan": { + "description": "Please use YYYY/MM/DD.", + "operation": "plone.app.querystring.queryparser._largerThan", + "title": "After date", + "widget": "DateWidget" + }, + "plone.app.querystring.operation.date.largerThanRelativeDate": { + "description": "Please enter the number in days.", + "operation": "plone.app.querystring.queryparser._moreThanRelativeDate", + "title": "Within last", + "widget": "RelativeDateWidget" + }, + "plone.app.querystring.operation.date.lessThan": { + "description": "Please use YYYY/MM/DD.", + "operation": "plone.app.querystring.queryparser._lessThan", + "title": "Before date", + "widget": "DateWidget" + }, + "plone.app.querystring.operation.date.lessThanRelativeDate": { + "description": "Please enter the number in days.", + "operation": "plone.app.querystring.queryparser._lessThanRelativeDate", + "title": "Within next", + "widget": "RelativeDateWidget" + }, + "plone.app.querystring.operation.date.today": { + "description": "The current day", + "operation": "plone.app.querystring.queryparser._today", + "title": "Today", + "widget": null + } + }, + "sortable": true, + "title": "Effective date", + "values": {}, + "vocabulary": null + }, + "effectiveRange": { + "description": "Querying this is undefined", + "enabled": false, + "group": "Dates", + "operations": [], + "operators": {}, + "sortable": false, + "title": "Effective range", + "values": {}, + "vocabulary": null + }, + "end": { + "description": "The end date and time of an event", + "enabled": true, + "group": "Dates", + "operations": [ + "plone.app.querystring.operation.date.lessThan", + "plone.app.querystring.operation.date.largerThan", + "plone.app.querystring.operation.date.between", + "plone.app.querystring.operation.date.lessThanRelativeDate", + "plone.app.querystring.operation.date.largerThanRelativeDate", + "plone.app.querystring.operation.date.today", + "plone.app.querystring.operation.date.beforeToday", + "plone.app.querystring.operation.date.afterToday", + "plone.app.querystring.operation.date.beforeRelativeDate", + "plone.app.querystring.operation.date.afterRelativeDate" + ], + "operators": { + "plone.app.querystring.operation.date.afterRelativeDate": { + "description": "After N days in the future", + "operation": "plone.app.querystring.queryparser._afterRelativeDate", + "title": "After relative Date", + "widget": "RelativeDateWidget" + }, + "plone.app.querystring.operation.date.afterToday": { + "description": "After the current day", + "operation": "plone.app.querystring.queryparser._afterToday", + "title": "After today", + "widget": null + }, + "plone.app.querystring.operation.date.beforeRelativeDate": { + "description": "Before N days in the past", + "operation": "plone.app.querystring.queryparser._beforeRelativeDate", + "title": "Before relative Date", + "widget": "RelativeDateWidget" + }, + "plone.app.querystring.operation.date.beforeToday": { + "description": "Before the current day", + "operation": "plone.app.querystring.queryparser._beforeToday", + "title": "Before today", + "widget": null + }, + "plone.app.querystring.operation.date.between": { + "description": "Please use YYYY/MM/DD.", + "operation": "plone.app.querystring.queryparser._between", + "title": "Between dates", + "widget": "DateRangeWidget" + }, + "plone.app.querystring.operation.date.largerThan": { + "description": "Please use YYYY/MM/DD.", + "operation": "plone.app.querystring.queryparser._largerThan", + "title": "After date", + "widget": "DateWidget" + }, + "plone.app.querystring.operation.date.largerThanRelativeDate": { + "description": "Please enter the number in days.", + "operation": "plone.app.querystring.queryparser._moreThanRelativeDate", + "title": "Within last", + "widget": "RelativeDateWidget" + }, + "plone.app.querystring.operation.date.lessThan": { + "description": "Please use YYYY/MM/DD.", + "operation": "plone.app.querystring.queryparser._lessThan", + "title": "Before date", + "widget": "DateWidget" + }, + "plone.app.querystring.operation.date.lessThanRelativeDate": { + "description": "Please enter the number in days.", + "operation": "plone.app.querystring.queryparser._lessThanRelativeDate", + "title": "Within next", + "widget": "RelativeDateWidget" + }, + "plone.app.querystring.operation.date.today": { + "description": "The current day", + "operation": "plone.app.querystring.queryparser._today", + "title": "Today", + "widget": null + } + }, + "sortable": true, + "title": "Event end date", + "values": {}, + "vocabulary": null + }, + "expires": { + "description": "The time and date an item was expired", + "enabled": true, + "group": "Dates", + "operations": [ + "plone.app.querystring.operation.date.lessThan", + "plone.app.querystring.operation.date.largerThan", + "plone.app.querystring.operation.date.between", + "plone.app.querystring.operation.date.lessThanRelativeDate", + "plone.app.querystring.operation.date.largerThanRelativeDate", + "plone.app.querystring.operation.date.today", + "plone.app.querystring.operation.date.beforeToday", + "plone.app.querystring.operation.date.afterToday", + "plone.app.querystring.operation.date.beforeRelativeDate", + "plone.app.querystring.operation.date.afterRelativeDate" + ], + "operators": { + "plone.app.querystring.operation.date.afterRelativeDate": { + "description": "After N days in the future", + "operation": "plone.app.querystring.queryparser._afterRelativeDate", + "title": "After relative Date", + "widget": "RelativeDateWidget" + }, + "plone.app.querystring.operation.date.afterToday": { + "description": "After the current day", + "operation": "plone.app.querystring.queryparser._afterToday", + "title": "After today", + "widget": null + }, + "plone.app.querystring.operation.date.beforeRelativeDate": { + "description": "Before N days in the past", + "operation": "plone.app.querystring.queryparser._beforeRelativeDate", + "title": "Before relative Date", + "widget": "RelativeDateWidget" + }, + "plone.app.querystring.operation.date.beforeToday": { + "description": "Before the current day", + "operation": "plone.app.querystring.queryparser._beforeToday", + "title": "Before today", + "widget": null + }, + "plone.app.querystring.operation.date.between": { + "description": "Please use YYYY/MM/DD.", + "operation": "plone.app.querystring.queryparser._between", + "title": "Between dates", + "widget": "DateRangeWidget" + }, + "plone.app.querystring.operation.date.largerThan": { + "description": "Please use YYYY/MM/DD.", + "operation": "plone.app.querystring.queryparser._largerThan", + "title": "After date", + "widget": "DateWidget" + }, + "plone.app.querystring.operation.date.largerThanRelativeDate": { + "description": "Please enter the number in days.", + "operation": "plone.app.querystring.queryparser._moreThanRelativeDate", + "title": "Within last", + "widget": "RelativeDateWidget" + }, + "plone.app.querystring.operation.date.lessThan": { + "description": "Please use YYYY/MM/DD.", + "operation": "plone.app.querystring.queryparser._lessThan", + "title": "Before date", + "widget": "DateWidget" + }, + "plone.app.querystring.operation.date.lessThanRelativeDate": { + "description": "Please enter the number in days.", + "operation": "plone.app.querystring.queryparser._lessThanRelativeDate", + "title": "Within next", + "widget": "RelativeDateWidget" + }, + "plone.app.querystring.operation.date.today": { + "description": "The current day", + "operation": "plone.app.querystring.queryparser._today", + "title": "Today", + "widget": null + } + }, + "sortable": true, + "title": "Expiration date", + "values": {}, + "vocabulary": null + }, + "getId": { + "description": "The short name of an item (used in the url)", + "enabled": true, + "group": "Metadata", + "operations": [ + "plone.app.querystring.operation.string.is" + ], + "operators": { + "plone.app.querystring.operation.string.is": { + "description": "Tip: you can use * to autocomplete.", + "operation": "plone.app.querystring.queryparser._equal", + "title": "Is", + "widget": "StringWidget" + } + }, + "sortable": true, + "title": "Short name (id)", + "values": {}, + "vocabulary": null + }, + "getObjPositionInParent": { + "description": "The order of an item in its parent folder", + "enabled": false, + "group": "Metadata", + "operations": [ + "plone.app.querystring.operation.int.is", + "plone.app.querystring.operation.int.lessThan", + "plone.app.querystring.operation.int.largerThan" + ], + "operators": { + "plone.app.querystring.operation.int.is": { + "description": null, + "operation": "plone.app.querystring.queryparser._intEqual", + "title": "Equals", + "widget": "StringWidget" + }, + "plone.app.querystring.operation.int.largerThan": { + "description": null, + "operation": "plone.app.querystring.queryparser._intLargerThan", + "title": "Larger than", + "widget": "StringWidget" + }, + "plone.app.querystring.operation.int.lessThan": { + "description": null, + "operation": "plone.app.querystring.queryparser._intLessThan", + "title": "Less than", + "widget": "StringWidget" + } + }, + "sortable": true, + "title": "Order in folder", + "values": {}, + "vocabulary": null + }, + "getRawRelatedItems": { + "description": "Find items related to the selected items", + "enabled": false, + "group": "Metadata", + "operations": [ + "plone.app.querystring.operation.reference.is" + ], + "operators": { + "plone.app.querystring.operation.reference.is": { + "description": null, + "operation": "plone.app.querystring.queryparser._referenceIs", + "title": "Equals", + "widget": "ReferenceWidget" + } + }, + "sortable": false, + "title": "Related To", + "values": {}, + "vocabulary": null + }, + "isDefaultPage": { + "description": "Find items that are the default view for their containing folder.", + "enabled": false, + "group": "Metadata", + "operations": [ + "plone.app.querystring.operation.boolean.isTrue", + "plone.app.querystring.operation.boolean.isFalse" + ], + "operators": { + "plone.app.querystring.operation.boolean.isFalse": { + "description": null, + "operation": "plone.app.querystring.queryparser._isFalse", + "title": "No", + "widget": null + }, + "plone.app.querystring.operation.boolean.isTrue": { + "description": null, + "operation": "plone.app.querystring.queryparser._isTrue", + "title": "Yes", + "widget": null + } + }, + "sortable": false, + "title": "Default Page", + "values": {}, + "vocabulary": null + }, + "isFolderish": { + "description": "Find items that can contain other objects", + "enabled": false, + "group": "Metadata", + "operations": [ + "plone.app.querystring.operation.boolean.isTrue", + "plone.app.querystring.operation.boolean.isFalse" + ], + "operators": { + "plone.app.querystring.operation.boolean.isFalse": { + "description": null, + "operation": "plone.app.querystring.queryparser._isFalse", + "title": "No", + "widget": null + }, + "plone.app.querystring.operation.boolean.isTrue": { + "description": null, + "operation": "plone.app.querystring.queryparser._isTrue", + "title": "Yes", + "widget": null + } + }, + "sortable": false, + "title": "Folder-like", + "values": {}, + "vocabulary": null + }, + "modified": { + "description": "The time and date an item was last modified", + "enabled": true, + "group": "Dates", + "operations": [ + "plone.app.querystring.operation.date.lessThan", + "plone.app.querystring.operation.date.largerThan", + "plone.app.querystring.operation.date.between", + "plone.app.querystring.operation.date.lessThanRelativeDate", + "plone.app.querystring.operation.date.largerThanRelativeDate", + "plone.app.querystring.operation.date.today", + "plone.app.querystring.operation.date.beforeToday", + "plone.app.querystring.operation.date.afterToday", + "plone.app.querystring.operation.date.beforeRelativeDate", + "plone.app.querystring.operation.date.afterRelativeDate" + ], + "operators": { + "plone.app.querystring.operation.date.afterRelativeDate": { + "description": "After N days in the future", + "operation": "plone.app.querystring.queryparser._afterRelativeDate", + "title": "After relative Date", + "widget": "RelativeDateWidget" + }, + "plone.app.querystring.operation.date.afterToday": { + "description": "After the current day", + "operation": "plone.app.querystring.queryparser._afterToday", + "title": "After today", + "widget": null + }, + "plone.app.querystring.operation.date.beforeRelativeDate": { + "description": "Before N days in the past", + "operation": "plone.app.querystring.queryparser._beforeRelativeDate", + "title": "Before relative Date", + "widget": "RelativeDateWidget" + }, + "plone.app.querystring.operation.date.beforeToday": { + "description": "Before the current day", + "operation": "plone.app.querystring.queryparser._beforeToday", + "title": "Before today", + "widget": null + }, + "plone.app.querystring.operation.date.between": { + "description": "Please use YYYY/MM/DD.", + "operation": "plone.app.querystring.queryparser._between", + "title": "Between dates", + "widget": "DateRangeWidget" + }, + "plone.app.querystring.operation.date.largerThan": { + "description": "Please use YYYY/MM/DD.", + "operation": "plone.app.querystring.queryparser._largerThan", + "title": "After date", + "widget": "DateWidget" + }, + "plone.app.querystring.operation.date.largerThanRelativeDate": { + "description": "Please enter the number in days.", + "operation": "plone.app.querystring.queryparser._moreThanRelativeDate", + "title": "Within last", + "widget": "RelativeDateWidget" + }, + "plone.app.querystring.operation.date.lessThan": { + "description": "Please use YYYY/MM/DD.", + "operation": "plone.app.querystring.queryparser._lessThan", + "title": "Before date", + "widget": "DateWidget" + }, + "plone.app.querystring.operation.date.lessThanRelativeDate": { + "description": "Please enter the number in days.", + "operation": "plone.app.querystring.queryparser._lessThanRelativeDate", + "title": "Within next", + "widget": "RelativeDateWidget" + }, + "plone.app.querystring.operation.date.today": { + "description": "The current day", + "operation": "plone.app.querystring.queryparser._today", + "title": "Today", + "widget": null + } + }, + "sortable": true, + "title": "Modification date", + "values": {}, + "vocabulary": null + }, + "path": { + "description": "The location of an item ", + "enabled": true, + "group": "Metadata", + "operations": [ + "plone.app.querystring.operation.string.absolutePath", + "plone.app.querystring.operation.string.path", + "plone.app.querystring.operation.string.relativePath" + ], + "operators": { + "plone.app.querystring.operation.string.absolutePath": { + "description": "Location in the site structure", + "operation": "plone.app.querystring.queryparser._absolutePath", + "title": "Absolute path", + "widget": "ReferenceWidget" + }, + "plone.app.querystring.operation.string.path": { + "description": "Location in the navigation structure", + "operation": "plone.app.querystring.queryparser._navigationPath", + "title": "Navigation path", + "widget": "ReferenceWidget" + }, + "plone.app.querystring.operation.string.relativePath": { + "description": "Use '../' to navigate to parent objects.", + "operation": "plone.app.querystring.queryparser._relativePath", + "title": "Relative path", + "widget": "RelativePathWidget" + } + }, + "sortable": false, + "title": "Location", + "values": {}, + "vocabulary": null + }, + "portal_type": { + "description": "An item's type (e.g. Event)", + "enabled": true, + "group": "Metadata", + "operations": [ + "plone.app.querystring.operation.selection.any" + ], + "operators": { + "plone.app.querystring.operation.selection.any": { + "description": "Tip: you can use * to autocomplete.", + "operation": "plone.app.querystring.queryparser._contains", + "title": "Matches any of", + "widget": "MultipleSelectionWidget" + } + }, + "sortable": false, + "title": "Type", + "values": { + "ATTestDocument": { + "title": "Test Document" + }, + "ATTestFolder": { + "title": "Test Folder" + }, + "Collection": { + "title": "Collection" + }, + "DXTestDocument": { + "title": "DX Test Document" + }, + "Discussion Item": { + "title": "Comment" + }, + "Document": { + "title": "Page" + }, + "Event": { + "title": "Event" + }, + "File": { + "title": "File" + }, + "Folder": { + "title": "Folder" + }, + "Image": { + "title": "Image" + }, + "Link": { + "title": "Link" + }, + "News Item": { + "title": "News Item" + } + }, + "vocabulary": "plone.app.vocabularies.ReallyUserFriendlyTypes" + }, + "review_state": { + "description": "An item's workflow state (e.g.published)", + "enabled": true, + "group": "Metadata", + "operations": [ + "plone.app.querystring.operation.selection.any" + ], + "operators": { + "plone.app.querystring.operation.selection.any": { + "description": "Tip: you can use * to autocomplete.", + "operation": "plone.app.querystring.queryparser._contains", + "title": "Matches any of", + "widget": "MultipleSelectionWidget" + } + }, + "sortable": true, + "title": "Review state", + "values": { + "external": { + "title": "Externally visible [external]" + }, + "internal": { + "title": "Internal draft [internal]" + }, + "internally_published": { + "title": "Internally published [internally_published]" + }, + "pending": { + "title": "Pending [pending]" + }, + "private": { + "title": "Private [private]" + }, + "published": { + "title": "Published with accent \u00e9 [published]" + }, + "rejected": { + "title": "Rejected [rejected]" + }, + "spam": { + "title": "Spam [spam]" + }, + "visible": { + "title": "Public draft [visible]" + } + }, + "vocabulary": "plone.app.vocabularies.WorkflowStates" + }, + "show_inactive": { + "description": "Select which roles have the permission to view inactive objects", + "enabled": true, + "group": "Metadata", + "operations": [ + "plone.app.querystring.operation.string.showInactive" + ], + "operators": { + "plone.app.querystring.operation.string.showInactive": { + "description": "The user roles which are allowed to see inactive content", + "operation": "plone.app.querystring.queryparser._showInactive", + "title": "Show Inactive", + "widget": "MultipleSelectionWidget" + } + }, + "sortable": false, + "title": "Show Inactive", + "values": { + "Anonymous": { + "title": "Anonymous" + }, + "Authenticated": { + "title": "Authenticated" + }, + "Contributor": { + "title": "Contributor" + }, + "Editor": { + "title": "Editor" + }, + "Manager": { + "title": "Manager" + }, + "Member": { + "title": "Member" + }, + "Owner": { + "title": "Owner" + }, + "Reader": { + "title": "Reader" + }, + "Reviewer": { + "title": "Reviewer" + }, + "Site Administrator": { + "title": "Site Administrator" + } + }, + "vocabulary": "plone.app.vocabularies.Roles" + }, + "sortable_title": { + "description": "The item's title, transformed for sorting", + "enabled": false, + "group": "Text", + "operations": [ + "plone.app.querystring.operation.string.contains", + "plone.app.querystring.operation.string.is" + ], + "operators": { + "plone.app.querystring.operation.string.contains": { + "description": null, + "operation": "plone.app.querystring.queryparser._contains", + "title": "Contains", + "widget": "StringWidget" + }, + "plone.app.querystring.operation.string.is": { + "description": "Tip: you can use * to autocomplete.", + "operation": "plone.app.querystring.queryparser._equal", + "title": "Is", + "widget": "StringWidget" + } + }, + "sortable": true, + "title": "Sortable Title", + "values": {}, + "vocabulary": null + }, + "start": { + "description": "The start date and time of an event", + "enabled": true, + "group": "Dates", + "operations": [ + "plone.app.querystring.operation.date.lessThan", + "plone.app.querystring.operation.date.largerThan", + "plone.app.querystring.operation.date.between", + "plone.app.querystring.operation.date.lessThanRelativeDate", + "plone.app.querystring.operation.date.largerThanRelativeDate", + "plone.app.querystring.operation.date.today", + "plone.app.querystring.operation.date.beforeToday", + "plone.app.querystring.operation.date.afterToday", + "plone.app.querystring.operation.date.beforeRelativeDate", + "plone.app.querystring.operation.date.afterRelativeDate" + ], + "operators": { + "plone.app.querystring.operation.date.afterRelativeDate": { + "description": "After N days in the future", + "operation": "plone.app.querystring.queryparser._afterRelativeDate", + "title": "After relative Date", + "widget": "RelativeDateWidget" + }, + "plone.app.querystring.operation.date.afterToday": { + "description": "After the current day", + "operation": "plone.app.querystring.queryparser._afterToday", + "title": "After today", + "widget": null + }, + "plone.app.querystring.operation.date.beforeRelativeDate": { + "description": "Before N days in the past", + "operation": "plone.app.querystring.queryparser._beforeRelativeDate", + "title": "Before relative Date", + "widget": "RelativeDateWidget" + }, + "plone.app.querystring.operation.date.beforeToday": { + "description": "Before the current day", + "operation": "plone.app.querystring.queryparser._beforeToday", + "title": "Before today", + "widget": null + }, + "plone.app.querystring.operation.date.between": { + "description": "Please use YYYY/MM/DD.", + "operation": "plone.app.querystring.queryparser._between", + "title": "Between dates", + "widget": "DateRangeWidget" + }, + "plone.app.querystring.operation.date.largerThan": { + "description": "Please use YYYY/MM/DD.", + "operation": "plone.app.querystring.queryparser._largerThan", + "title": "After date", + "widget": "DateWidget" + }, + "plone.app.querystring.operation.date.largerThanRelativeDate": { + "description": "Please enter the number in days.", + "operation": "plone.app.querystring.queryparser._moreThanRelativeDate", + "title": "Within last", + "widget": "RelativeDateWidget" + }, + "plone.app.querystring.operation.date.lessThan": { + "description": "Please use YYYY/MM/DD.", + "operation": "plone.app.querystring.queryparser._lessThan", + "title": "Before date", + "widget": "DateWidget" + }, + "plone.app.querystring.operation.date.lessThanRelativeDate": { + "description": "Please enter the number in days.", + "operation": "plone.app.querystring.queryparser._lessThanRelativeDate", + "title": "Within next", + "widget": "RelativeDateWidget" + }, + "plone.app.querystring.operation.date.today": { + "description": "The current day", + "operation": "plone.app.querystring.queryparser._today", + "title": "Today", + "widget": null + } + }, + "sortable": true, + "title": "Event start date", + "values": {}, + "vocabulary": null } - }, - "sortable": true, - "title": "Creator", - "values": {}, - "vocabulary": "plone.app.vocabularies.Users" - }, - "Description": { - "description": "An item's description", - "enabled": true, - "group": "Text", - "operations": [ - "plone.app.querystring.operation.string.contains" - ], - "operators": { - "plone.app.querystring.operation.string.contains": { - "description": null, - "operation": "plone.app.querystring.queryparser._contains", - "title": "Contains", - "widget": "StringWidget" + }, + "sortable_indexes": { + "Creator": { + "description": "The person that created an item", + "enabled": true, + "group": "Metadata", + "operations": [ + "plone.app.querystring.operation.string.currentUser", + "plone.app.querystring.operation.selection.any" + ], + "operators": { + "plone.app.querystring.operation.selection.any": { + "description": "Tip: you can use * to autocomplete.", + "operation": "plone.app.querystring.queryparser._contains", + "title": "Matches any of", + "widget": "MultipleSelectionWidget" + }, + "plone.app.querystring.operation.string.currentUser": { + "description": "The user viewing the querystring results", + "operation": "plone.app.querystring.queryparser._currentUser", + "title": "Current logged in user", + "widget": null + } + }, + "sortable": true, + "title": "Creator", + "values": {}, + "vocabulary": "plone.app.vocabularies.Users" + }, + "created": { + "description": "The date an item was created", + "enabled": true, + "group": "Dates", + "operations": [ + "plone.app.querystring.operation.date.lessThan", + "plone.app.querystring.operation.date.largerThan", + "plone.app.querystring.operation.date.between", + "plone.app.querystring.operation.date.lessThanRelativeDate", + "plone.app.querystring.operation.date.largerThanRelativeDate", + "plone.app.querystring.operation.date.today", + "plone.app.querystring.operation.date.beforeToday", + "plone.app.querystring.operation.date.afterToday", + "plone.app.querystring.operation.date.beforeRelativeDate", + "plone.app.querystring.operation.date.afterRelativeDate" + ], + "operators": { + "plone.app.querystring.operation.date.afterRelativeDate": { + "description": "After N days in the future", + "operation": "plone.app.querystring.queryparser._afterRelativeDate", + "title": "After relative Date", + "widget": "RelativeDateWidget" + }, + "plone.app.querystring.operation.date.afterToday": { + "description": "After the current day", + "operation": "plone.app.querystring.queryparser._afterToday", + "title": "After today", + "widget": null + }, + "plone.app.querystring.operation.date.beforeRelativeDate": { + "description": "Before N days in the past", + "operation": "plone.app.querystring.queryparser._beforeRelativeDate", + "title": "Before relative Date", + "widget": "RelativeDateWidget" + }, + "plone.app.querystring.operation.date.beforeToday": { + "description": "Before the current day", + "operation": "plone.app.querystring.queryparser._beforeToday", + "title": "Before today", + "widget": null + }, + "plone.app.querystring.operation.date.between": { + "description": "Please use YYYY/MM/DD.", + "operation": "plone.app.querystring.queryparser._between", + "title": "Between dates", + "widget": "DateRangeWidget" + }, + "plone.app.querystring.operation.date.largerThan": { + "description": "Please use YYYY/MM/DD.", + "operation": "plone.app.querystring.queryparser._largerThan", + "title": "After date", + "widget": "DateWidget" + }, + "plone.app.querystring.operation.date.largerThanRelativeDate": { + "description": "Please enter the number in days.", + "operation": "plone.app.querystring.queryparser._moreThanRelativeDate", + "title": "Within last", + "widget": "RelativeDateWidget" + }, + "plone.app.querystring.operation.date.lessThan": { + "description": "Please use YYYY/MM/DD.", + "operation": "plone.app.querystring.queryparser._lessThan", + "title": "Before date", + "widget": "DateWidget" + }, + "plone.app.querystring.operation.date.lessThanRelativeDate": { + "description": "Please enter the number in days.", + "operation": "plone.app.querystring.queryparser._lessThanRelativeDate", + "title": "Within next", + "widget": "RelativeDateWidget" + }, + "plone.app.querystring.operation.date.today": { + "description": "The current day", + "operation": "plone.app.querystring.queryparser._today", + "title": "Today", + "widget": null + } + }, + "sortable": true, + "title": "Creation date", + "values": {}, + "vocabulary": null + }, + "effective": { + "description": "The time and date an item was first published", + "enabled": true, + "group": "Dates", + "operations": [ + "plone.app.querystring.operation.date.lessThan", + "plone.app.querystring.operation.date.largerThan", + "plone.app.querystring.operation.date.between", + "plone.app.querystring.operation.date.lessThanRelativeDate", + "plone.app.querystring.operation.date.largerThanRelativeDate", + "plone.app.querystring.operation.date.today", + "plone.app.querystring.operation.date.beforeToday", + "plone.app.querystring.operation.date.afterToday", + "plone.app.querystring.operation.date.beforeRelativeDate", + "plone.app.querystring.operation.date.afterRelativeDate" + ], + "operators": { + "plone.app.querystring.operation.date.afterRelativeDate": { + "description": "After N days in the future", + "operation": "plone.app.querystring.queryparser._afterRelativeDate", + "title": "After relative Date", + "widget": "RelativeDateWidget" + }, + "plone.app.querystring.operation.date.afterToday": { + "description": "After the current day", + "operation": "plone.app.querystring.queryparser._afterToday", + "title": "After today", + "widget": null + }, + "plone.app.querystring.operation.date.beforeRelativeDate": { + "description": "Before N days in the past", + "operation": "plone.app.querystring.queryparser._beforeRelativeDate", + "title": "Before relative Date", + "widget": "RelativeDateWidget" + }, + "plone.app.querystring.operation.date.beforeToday": { + "description": "Before the current day", + "operation": "plone.app.querystring.queryparser._beforeToday", + "title": "Before today", + "widget": null + }, + "plone.app.querystring.operation.date.between": { + "description": "Please use YYYY/MM/DD.", + "operation": "plone.app.querystring.queryparser._between", + "title": "Between dates", + "widget": "DateRangeWidget" + }, + "plone.app.querystring.operation.date.largerThan": { + "description": "Please use YYYY/MM/DD.", + "operation": "plone.app.querystring.queryparser._largerThan", + "title": "After date", + "widget": "DateWidget" + }, + "plone.app.querystring.operation.date.largerThanRelativeDate": { + "description": "Please enter the number in days.", + "operation": "plone.app.querystring.queryparser._moreThanRelativeDate", + "title": "Within last", + "widget": "RelativeDateWidget" + }, + "plone.app.querystring.operation.date.lessThan": { + "description": "Please use YYYY/MM/DD.", + "operation": "plone.app.querystring.queryparser._lessThan", + "title": "Before date", + "widget": "DateWidget" + }, + "plone.app.querystring.operation.date.lessThanRelativeDate": { + "description": "Please enter the number in days.", + "operation": "plone.app.querystring.queryparser._lessThanRelativeDate", + "title": "Within next", + "widget": "RelativeDateWidget" + }, + "plone.app.querystring.operation.date.today": { + "description": "The current day", + "operation": "plone.app.querystring.queryparser._today", + "title": "Today", + "widget": null + } + }, + "sortable": true, + "title": "Effective date", + "values": {}, + "vocabulary": null + }, + "end": { + "description": "The end date and time of an event", + "enabled": true, + "group": "Dates", + "operations": [ + "plone.app.querystring.operation.date.lessThan", + "plone.app.querystring.operation.date.largerThan", + "plone.app.querystring.operation.date.between", + "plone.app.querystring.operation.date.lessThanRelativeDate", + "plone.app.querystring.operation.date.largerThanRelativeDate", + "plone.app.querystring.operation.date.today", + "plone.app.querystring.operation.date.beforeToday", + "plone.app.querystring.operation.date.afterToday", + "plone.app.querystring.operation.date.beforeRelativeDate", + "plone.app.querystring.operation.date.afterRelativeDate" + ], + "operators": { + "plone.app.querystring.operation.date.afterRelativeDate": { + "description": "After N days in the future", + "operation": "plone.app.querystring.queryparser._afterRelativeDate", + "title": "After relative Date", + "widget": "RelativeDateWidget" + }, + "plone.app.querystring.operation.date.afterToday": { + "description": "After the current day", + "operation": "plone.app.querystring.queryparser._afterToday", + "title": "After today", + "widget": null + }, + "plone.app.querystring.operation.date.beforeRelativeDate": { + "description": "Before N days in the past", + "operation": "plone.app.querystring.queryparser._beforeRelativeDate", + "title": "Before relative Date", + "widget": "RelativeDateWidget" + }, + "plone.app.querystring.operation.date.beforeToday": { + "description": "Before the current day", + "operation": "plone.app.querystring.queryparser._beforeToday", + "title": "Before today", + "widget": null + }, + "plone.app.querystring.operation.date.between": { + "description": "Please use YYYY/MM/DD.", + "operation": "plone.app.querystring.queryparser._between", + "title": "Between dates", + "widget": "DateRangeWidget" + }, + "plone.app.querystring.operation.date.largerThan": { + "description": "Please use YYYY/MM/DD.", + "operation": "plone.app.querystring.queryparser._largerThan", + "title": "After date", + "widget": "DateWidget" + }, + "plone.app.querystring.operation.date.largerThanRelativeDate": { + "description": "Please enter the number in days.", + "operation": "plone.app.querystring.queryparser._moreThanRelativeDate", + "title": "Within last", + "widget": "RelativeDateWidget" + }, + "plone.app.querystring.operation.date.lessThan": { + "description": "Please use YYYY/MM/DD.", + "operation": "plone.app.querystring.queryparser._lessThan", + "title": "Before date", + "widget": "DateWidget" + }, + "plone.app.querystring.operation.date.lessThanRelativeDate": { + "description": "Please enter the number in days.", + "operation": "plone.app.querystring.queryparser._lessThanRelativeDate", + "title": "Within next", + "widget": "RelativeDateWidget" + }, + "plone.app.querystring.operation.date.today": { + "description": "The current day", + "operation": "plone.app.querystring.queryparser._today", + "title": "Today", + "widget": null + } + }, + "sortable": true, + "title": "Event end date", + "values": {}, + "vocabulary": null + }, + "expires": { + "description": "The time and date an item was expired", + "enabled": true, + "group": "Dates", + "operations": [ + "plone.app.querystring.operation.date.lessThan", + "plone.app.querystring.operation.date.largerThan", + "plone.app.querystring.operation.date.between", + "plone.app.querystring.operation.date.lessThanRelativeDate", + "plone.app.querystring.operation.date.largerThanRelativeDate", + "plone.app.querystring.operation.date.today", + "plone.app.querystring.operation.date.beforeToday", + "plone.app.querystring.operation.date.afterToday", + "plone.app.querystring.operation.date.beforeRelativeDate", + "plone.app.querystring.operation.date.afterRelativeDate" + ], + "operators": { + "plone.app.querystring.operation.date.afterRelativeDate": { + "description": "After N days in the future", + "operation": "plone.app.querystring.queryparser._afterRelativeDate", + "title": "After relative Date", + "widget": "RelativeDateWidget" + }, + "plone.app.querystring.operation.date.afterToday": { + "description": "After the current day", + "operation": "plone.app.querystring.queryparser._afterToday", + "title": "After today", + "widget": null + }, + "plone.app.querystring.operation.date.beforeRelativeDate": { + "description": "Before N days in the past", + "operation": "plone.app.querystring.queryparser._beforeRelativeDate", + "title": "Before relative Date", + "widget": "RelativeDateWidget" + }, + "plone.app.querystring.operation.date.beforeToday": { + "description": "Before the current day", + "operation": "plone.app.querystring.queryparser._beforeToday", + "title": "Before today", + "widget": null + }, + "plone.app.querystring.operation.date.between": { + "description": "Please use YYYY/MM/DD.", + "operation": "plone.app.querystring.queryparser._between", + "title": "Between dates", + "widget": "DateRangeWidget" + }, + "plone.app.querystring.operation.date.largerThan": { + "description": "Please use YYYY/MM/DD.", + "operation": "plone.app.querystring.queryparser._largerThan", + "title": "After date", + "widget": "DateWidget" + }, + "plone.app.querystring.operation.date.largerThanRelativeDate": { + "description": "Please enter the number in days.", + "operation": "plone.app.querystring.queryparser._moreThanRelativeDate", + "title": "Within last", + "widget": "RelativeDateWidget" + }, + "plone.app.querystring.operation.date.lessThan": { + "description": "Please use YYYY/MM/DD.", + "operation": "plone.app.querystring.queryparser._lessThan", + "title": "Before date", + "widget": "DateWidget" + }, + "plone.app.querystring.operation.date.lessThanRelativeDate": { + "description": "Please enter the number in days.", + "operation": "plone.app.querystring.queryparser._lessThanRelativeDate", + "title": "Within next", + "widget": "RelativeDateWidget" + }, + "plone.app.querystring.operation.date.today": { + "description": "The current day", + "operation": "plone.app.querystring.queryparser._today", + "title": "Today", + "widget": null + } + }, + "sortable": true, + "title": "Expiration date", + "values": {}, + "vocabulary": null + }, + "getId": { + "description": "The short name of an item (used in the url)", + "enabled": true, + "group": "Metadata", + "operations": [ + "plone.app.querystring.operation.string.is" + ], + "operators": { + "plone.app.querystring.operation.string.is": { + "description": "Tip: you can use * to autocomplete.", + "operation": "plone.app.querystring.queryparser._equal", + "title": "Is", + "widget": "StringWidget" + } + }, + "sortable": true, + "title": "Short name (id)", + "values": {}, + "vocabulary": null + }, + "getObjPositionInParent": { + "description": "The order of an item in its parent folder", + "enabled": false, + "group": "Metadata", + "operations": [ + "plone.app.querystring.operation.int.is", + "plone.app.querystring.operation.int.lessThan", + "plone.app.querystring.operation.int.largerThan" + ], + "operators": { + "plone.app.querystring.operation.int.is": { + "description": null, + "operation": "plone.app.querystring.queryparser._intEqual", + "title": "Equals", + "widget": "StringWidget" + }, + "plone.app.querystring.operation.int.largerThan": { + "description": null, + "operation": "plone.app.querystring.queryparser._intLargerThan", + "title": "Larger than", + "widget": "StringWidget" + }, + "plone.app.querystring.operation.int.lessThan": { + "description": null, + "operation": "plone.app.querystring.queryparser._intLessThan", + "title": "Less than", + "widget": "StringWidget" + } + }, + "sortable": true, + "title": "Order in folder", + "values": {}, + "vocabulary": null + }, + "modified": { + "description": "The time and date an item was last modified", + "enabled": true, + "group": "Dates", + "operations": [ + "plone.app.querystring.operation.date.lessThan", + "plone.app.querystring.operation.date.largerThan", + "plone.app.querystring.operation.date.between", + "plone.app.querystring.operation.date.lessThanRelativeDate", + "plone.app.querystring.operation.date.largerThanRelativeDate", + "plone.app.querystring.operation.date.today", + "plone.app.querystring.operation.date.beforeToday", + "plone.app.querystring.operation.date.afterToday", + "plone.app.querystring.operation.date.beforeRelativeDate", + "plone.app.querystring.operation.date.afterRelativeDate" + ], + "operators": { + "plone.app.querystring.operation.date.afterRelativeDate": { + "description": "After N days in the future", + "operation": "plone.app.querystring.queryparser._afterRelativeDate", + "title": "After relative Date", + "widget": "RelativeDateWidget" + }, + "plone.app.querystring.operation.date.afterToday": { + "description": "After the current day", + "operation": "plone.app.querystring.queryparser._afterToday", + "title": "After today", + "widget": null + }, + "plone.app.querystring.operation.date.beforeRelativeDate": { + "description": "Before N days in the past", + "operation": "plone.app.querystring.queryparser._beforeRelativeDate", + "title": "Before relative Date", + "widget": "RelativeDateWidget" + }, + "plone.app.querystring.operation.date.beforeToday": { + "description": "Before the current day", + "operation": "plone.app.querystring.queryparser._beforeToday", + "title": "Before today", + "widget": null + }, + "plone.app.querystring.operation.date.between": { + "description": "Please use YYYY/MM/DD.", + "operation": "plone.app.querystring.queryparser._between", + "title": "Between dates", + "widget": "DateRangeWidget" + }, + "plone.app.querystring.operation.date.largerThan": { + "description": "Please use YYYY/MM/DD.", + "operation": "plone.app.querystring.queryparser._largerThan", + "title": "After date", + "widget": "DateWidget" + }, + "plone.app.querystring.operation.date.largerThanRelativeDate": { + "description": "Please enter the number in days.", + "operation": "plone.app.querystring.queryparser._moreThanRelativeDate", + "title": "Within last", + "widget": "RelativeDateWidget" + }, + "plone.app.querystring.operation.date.lessThan": { + "description": "Please use YYYY/MM/DD.", + "operation": "plone.app.querystring.queryparser._lessThan", + "title": "Before date", + "widget": "DateWidget" + }, + "plone.app.querystring.operation.date.lessThanRelativeDate": { + "description": "Please enter the number in days.", + "operation": "plone.app.querystring.queryparser._lessThanRelativeDate", + "title": "Within next", + "widget": "RelativeDateWidget" + }, + "plone.app.querystring.operation.date.today": { + "description": "The current day", + "operation": "plone.app.querystring.queryparser._today", + "title": "Today", + "widget": null + } + }, + "sortable": true, + "title": "Modification date", + "values": {}, + "vocabulary": null + }, + "review_state": { + "description": "An item's workflow state (e.g.published)", + "enabled": true, + "group": "Metadata", + "operations": [ + "plone.app.querystring.operation.selection.any" + ], + "operators": { + "plone.app.querystring.operation.selection.any": { + "description": "Tip: you can use * to autocomplete.", + "operation": "plone.app.querystring.queryparser._contains", + "title": "Matches any of", + "widget": "MultipleSelectionWidget" + } + }, + "sortable": true, + "title": "Review state", + "values": { + "external": { + "title": "Externally visible [external]" + }, + "internal": { + "title": "Internal draft [internal]" + }, + "internally_published": { + "title": "Internally published [internally_published]" + }, + "pending": { + "title": "Pending [pending]" + }, + "private": { + "title": "Private [private]" + }, + "published": { + "title": "Published with accent \u00e9 [published]" + }, + "rejected": { + "title": "Rejected [rejected]" + }, + "spam": { + "title": "Spam [spam]" + }, + "visible": { + "title": "Public draft [visible]" + } + }, + "vocabulary": "plone.app.vocabularies.WorkflowStates" + }, + "sortable_title": { + "description": "The item's title, transformed for sorting", + "enabled": false, + "group": "Text", + "operations": [ + "plone.app.querystring.operation.string.contains", + "plone.app.querystring.operation.string.is" + ], + "operators": { + "plone.app.querystring.operation.string.contains": { + "description": null, + "operation": "plone.app.querystring.queryparser._contains", + "title": "Contains", + "widget": "StringWidget" + }, + "plone.app.querystring.operation.string.is": { + "description": "Tip: you can use * to autocomplete.", + "operation": "plone.app.querystring.queryparser._equal", + "title": "Is", + "widget": "StringWidget" + } + }, + "sortable": true, + "title": "Sortable Title", + "values": {}, + "vocabulary": null + }, + "start": { + "description": "The start date and time of an event", + "enabled": true, + "group": "Dates", + "operations": [ + "plone.app.querystring.operation.date.lessThan", + "plone.app.querystring.operation.date.largerThan", + "plone.app.querystring.operation.date.between", + "plone.app.querystring.operation.date.lessThanRelativeDate", + "plone.app.querystring.operation.date.largerThanRelativeDate", + "plone.app.querystring.operation.date.today", + "plone.app.querystring.operation.date.beforeToday", + "plone.app.querystring.operation.date.afterToday", + "plone.app.querystring.operation.date.beforeRelativeDate", + "plone.app.querystring.operation.date.afterRelativeDate" + ], + "operators": { + "plone.app.querystring.operation.date.afterRelativeDate": { + "description": "After N days in the future", + "operation": "plone.app.querystring.queryparser._afterRelativeDate", + "title": "After relative Date", + "widget": "RelativeDateWidget" + }, + "plone.app.querystring.operation.date.afterToday": { + "description": "After the current day", + "operation": "plone.app.querystring.queryparser._afterToday", + "title": "After today", + "widget": null + }, + "plone.app.querystring.operation.date.beforeRelativeDate": { + "description": "Before N days in the past", + "operation": "plone.app.querystring.queryparser._beforeRelativeDate", + "title": "Before relative Date", + "widget": "RelativeDateWidget" + }, + "plone.app.querystring.operation.date.beforeToday": { + "description": "Before the current day", + "operation": "plone.app.querystring.queryparser._beforeToday", + "title": "Before today", + "widget": null + }, + "plone.app.querystring.operation.date.between": { + "description": "Please use YYYY/MM/DD.", + "operation": "plone.app.querystring.queryparser._between", + "title": "Between dates", + "widget": "DateRangeWidget" + }, + "plone.app.querystring.operation.date.largerThan": { + "description": "Please use YYYY/MM/DD.", + "operation": "plone.app.querystring.queryparser._largerThan", + "title": "After date", + "widget": "DateWidget" + }, + "plone.app.querystring.operation.date.largerThanRelativeDate": { + "description": "Please enter the number in days.", + "operation": "plone.app.querystring.queryparser._moreThanRelativeDate", + "title": "Within last", + "widget": "RelativeDateWidget" + }, + "plone.app.querystring.operation.date.lessThan": { + "description": "Please use YYYY/MM/DD.", + "operation": "plone.app.querystring.queryparser._lessThan", + "title": "Before date", + "widget": "DateWidget" + }, + "plone.app.querystring.operation.date.lessThanRelativeDate": { + "description": "Please enter the number in days.", + "operation": "plone.app.querystring.queryparser._lessThanRelativeDate", + "title": "Within next", + "widget": "RelativeDateWidget" + }, + "plone.app.querystring.operation.date.today": { + "description": "The current day", + "operation": "plone.app.querystring.queryparser._today", + "title": "Today", + "widget": null + } + }, + "sortable": true, + "title": "Event start date", + "values": {}, + "vocabulary": null } - }, - "sortable": false, - "title": "Description", - "values": {}, - "vocabulary": null - }, - "SearchableText": { - "description": "Text search of an item's contents", - "enabled": true, - "group": "Text", - "operations": [ - "plone.app.querystring.operation.string.contains" - ], - "operators": { - "plone.app.querystring.operation.string.contains": { - "description": null, - "operation": "plone.app.querystring.queryparser._contains", - "title": "Contains", - "widget": "StringWidget" - } - }, - "sortable": false, - "title": "Searchable text", - "values": {}, - "vocabulary": null - }, - "Subject": { - "description": "Tags are used for organization of content", - "enabled": true, - "group": "Text", - "operations": [ - "plone.app.querystring.operation.selection.any", - "plone.app.querystring.operation.selection.all" - ], - "operators": { - "plone.app.querystring.operation.selection.all": { - "description": "Tip: you can use * to autocomplete.", - "operation": "plone.app.querystring.queryparser._all", - "title": "Matches all of", - "widget": "MultipleSelectionWidget" - }, - "plone.app.querystring.operation.selection.any": { - "description": "Tip: you can use * to autocomplete.", - "operation": "plone.app.querystring.queryparser._contains", - "title": "Matches any of", - "widget": "MultipleSelectionWidget" - } - }, - "sortable": false, - "title": "Tag", - "values": {}, - "vocabulary": "plone.app.vocabularies.Keywords" - }, - "Title": { - "description": "Text search of an item's title", - "enabled": true, - "group": "Text", - "operations": [ - "plone.app.querystring.operation.string.contains" - ], - "operators": { - "plone.app.querystring.operation.string.contains": { - "description": null, - "operation": "plone.app.querystring.queryparser._contains", - "title": "Contains", - "widget": "StringWidget" - } - }, - "sortable": false, - "title": "Title", - "values": {}, - "vocabulary": null - }, - "created": { - "description": "The date an item was created", - "enabled": true, - "group": "Dates", - "operations": [ - "plone.app.querystring.operation.date.lessThan", - "plone.app.querystring.operation.date.largerThan", - "plone.app.querystring.operation.date.between", - "plone.app.querystring.operation.date.lessThanRelativeDate", - "plone.app.querystring.operation.date.largerThanRelativeDate", - "plone.app.querystring.operation.date.today", - "plone.app.querystring.operation.date.beforeToday", - "plone.app.querystring.operation.date.afterToday", - "plone.app.querystring.operation.date.beforeRelativeDate", - "plone.app.querystring.operation.date.afterRelativeDate" - ], - "operators": { - "plone.app.querystring.operation.date.afterRelativeDate": { - "description": "After N days in the future", - "operation": "plone.app.querystring.queryparser._afterRelativeDate", - "title": "After relative Date", - "widget": "RelativeDateWidget" - }, - "plone.app.querystring.operation.date.afterToday": { - "description": "After the current day", - "operation": "plone.app.querystring.queryparser._afterToday", - "title": "After today", - "widget": null - }, - "plone.app.querystring.operation.date.beforeRelativeDate": { - "description": "Before N days in the past", - "operation": "plone.app.querystring.queryparser._beforeRelativeDate", - "title": "Before relative Date", - "widget": "RelativeDateWidget" - }, - "plone.app.querystring.operation.date.beforeToday": { - "description": "Before the current day", - "operation": "plone.app.querystring.queryparser._beforeToday", - "title": "Before today", - "widget": null - }, - "plone.app.querystring.operation.date.between": { - "description": "Please use YYYY/MM/DD.", - "operation": "plone.app.querystring.queryparser._between", - "title": "Between dates", - "widget": "DateRangeWidget" - }, - "plone.app.querystring.operation.date.largerThan": { - "description": "Please use YYYY/MM/DD.", - "operation": "plone.app.querystring.queryparser._largerThan", - "title": "After date", - "widget": "DateWidget" - }, - "plone.app.querystring.operation.date.largerThanRelativeDate": { - "description": "Please enter the number in days.", - "operation": "plone.app.querystring.queryparser._moreThanRelativeDate", - "title": "Within last", - "widget": "RelativeDateWidget" - }, - "plone.app.querystring.operation.date.lessThan": { - "description": "Please use YYYY/MM/DD.", - "operation": "plone.app.querystring.queryparser._lessThan", - "title": "Before date", - "widget": "DateWidget" - }, - "plone.app.querystring.operation.date.lessThanRelativeDate": { - "description": "Please enter the number in days.", - "operation": "plone.app.querystring.queryparser._lessThanRelativeDate", - "title": "Within next", - "widget": "RelativeDateWidget" - }, - "plone.app.querystring.operation.date.today": { - "description": "The current day", - "operation": "plone.app.querystring.queryparser._today", - "title": "Today", - "widget": null - } - }, - "sortable": true, - "title": "Creation date", - "values": {}, - "vocabulary": null - }, - "effective": { - "description": "The time and date an item was first published", - "enabled": true, - "group": "Dates", - "operations": [ - "plone.app.querystring.operation.date.lessThan", - "plone.app.querystring.operation.date.largerThan", - "plone.app.querystring.operation.date.between", - "plone.app.querystring.operation.date.lessThanRelativeDate", - "plone.app.querystring.operation.date.largerThanRelativeDate", - "plone.app.querystring.operation.date.today", - "plone.app.querystring.operation.date.beforeToday", - "plone.app.querystring.operation.date.afterToday", - "plone.app.querystring.operation.date.beforeRelativeDate", - "plone.app.querystring.operation.date.afterRelativeDate" - ], - "operators": { - "plone.app.querystring.operation.date.afterRelativeDate": { - "description": "After N days in the future", - "operation": "plone.app.querystring.queryparser._afterRelativeDate", - "title": "After relative Date", - "widget": "RelativeDateWidget" - }, - "plone.app.querystring.operation.date.afterToday": { - "description": "After the current day", - "operation": "plone.app.querystring.queryparser._afterToday", - "title": "After today", - "widget": null - }, - "plone.app.querystring.operation.date.beforeRelativeDate": { - "description": "Before N days in the past", - "operation": "plone.app.querystring.queryparser._beforeRelativeDate", - "title": "Before relative Date", - "widget": "RelativeDateWidget" - }, - "plone.app.querystring.operation.date.beforeToday": { - "description": "Before the current day", - "operation": "plone.app.querystring.queryparser._beforeToday", - "title": "Before today", - "widget": null - }, - "plone.app.querystring.operation.date.between": { - "description": "Please use YYYY/MM/DD.", - "operation": "plone.app.querystring.queryparser._between", - "title": "Between dates", - "widget": "DateRangeWidget" - }, - "plone.app.querystring.operation.date.largerThan": { - "description": "Please use YYYY/MM/DD.", - "operation": "plone.app.querystring.queryparser._largerThan", - "title": "After date", - "widget": "DateWidget" - }, - "plone.app.querystring.operation.date.largerThanRelativeDate": { - "description": "Please enter the number in days.", - "operation": "plone.app.querystring.queryparser._moreThanRelativeDate", - "title": "Within last", - "widget": "RelativeDateWidget" - }, - "plone.app.querystring.operation.date.lessThan": { - "description": "Please use YYYY/MM/DD.", - "operation": "plone.app.querystring.queryparser._lessThan", - "title": "Before date", - "widget": "DateWidget" - }, - "plone.app.querystring.operation.date.lessThanRelativeDate": { - "description": "Please enter the number in days.", - "operation": "plone.app.querystring.queryparser._lessThanRelativeDate", - "title": "Within next", - "widget": "RelativeDateWidget" - }, - "plone.app.querystring.operation.date.today": { - "description": "The current day", - "operation": "plone.app.querystring.queryparser._today", - "title": "Today", - "widget": null - } - }, - "sortable": true, - "title": "Effective date", - "values": {}, - "vocabulary": null - }, - "effectiveRange": { - "description": "Querying this is undefined", - "enabled": false, - "group": "Dates", - "operations": [], - "operators": {}, - "sortable": false, - "title": "Effective range", - "values": {}, - "vocabulary": null - }, - "end": { - "description": "The end date and time of an event", - "enabled": true, - "group": "Dates", - "operations": [ - "plone.app.querystring.operation.date.lessThan", - "plone.app.querystring.operation.date.largerThan", - "plone.app.querystring.operation.date.between", - "plone.app.querystring.operation.date.lessThanRelativeDate", - "plone.app.querystring.operation.date.largerThanRelativeDate", - "plone.app.querystring.operation.date.today", - "plone.app.querystring.operation.date.beforeToday", - "plone.app.querystring.operation.date.afterToday", - "plone.app.querystring.operation.date.beforeRelativeDate", - "plone.app.querystring.operation.date.afterRelativeDate" - ], - "operators": { - "plone.app.querystring.operation.date.afterRelativeDate": { - "description": "After N days in the future", - "operation": "plone.app.querystring.queryparser._afterRelativeDate", - "title": "After relative Date", - "widget": "RelativeDateWidget" - }, - "plone.app.querystring.operation.date.afterToday": { - "description": "After the current day", - "operation": "plone.app.querystring.queryparser._afterToday", - "title": "After today", - "widget": null - }, - "plone.app.querystring.operation.date.beforeRelativeDate": { - "description": "Before N days in the past", - "operation": "plone.app.querystring.queryparser._beforeRelativeDate", - "title": "Before relative Date", - "widget": "RelativeDateWidget" - }, - "plone.app.querystring.operation.date.beforeToday": { - "description": "Before the current day", - "operation": "plone.app.querystring.queryparser._beforeToday", - "title": "Before today", - "widget": null - }, - "plone.app.querystring.operation.date.between": { - "description": "Please use YYYY/MM/DD.", - "operation": "plone.app.querystring.queryparser._between", - "title": "Between dates", - "widget": "DateRangeWidget" - }, - "plone.app.querystring.operation.date.largerThan": { - "description": "Please use YYYY/MM/DD.", - "operation": "plone.app.querystring.queryparser._largerThan", - "title": "After date", - "widget": "DateWidget" - }, - "plone.app.querystring.operation.date.largerThanRelativeDate": { - "description": "Please enter the number in days.", - "operation": "plone.app.querystring.queryparser._moreThanRelativeDate", - "title": "Within last", - "widget": "RelativeDateWidget" - }, - "plone.app.querystring.operation.date.lessThan": { - "description": "Please use YYYY/MM/DD.", - "operation": "plone.app.querystring.queryparser._lessThan", - "title": "Before date", - "widget": "DateWidget" - }, - "plone.app.querystring.operation.date.lessThanRelativeDate": { - "description": "Please enter the number in days.", - "operation": "plone.app.querystring.queryparser._lessThanRelativeDate", - "title": "Within next", - "widget": "RelativeDateWidget" - }, - "plone.app.querystring.operation.date.today": { - "description": "The current day", - "operation": "plone.app.querystring.queryparser._today", - "title": "Today", - "widget": null - } - }, - "sortable": true, - "title": "Event end date", - "values": {}, - "vocabulary": null - }, - "expires": { - "description": "The time and date an item was expired", - "enabled": true, - "group": "Dates", - "operations": [ - "plone.app.querystring.operation.date.lessThan", - "plone.app.querystring.operation.date.largerThan", - "plone.app.querystring.operation.date.between", - "plone.app.querystring.operation.date.lessThanRelativeDate", - "plone.app.querystring.operation.date.largerThanRelativeDate", - "plone.app.querystring.operation.date.today", - "plone.app.querystring.operation.date.beforeToday", - "plone.app.querystring.operation.date.afterToday", - "plone.app.querystring.operation.date.beforeRelativeDate", - "plone.app.querystring.operation.date.afterRelativeDate" - ], - "operators": { - "plone.app.querystring.operation.date.afterRelativeDate": { - "description": "After N days in the future", - "operation": "plone.app.querystring.queryparser._afterRelativeDate", - "title": "After relative Date", - "widget": "RelativeDateWidget" - }, - "plone.app.querystring.operation.date.afterToday": { - "description": "After the current day", - "operation": "plone.app.querystring.queryparser._afterToday", - "title": "After today", - "widget": null - }, - "plone.app.querystring.operation.date.beforeRelativeDate": { - "description": "Before N days in the past", - "operation": "plone.app.querystring.queryparser._beforeRelativeDate", - "title": "Before relative Date", - "widget": "RelativeDateWidget" - }, - "plone.app.querystring.operation.date.beforeToday": { - "description": "Before the current day", - "operation": "plone.app.querystring.queryparser._beforeToday", - "title": "Before today", - "widget": null - }, - "plone.app.querystring.operation.date.between": { - "description": "Please use YYYY/MM/DD.", - "operation": "plone.app.querystring.queryparser._between", - "title": "Between dates", - "widget": "DateRangeWidget" - }, - "plone.app.querystring.operation.date.largerThan": { - "description": "Please use YYYY/MM/DD.", - "operation": "plone.app.querystring.queryparser._largerThan", - "title": "After date", - "widget": "DateWidget" - }, - "plone.app.querystring.operation.date.largerThanRelativeDate": { - "description": "Please enter the number in days.", - "operation": "plone.app.querystring.queryparser._moreThanRelativeDate", - "title": "Within last", - "widget": "RelativeDateWidget" - }, - "plone.app.querystring.operation.date.lessThan": { - "description": "Please use YYYY/MM/DD.", - "operation": "plone.app.querystring.queryparser._lessThan", - "title": "Before date", - "widget": "DateWidget" - }, - "plone.app.querystring.operation.date.lessThanRelativeDate": { - "description": "Please enter the number in days.", - "operation": "plone.app.querystring.queryparser._lessThanRelativeDate", - "title": "Within next", - "widget": "RelativeDateWidget" - }, - "plone.app.querystring.operation.date.today": { - "description": "The current day", - "operation": "plone.app.querystring.queryparser._today", - "title": "Today", - "widget": null - } - }, - "sortable": true, - "title": "Expiration date", - "values": {}, - "vocabulary": null - }, - "getId": { - "description": "The short name of an item (used in the url)", - "enabled": true, - "group": "Metadata", - "operations": [ - "plone.app.querystring.operation.string.is" - ], - "operators": { - "plone.app.querystring.operation.string.is": { - "description": "Tip: you can use * to autocomplete.", - "operation": "plone.app.querystring.queryparser._equal", - "title": "Is", - "widget": "StringWidget" - } - }, - "sortable": true, - "title": "Short name (id)", - "values": {}, - "vocabulary": null - }, - "getObjPositionInParent": { - "description": "The order of an item in its parent folder", - "enabled": false, - "group": "Metadata", - "operations": [ - "plone.app.querystring.operation.int.is", - "plone.app.querystring.operation.int.lessThan", - "plone.app.querystring.operation.int.largerThan" - ], - "operators": { - "plone.app.querystring.operation.int.is": { - "description": null, - "operation": "plone.app.querystring.queryparser._intEqual", - "title": "Equals", - "widget": "StringWidget" - }, - "plone.app.querystring.operation.int.largerThan": { - "description": null, - "operation": "plone.app.querystring.queryparser._intLargerThan", - "title": "Larger than", - "widget": "StringWidget" - }, - "plone.app.querystring.operation.int.lessThan": { - "description": null, - "operation": "plone.app.querystring.queryparser._intLessThan", - "title": "Less than", - "widget": "StringWidget" - } - }, - "sortable": true, - "title": "Order in folder", - "values": {}, - "vocabulary": null - }, - "getRawRelatedItems": { - "description": "Find items related to the selected items", - "enabled": false, - "group": "Metadata", - "operations": [ - "plone.app.querystring.operation.reference.is" - ], - "operators": { - "plone.app.querystring.operation.reference.is": { - "description": null, - "operation": "plone.app.querystring.queryparser._referenceIs", - "title": "Equals", - "widget": "ReferenceWidget" - } - }, - "sortable": false, - "title": "Related To", - "values": {}, - "vocabulary": null - }, - "isDefaultPage": { - "description": "Find items that are the default view for their containing folder.", - "enabled": false, - "group": "Metadata", - "operations": [ - "plone.app.querystring.operation.boolean.isTrue", - "plone.app.querystring.operation.boolean.isFalse" - ], - "operators": { - "plone.app.querystring.operation.boolean.isFalse": { - "description": null, - "operation": "plone.app.querystring.queryparser._isFalse", - "title": "No", - "widget": null - }, - "plone.app.querystring.operation.boolean.isTrue": { - "description": null, - "operation": "plone.app.querystring.queryparser._isTrue", - "title": "Yes", - "widget": null - } - }, - "sortable": false, - "title": "Default Page", - "values": {}, - "vocabulary": null - }, - "isFolderish": { - "description": "Find items that can contain other objects", - "enabled": false, - "group": "Metadata", - "operations": [ - "plone.app.querystring.operation.boolean.isTrue", - "plone.app.querystring.operation.boolean.isFalse" - ], - "operators": { - "plone.app.querystring.operation.boolean.isFalse": { - "description": null, - "operation": "plone.app.querystring.queryparser._isFalse", - "title": "No", - "widget": null - }, - "plone.app.querystring.operation.boolean.isTrue": { - "description": null, - "operation": "plone.app.querystring.queryparser._isTrue", - "title": "Yes", - "widget": null - } - }, - "sortable": false, - "title": "Folder-like", - "values": {}, - "vocabulary": null - }, - "modified": { - "description": "The time and date an item was last modified", - "enabled": true, - "group": "Dates", - "operations": [ - "plone.app.querystring.operation.date.lessThan", - "plone.app.querystring.operation.date.largerThan", - "plone.app.querystring.operation.date.between", - "plone.app.querystring.operation.date.lessThanRelativeDate", - "plone.app.querystring.operation.date.largerThanRelativeDate", - "plone.app.querystring.operation.date.today", - "plone.app.querystring.operation.date.beforeToday", - "plone.app.querystring.operation.date.afterToday", - "plone.app.querystring.operation.date.beforeRelativeDate", - "plone.app.querystring.operation.date.afterRelativeDate" - ], - "operators": { - "plone.app.querystring.operation.date.afterRelativeDate": { - "description": "After N days in the future", - "operation": "plone.app.querystring.queryparser._afterRelativeDate", - "title": "After relative Date", - "widget": "RelativeDateWidget" - }, - "plone.app.querystring.operation.date.afterToday": { - "description": "After the current day", - "operation": "plone.app.querystring.queryparser._afterToday", - "title": "After today", - "widget": null - }, - "plone.app.querystring.operation.date.beforeRelativeDate": { - "description": "Before N days in the past", - "operation": "plone.app.querystring.queryparser._beforeRelativeDate", - "title": "Before relative Date", - "widget": "RelativeDateWidget" - }, - "plone.app.querystring.operation.date.beforeToday": { - "description": "Before the current day", - "operation": "plone.app.querystring.queryparser._beforeToday", - "title": "Before today", - "widget": null - }, - "plone.app.querystring.operation.date.between": { - "description": "Please use YYYY/MM/DD.", - "operation": "plone.app.querystring.queryparser._between", - "title": "Between dates", - "widget": "DateRangeWidget" - }, - "plone.app.querystring.operation.date.largerThan": { - "description": "Please use YYYY/MM/DD.", - "operation": "plone.app.querystring.queryparser._largerThan", - "title": "After date", - "widget": "DateWidget" - }, - "plone.app.querystring.operation.date.largerThanRelativeDate": { - "description": "Please enter the number in days.", - "operation": "plone.app.querystring.queryparser._moreThanRelativeDate", - "title": "Within last", - "widget": "RelativeDateWidget" - }, - "plone.app.querystring.operation.date.lessThan": { - "description": "Please use YYYY/MM/DD.", - "operation": "plone.app.querystring.queryparser._lessThan", - "title": "Before date", - "widget": "DateWidget" - }, - "plone.app.querystring.operation.date.lessThanRelativeDate": { - "description": "Please enter the number in days.", - "operation": "plone.app.querystring.queryparser._lessThanRelativeDate", - "title": "Within next", - "widget": "RelativeDateWidget" - }, - "plone.app.querystring.operation.date.today": { - "description": "The current day", - "operation": "plone.app.querystring.queryparser._today", - "title": "Today", - "widget": null - } - }, - "sortable": true, - "title": "Modification date", - "values": {}, - "vocabulary": null - }, - "path": { - "description": "The location of an item ", - "enabled": true, - "group": "Metadata", - "operations": [ - "plone.app.querystring.operation.string.absolutePath", - "plone.app.querystring.operation.string.path", - "plone.app.querystring.operation.string.relativePath" - ], - "operators": { - "plone.app.querystring.operation.string.absolutePath": { - "description": "Location in the site structure", - "operation": "plone.app.querystring.queryparser._absolutePath", - "title": "Absolute path", - "widget": "ReferenceWidget" - }, - "plone.app.querystring.operation.string.path": { - "description": "Location in the navigation structure", - "operation": "plone.app.querystring.queryparser._navigationPath", - "title": "Navigation path", - "widget": "ReferenceWidget" - }, - "plone.app.querystring.operation.string.relativePath": { - "description": "Use '../' to navigate to parent objects.", - "operation": "plone.app.querystring.queryparser._relativePath", - "title": "Relative path", - "widget": "RelativePathWidget" - } - }, - "sortable": false, - "title": "Location", - "values": {}, - "vocabulary": null - }, - "portal_type": { - "description": "An item's type (e.g. Event)", - "enabled": true, - "group": "Metadata", - "operations": [ - "plone.app.querystring.operation.selection.any" - ], - "operators": { - "plone.app.querystring.operation.selection.any": { - "description": "Tip: you can use * to autocomplete.", - "operation": "plone.app.querystring.queryparser._contains", - "title": "Matches any of", - "widget": "MultipleSelectionWidget" - } - }, - "sortable": false, - "title": "Type", - "values": { - "ATTestDocument": { - "title": "Test Document" - }, - "ATTestFolder": { - "title": "Test Folder" - }, - "Collection": { - "title": "Collection" - }, - "DXTestDocument": { - "title": "DX Test Document" - }, - "Discussion Item": { - "title": "Comment" - }, - "Document": { - "title": "Page" - }, - "Event": { - "title": "Event" - }, - "File": { - "title": "File" - }, - "Folder": { - "title": "Folder" - }, - "Image": { - "title": "Image" - }, - "Link": { - "title": "Link" - }, - "News Item": { - "title": "News Item" - } - }, - "vocabulary": "plone.app.vocabularies.ReallyUserFriendlyTypes" - }, - "review_state": { - "description": "An item's workflow state (e.g.published)", - "enabled": true, - "group": "Metadata", - "operations": [ - "plone.app.querystring.operation.selection.any" - ], - "operators": { - "plone.app.querystring.operation.selection.any": { - "description": "Tip: you can use * to autocomplete.", - "operation": "plone.app.querystring.queryparser._contains", - "title": "Matches any of", - "widget": "MultipleSelectionWidget" - } - }, - "sortable": true, - "title": "Review state", - "values": { - "external": { - "title": "Externally visible [external]" - }, - "internal": { - "title": "Internal draft [internal]" - }, - "internally_published": { - "title": "Internally published [internally_published]" - }, - "pending": { - "title": "Pending [pending]" - }, - "private": { - "title": "Private [private]" - }, - "published": { - "title": "Published with accent \u00e9 [published]" - }, - "rejected": { - "title": "Rejected [rejected]" - }, - "spam": { - "title": "Spam [spam]" - }, - "visible": { - "title": "Public draft [visible]" - } - }, - "vocabulary": "plone.app.vocabularies.WorkflowStates" - }, - "show_inactive": { - "description": "Select which roles have the permission to view inactive objects", - "enabled": true, - "group": "Metadata", - "operations": [ - "plone.app.querystring.operation.string.showInactive" - ], - "operators": { - "plone.app.querystring.operation.string.showInactive": { - "description": "The user roles which are allowed to see inactive content", - "operation": "plone.app.querystring.queryparser._showInactive", - "title": "Show Inactive", - "widget": "MultipleSelectionWidget" - } - }, - "sortable": false, - "title": "Show Inactive", - "values": { - "Anonymous": { - "title": "Anonymous" - }, - "Authenticated": { - "title": "Authenticated" - }, - "Contributor": { - "title": "Contributor" - }, - "Editor": { - "title": "Editor" - }, - "Manager": { - "title": "Manager" - }, - "Member": { - "title": "Member" - }, - "Owner": { - "title": "Owner" - }, - "Reader": { - "title": "Reader" - }, - "Reviewer": { - "title": "Reviewer" - }, - "Site Administrator": { - "title": "Site Administrator" - } - }, - "vocabulary": "plone.app.vocabularies.Roles" - }, - "sortable_title": { - "description": "The item's title, transformed for sorting", - "enabled": false, - "group": "Text", - "operations": [ - "plone.app.querystring.operation.string.contains", - "plone.app.querystring.operation.string.is" - ], - "operators": { - "plone.app.querystring.operation.string.contains": { - "description": null, - "operation": "plone.app.querystring.queryparser._contains", - "title": "Contains", - "widget": "StringWidget" - }, - "plone.app.querystring.operation.string.is": { - "description": "Tip: you can use * to autocomplete.", - "operation": "plone.app.querystring.queryparser._equal", - "title": "Is", - "widget": "StringWidget" - } - }, - "sortable": true, - "title": "Sortable Title", - "values": {}, - "vocabulary": null - }, - "start": { - "description": "The start date and time of an event", - "enabled": true, - "group": "Dates", - "operations": [ - "plone.app.querystring.operation.date.lessThan", - "plone.app.querystring.operation.date.largerThan", - "plone.app.querystring.operation.date.between", - "plone.app.querystring.operation.date.lessThanRelativeDate", - "plone.app.querystring.operation.date.largerThanRelativeDate", - "plone.app.querystring.operation.date.today", - "plone.app.querystring.operation.date.beforeToday", - "plone.app.querystring.operation.date.afterToday", - "plone.app.querystring.operation.date.beforeRelativeDate", - "plone.app.querystring.operation.date.afterRelativeDate" - ], - "operators": { - "plone.app.querystring.operation.date.afterRelativeDate": { - "description": "After N days in the future", - "operation": "plone.app.querystring.queryparser._afterRelativeDate", - "title": "After relative Date", - "widget": "RelativeDateWidget" - }, - "plone.app.querystring.operation.date.afterToday": { - "description": "After the current day", - "operation": "plone.app.querystring.queryparser._afterToday", - "title": "After today", - "widget": null - }, - "plone.app.querystring.operation.date.beforeRelativeDate": { - "description": "Before N days in the past", - "operation": "plone.app.querystring.queryparser._beforeRelativeDate", - "title": "Before relative Date", - "widget": "RelativeDateWidget" - }, - "plone.app.querystring.operation.date.beforeToday": { - "description": "Before the current day", - "operation": "plone.app.querystring.queryparser._beforeToday", - "title": "Before today", - "widget": null - }, - "plone.app.querystring.operation.date.between": { - "description": "Please use YYYY/MM/DD.", - "operation": "plone.app.querystring.queryparser._between", - "title": "Between dates", - "widget": "DateRangeWidget" - }, - "plone.app.querystring.operation.date.largerThan": { - "description": "Please use YYYY/MM/DD.", - "operation": "plone.app.querystring.queryparser._largerThan", - "title": "After date", - "widget": "DateWidget" - }, - "plone.app.querystring.operation.date.largerThanRelativeDate": { - "description": "Please enter the number in days.", - "operation": "plone.app.querystring.queryparser._moreThanRelativeDate", - "title": "Within last", - "widget": "RelativeDateWidget" - }, - "plone.app.querystring.operation.date.lessThan": { - "description": "Please use YYYY/MM/DD.", - "operation": "plone.app.querystring.queryparser._lessThan", - "title": "Before date", - "widget": "DateWidget" - }, - "plone.app.querystring.operation.date.lessThanRelativeDate": { - "description": "Please enter the number in days.", - "operation": "plone.app.querystring.queryparser._lessThanRelativeDate", - "title": "Within next", - "widget": "RelativeDateWidget" - }, - "plone.app.querystring.operation.date.today": { - "description": "The current day", - "operation": "plone.app.querystring.queryparser._today", - "title": "Today", - "widget": null - } - }, - "sortable": true, - "title": "Event start date", - "values": {}, - "vocabulary": null - } - }, - "sortable_indexes": { - "Creator": { - "description": "The person that created an item", - "enabled": true, - "group": "Metadata", - "operations": [ - "plone.app.querystring.operation.string.currentUser", - "plone.app.querystring.operation.selection.any" - ], - "operators": { - "plone.app.querystring.operation.selection.any": { - "description": "Tip: you can use * to autocomplete.", - "operation": "plone.app.querystring.queryparser._contains", - "title": "Matches any of", - "widget": "MultipleSelectionWidget" - }, - "plone.app.querystring.operation.string.currentUser": { - "description": "The user viewing the querystring results", - "operation": "plone.app.querystring.queryparser._currentUser", - "title": "Current logged in user", - "widget": null - } - }, - "sortable": true, - "title": "Creator", - "values": {}, - "vocabulary": "plone.app.vocabularies.Users" - }, - "created": { - "description": "The date an item was created", - "enabled": true, - "group": "Dates", - "operations": [ - "plone.app.querystring.operation.date.lessThan", - "plone.app.querystring.operation.date.largerThan", - "plone.app.querystring.operation.date.between", - "plone.app.querystring.operation.date.lessThanRelativeDate", - "plone.app.querystring.operation.date.largerThanRelativeDate", - "plone.app.querystring.operation.date.today", - "plone.app.querystring.operation.date.beforeToday", - "plone.app.querystring.operation.date.afterToday", - "plone.app.querystring.operation.date.beforeRelativeDate", - "plone.app.querystring.operation.date.afterRelativeDate" - ], - "operators": { - "plone.app.querystring.operation.date.afterRelativeDate": { - "description": "After N days in the future", - "operation": "plone.app.querystring.queryparser._afterRelativeDate", - "title": "After relative Date", - "widget": "RelativeDateWidget" - }, - "plone.app.querystring.operation.date.afterToday": { - "description": "After the current day", - "operation": "plone.app.querystring.queryparser._afterToday", - "title": "After today", - "widget": null - }, - "plone.app.querystring.operation.date.beforeRelativeDate": { - "description": "Before N days in the past", - "operation": "plone.app.querystring.queryparser._beforeRelativeDate", - "title": "Before relative Date", - "widget": "RelativeDateWidget" - }, - "plone.app.querystring.operation.date.beforeToday": { - "description": "Before the current day", - "operation": "plone.app.querystring.queryparser._beforeToday", - "title": "Before today", - "widget": null - }, - "plone.app.querystring.operation.date.between": { - "description": "Please use YYYY/MM/DD.", - "operation": "plone.app.querystring.queryparser._between", - "title": "Between dates", - "widget": "DateRangeWidget" - }, - "plone.app.querystring.operation.date.largerThan": { - "description": "Please use YYYY/MM/DD.", - "operation": "plone.app.querystring.queryparser._largerThan", - "title": "After date", - "widget": "DateWidget" - }, - "plone.app.querystring.operation.date.largerThanRelativeDate": { - "description": "Please enter the number in days.", - "operation": "plone.app.querystring.queryparser._moreThanRelativeDate", - "title": "Within last", - "widget": "RelativeDateWidget" - }, - "plone.app.querystring.operation.date.lessThan": { - "description": "Please use YYYY/MM/DD.", - "operation": "plone.app.querystring.queryparser._lessThan", - "title": "Before date", - "widget": "DateWidget" - }, - "plone.app.querystring.operation.date.lessThanRelativeDate": { - "description": "Please enter the number in days.", - "operation": "plone.app.querystring.queryparser._lessThanRelativeDate", - "title": "Within next", - "widget": "RelativeDateWidget" - }, - "plone.app.querystring.operation.date.today": { - "description": "The current day", - "operation": "plone.app.querystring.queryparser._today", - "title": "Today", - "widget": null - } - }, - "sortable": true, - "title": "Creation date", - "values": {}, - "vocabulary": null - }, - "effective": { - "description": "The time and date an item was first published", - "enabled": true, - "group": "Dates", - "operations": [ - "plone.app.querystring.operation.date.lessThan", - "plone.app.querystring.operation.date.largerThan", - "plone.app.querystring.operation.date.between", - "plone.app.querystring.operation.date.lessThanRelativeDate", - "plone.app.querystring.operation.date.largerThanRelativeDate", - "plone.app.querystring.operation.date.today", - "plone.app.querystring.operation.date.beforeToday", - "plone.app.querystring.operation.date.afterToday", - "plone.app.querystring.operation.date.beforeRelativeDate", - "plone.app.querystring.operation.date.afterRelativeDate" - ], - "operators": { - "plone.app.querystring.operation.date.afterRelativeDate": { - "description": "After N days in the future", - "operation": "plone.app.querystring.queryparser._afterRelativeDate", - "title": "After relative Date", - "widget": "RelativeDateWidget" - }, - "plone.app.querystring.operation.date.afterToday": { - "description": "After the current day", - "operation": "plone.app.querystring.queryparser._afterToday", - "title": "After today", - "widget": null - }, - "plone.app.querystring.operation.date.beforeRelativeDate": { - "description": "Before N days in the past", - "operation": "plone.app.querystring.queryparser._beforeRelativeDate", - "title": "Before relative Date", - "widget": "RelativeDateWidget" - }, - "plone.app.querystring.operation.date.beforeToday": { - "description": "Before the current day", - "operation": "plone.app.querystring.queryparser._beforeToday", - "title": "Before today", - "widget": null - }, - "plone.app.querystring.operation.date.between": { - "description": "Please use YYYY/MM/DD.", - "operation": "plone.app.querystring.queryparser._between", - "title": "Between dates", - "widget": "DateRangeWidget" - }, - "plone.app.querystring.operation.date.largerThan": { - "description": "Please use YYYY/MM/DD.", - "operation": "plone.app.querystring.queryparser._largerThan", - "title": "After date", - "widget": "DateWidget" - }, - "plone.app.querystring.operation.date.largerThanRelativeDate": { - "description": "Please enter the number in days.", - "operation": "plone.app.querystring.queryparser._moreThanRelativeDate", - "title": "Within last", - "widget": "RelativeDateWidget" - }, - "plone.app.querystring.operation.date.lessThan": { - "description": "Please use YYYY/MM/DD.", - "operation": "plone.app.querystring.queryparser._lessThan", - "title": "Before date", - "widget": "DateWidget" - }, - "plone.app.querystring.operation.date.lessThanRelativeDate": { - "description": "Please enter the number in days.", - "operation": "plone.app.querystring.queryparser._lessThanRelativeDate", - "title": "Within next", - "widget": "RelativeDateWidget" - }, - "plone.app.querystring.operation.date.today": { - "description": "The current day", - "operation": "plone.app.querystring.queryparser._today", - "title": "Today", - "widget": null - } - }, - "sortable": true, - "title": "Effective date", - "values": {}, - "vocabulary": null - }, - "end": { - "description": "The end date and time of an event", - "enabled": true, - "group": "Dates", - "operations": [ - "plone.app.querystring.operation.date.lessThan", - "plone.app.querystring.operation.date.largerThan", - "plone.app.querystring.operation.date.between", - "plone.app.querystring.operation.date.lessThanRelativeDate", - "plone.app.querystring.operation.date.largerThanRelativeDate", - "plone.app.querystring.operation.date.today", - "plone.app.querystring.operation.date.beforeToday", - "plone.app.querystring.operation.date.afterToday", - "plone.app.querystring.operation.date.beforeRelativeDate", - "plone.app.querystring.operation.date.afterRelativeDate" - ], - "operators": { - "plone.app.querystring.operation.date.afterRelativeDate": { - "description": "After N days in the future", - "operation": "plone.app.querystring.queryparser._afterRelativeDate", - "title": "After relative Date", - "widget": "RelativeDateWidget" - }, - "plone.app.querystring.operation.date.afterToday": { - "description": "After the current day", - "operation": "plone.app.querystring.queryparser._afterToday", - "title": "After today", - "widget": null - }, - "plone.app.querystring.operation.date.beforeRelativeDate": { - "description": "Before N days in the past", - "operation": "plone.app.querystring.queryparser._beforeRelativeDate", - "title": "Before relative Date", - "widget": "RelativeDateWidget" - }, - "plone.app.querystring.operation.date.beforeToday": { - "description": "Before the current day", - "operation": "plone.app.querystring.queryparser._beforeToday", - "title": "Before today", - "widget": null - }, - "plone.app.querystring.operation.date.between": { - "description": "Please use YYYY/MM/DD.", - "operation": "plone.app.querystring.queryparser._between", - "title": "Between dates", - "widget": "DateRangeWidget" - }, - "plone.app.querystring.operation.date.largerThan": { - "description": "Please use YYYY/MM/DD.", - "operation": "plone.app.querystring.queryparser._largerThan", - "title": "After date", - "widget": "DateWidget" - }, - "plone.app.querystring.operation.date.largerThanRelativeDate": { - "description": "Please enter the number in days.", - "operation": "plone.app.querystring.queryparser._moreThanRelativeDate", - "title": "Within last", - "widget": "RelativeDateWidget" - }, - "plone.app.querystring.operation.date.lessThan": { - "description": "Please use YYYY/MM/DD.", - "operation": "plone.app.querystring.queryparser._lessThan", - "title": "Before date", - "widget": "DateWidget" - }, - "plone.app.querystring.operation.date.lessThanRelativeDate": { - "description": "Please enter the number in days.", - "operation": "plone.app.querystring.queryparser._lessThanRelativeDate", - "title": "Within next", - "widget": "RelativeDateWidget" - }, - "plone.app.querystring.operation.date.today": { - "description": "The current day", - "operation": "plone.app.querystring.queryparser._today", - "title": "Today", - "widget": null - } - }, - "sortable": true, - "title": "Event end date", - "values": {}, - "vocabulary": null - }, - "expires": { - "description": "The time and date an item was expired", - "enabled": true, - "group": "Dates", - "operations": [ - "plone.app.querystring.operation.date.lessThan", - "plone.app.querystring.operation.date.largerThan", - "plone.app.querystring.operation.date.between", - "plone.app.querystring.operation.date.lessThanRelativeDate", - "plone.app.querystring.operation.date.largerThanRelativeDate", - "plone.app.querystring.operation.date.today", - "plone.app.querystring.operation.date.beforeToday", - "plone.app.querystring.operation.date.afterToday", - "plone.app.querystring.operation.date.beforeRelativeDate", - "plone.app.querystring.operation.date.afterRelativeDate" - ], - "operators": { - "plone.app.querystring.operation.date.afterRelativeDate": { - "description": "After N days in the future", - "operation": "plone.app.querystring.queryparser._afterRelativeDate", - "title": "After relative Date", - "widget": "RelativeDateWidget" - }, - "plone.app.querystring.operation.date.afterToday": { - "description": "After the current day", - "operation": "plone.app.querystring.queryparser._afterToday", - "title": "After today", - "widget": null - }, - "plone.app.querystring.operation.date.beforeRelativeDate": { - "description": "Before N days in the past", - "operation": "plone.app.querystring.queryparser._beforeRelativeDate", - "title": "Before relative Date", - "widget": "RelativeDateWidget" - }, - "plone.app.querystring.operation.date.beforeToday": { - "description": "Before the current day", - "operation": "plone.app.querystring.queryparser._beforeToday", - "title": "Before today", - "widget": null - }, - "plone.app.querystring.operation.date.between": { - "description": "Please use YYYY/MM/DD.", - "operation": "plone.app.querystring.queryparser._between", - "title": "Between dates", - "widget": "DateRangeWidget" - }, - "plone.app.querystring.operation.date.largerThan": { - "description": "Please use YYYY/MM/DD.", - "operation": "plone.app.querystring.queryparser._largerThan", - "title": "After date", - "widget": "DateWidget" - }, - "plone.app.querystring.operation.date.largerThanRelativeDate": { - "description": "Please enter the number in days.", - "operation": "plone.app.querystring.queryparser._moreThanRelativeDate", - "title": "Within last", - "widget": "RelativeDateWidget" - }, - "plone.app.querystring.operation.date.lessThan": { - "description": "Please use YYYY/MM/DD.", - "operation": "plone.app.querystring.queryparser._lessThan", - "title": "Before date", - "widget": "DateWidget" - }, - "plone.app.querystring.operation.date.lessThanRelativeDate": { - "description": "Please enter the number in days.", - "operation": "plone.app.querystring.queryparser._lessThanRelativeDate", - "title": "Within next", - "widget": "RelativeDateWidget" - }, - "plone.app.querystring.operation.date.today": { - "description": "The current day", - "operation": "plone.app.querystring.queryparser._today", - "title": "Today", - "widget": null - } - }, - "sortable": true, - "title": "Expiration date", - "values": {}, - "vocabulary": null - }, - "getId": { - "description": "The short name of an item (used in the url)", - "enabled": true, - "group": "Metadata", - "operations": [ - "plone.app.querystring.operation.string.is" - ], - "operators": { - "plone.app.querystring.operation.string.is": { - "description": "Tip: you can use * to autocomplete.", - "operation": "plone.app.querystring.queryparser._equal", - "title": "Is", - "widget": "StringWidget" - } - }, - "sortable": true, - "title": "Short name (id)", - "values": {}, - "vocabulary": null - }, - "getObjPositionInParent": { - "description": "The order of an item in its parent folder", - "enabled": false, - "group": "Metadata", - "operations": [ - "plone.app.querystring.operation.int.is", - "plone.app.querystring.operation.int.lessThan", - "plone.app.querystring.operation.int.largerThan" - ], - "operators": { - "plone.app.querystring.operation.int.is": { - "description": null, - "operation": "plone.app.querystring.queryparser._intEqual", - "title": "Equals", - "widget": "StringWidget" - }, - "plone.app.querystring.operation.int.largerThan": { - "description": null, - "operation": "plone.app.querystring.queryparser._intLargerThan", - "title": "Larger than", - "widget": "StringWidget" - }, - "plone.app.querystring.operation.int.lessThan": { - "description": null, - "operation": "plone.app.querystring.queryparser._intLessThan", - "title": "Less than", - "widget": "StringWidget" - } - }, - "sortable": true, - "title": "Order in folder", - "values": {}, - "vocabulary": null - }, - "modified": { - "description": "The time and date an item was last modified", - "enabled": true, - "group": "Dates", - "operations": [ - "plone.app.querystring.operation.date.lessThan", - "plone.app.querystring.operation.date.largerThan", - "plone.app.querystring.operation.date.between", - "plone.app.querystring.operation.date.lessThanRelativeDate", - "plone.app.querystring.operation.date.largerThanRelativeDate", - "plone.app.querystring.operation.date.today", - "plone.app.querystring.operation.date.beforeToday", - "plone.app.querystring.operation.date.afterToday", - "plone.app.querystring.operation.date.beforeRelativeDate", - "plone.app.querystring.operation.date.afterRelativeDate" - ], - "operators": { - "plone.app.querystring.operation.date.afterRelativeDate": { - "description": "After N days in the future", - "operation": "plone.app.querystring.queryparser._afterRelativeDate", - "title": "After relative Date", - "widget": "RelativeDateWidget" - }, - "plone.app.querystring.operation.date.afterToday": { - "description": "After the current day", - "operation": "plone.app.querystring.queryparser._afterToday", - "title": "After today", - "widget": null - }, - "plone.app.querystring.operation.date.beforeRelativeDate": { - "description": "Before N days in the past", - "operation": "plone.app.querystring.queryparser._beforeRelativeDate", - "title": "Before relative Date", - "widget": "RelativeDateWidget" - }, - "plone.app.querystring.operation.date.beforeToday": { - "description": "Before the current day", - "operation": "plone.app.querystring.queryparser._beforeToday", - "title": "Before today", - "widget": null - }, - "plone.app.querystring.operation.date.between": { - "description": "Please use YYYY/MM/DD.", - "operation": "plone.app.querystring.queryparser._between", - "title": "Between dates", - "widget": "DateRangeWidget" - }, - "plone.app.querystring.operation.date.largerThan": { - "description": "Please use YYYY/MM/DD.", - "operation": "plone.app.querystring.queryparser._largerThan", - "title": "After date", - "widget": "DateWidget" - }, - "plone.app.querystring.operation.date.largerThanRelativeDate": { - "description": "Please enter the number in days.", - "operation": "plone.app.querystring.queryparser._moreThanRelativeDate", - "title": "Within last", - "widget": "RelativeDateWidget" - }, - "plone.app.querystring.operation.date.lessThan": { - "description": "Please use YYYY/MM/DD.", - "operation": "plone.app.querystring.queryparser._lessThan", - "title": "Before date", - "widget": "DateWidget" - }, - "plone.app.querystring.operation.date.lessThanRelativeDate": { - "description": "Please enter the number in days.", - "operation": "plone.app.querystring.queryparser._lessThanRelativeDate", - "title": "Within next", - "widget": "RelativeDateWidget" - }, - "plone.app.querystring.operation.date.today": { - "description": "The current day", - "operation": "plone.app.querystring.queryparser._today", - "title": "Today", - "widget": null - } - }, - "sortable": true, - "title": "Modification date", - "values": {}, - "vocabulary": null - }, - "review_state": { - "description": "An item's workflow state (e.g.published)", - "enabled": true, - "group": "Metadata", - "operations": [ - "plone.app.querystring.operation.selection.any" - ], - "operators": { - "plone.app.querystring.operation.selection.any": { - "description": "Tip: you can use * to autocomplete.", - "operation": "plone.app.querystring.queryparser._contains", - "title": "Matches any of", - "widget": "MultipleSelectionWidget" - } - }, - "sortable": true, - "title": "Review state", - "values": { - "external": { - "title": "Externally visible [external]" - }, - "internal": { - "title": "Internal draft [internal]" - }, - "internally_published": { - "title": "Internally published [internally_published]" - }, - "pending": { - "title": "Pending [pending]" - }, - "private": { - "title": "Private [private]" - }, - "published": { - "title": "Published with accent \u00e9 [published]" - }, - "rejected": { - "title": "Rejected [rejected]" - }, - "spam": { - "title": "Spam [spam]" - }, - "visible": { - "title": "Public draft [visible]" - } - }, - "vocabulary": "plone.app.vocabularies.WorkflowStates" - }, - "sortable_title": { - "description": "The item's title, transformed for sorting", - "enabled": false, - "group": "Text", - "operations": [ - "plone.app.querystring.operation.string.contains", - "plone.app.querystring.operation.string.is" - ], - "operators": { - "plone.app.querystring.operation.string.contains": { - "description": null, - "operation": "plone.app.querystring.queryparser._contains", - "title": "Contains", - "widget": "StringWidget" - }, - "plone.app.querystring.operation.string.is": { - "description": "Tip: you can use * to autocomplete.", - "operation": "plone.app.querystring.queryparser._equal", - "title": "Is", - "widget": "StringWidget" - } - }, - "sortable": true, - "title": "Sortable Title", - "values": {}, - "vocabulary": null - }, - "start": { - "description": "The start date and time of an event", - "enabled": true, - "group": "Dates", - "operations": [ - "plone.app.querystring.operation.date.lessThan", - "plone.app.querystring.operation.date.largerThan", - "plone.app.querystring.operation.date.between", - "plone.app.querystring.operation.date.lessThanRelativeDate", - "plone.app.querystring.operation.date.largerThanRelativeDate", - "plone.app.querystring.operation.date.today", - "plone.app.querystring.operation.date.beforeToday", - "plone.app.querystring.operation.date.afterToday", - "plone.app.querystring.operation.date.beforeRelativeDate", - "plone.app.querystring.operation.date.afterRelativeDate" - ], - "operators": { - "plone.app.querystring.operation.date.afterRelativeDate": { - "description": "After N days in the future", - "operation": "plone.app.querystring.queryparser._afterRelativeDate", - "title": "After relative Date", - "widget": "RelativeDateWidget" - }, - "plone.app.querystring.operation.date.afterToday": { - "description": "After the current day", - "operation": "plone.app.querystring.queryparser._afterToday", - "title": "After today", - "widget": null - }, - "plone.app.querystring.operation.date.beforeRelativeDate": { - "description": "Before N days in the past", - "operation": "plone.app.querystring.queryparser._beforeRelativeDate", - "title": "Before relative Date", - "widget": "RelativeDateWidget" - }, - "plone.app.querystring.operation.date.beforeToday": { - "description": "Before the current day", - "operation": "plone.app.querystring.queryparser._beforeToday", - "title": "Before today", - "widget": null - }, - "plone.app.querystring.operation.date.between": { - "description": "Please use YYYY/MM/DD.", - "operation": "plone.app.querystring.queryparser._between", - "title": "Between dates", - "widget": "DateRangeWidget" - }, - "plone.app.querystring.operation.date.largerThan": { - "description": "Please use YYYY/MM/DD.", - "operation": "plone.app.querystring.queryparser._largerThan", - "title": "After date", - "widget": "DateWidget" - }, - "plone.app.querystring.operation.date.largerThanRelativeDate": { - "description": "Please enter the number in days.", - "operation": "plone.app.querystring.queryparser._moreThanRelativeDate", - "title": "Within last", - "widget": "RelativeDateWidget" - }, - "plone.app.querystring.operation.date.lessThan": { - "description": "Please use YYYY/MM/DD.", - "operation": "plone.app.querystring.queryparser._lessThan", - "title": "Before date", - "widget": "DateWidget" - }, - "plone.app.querystring.operation.date.lessThanRelativeDate": { - "description": "Please enter the number in days.", - "operation": "plone.app.querystring.queryparser._lessThanRelativeDate", - "title": "Within next", - "widget": "RelativeDateWidget" - }, - "plone.app.querystring.operation.date.today": { - "description": "The current day", - "operation": "plone.app.querystring.queryparser._today", - "title": "Today", - "widget": null - } - }, - "sortable": true, - "title": "Event start date", - "values": {}, - "vocabulary": null } - } -} \ No newline at end of file +} diff --git a/src/plone/restapi/tests/http-examples/querystringsearch_post.req b/src/plone/restapi/tests/http-examples/querystringsearch_post.req index 04457d7e25..a326c1a694 100644 --- a/src/plone/restapi/tests/http-examples/querystringsearch_post.req +++ b/src/plone/restapi/tests/http-examples/querystringsearch_post.req @@ -13,4 +13,4 @@ Content-Type: application/json ] } ] -} \ No newline at end of file +} diff --git a/src/plone/restapi/tests/http-examples/querystringsearch_post.resp b/src/plone/restapi/tests/http-examples/querystringsearch_post.resp index 723a9ef322..082bc772ae 100644 --- a/src/plone/restapi/tests/http-examples/querystringsearch_post.resp +++ b/src/plone/restapi/tests/http-examples/querystringsearch_post.resp @@ -2,22 +2,22 @@ HTTP/1.1 200 OK Content-Type: application/json { - "@id": "http://localhost:55001/plone/@querystring-search", - "items": [ - { - "@id": "http://localhost:55001/plone/front-page", - "@type": "Document", - "description": "Congratulations! You have successfully installed Plone.", - "review_state": "private", - "title": "Welcome to Plone" - }, - { - "@id": "http://localhost:55001/plone/testdocument", - "@type": "Document", - "description": "", - "review_state": "private", - "title": "Test Document" - } - ], - "items_total": 2 -} \ No newline at end of file + "@id": "http://localhost:55001/plone/@querystring-search", + "items": [ + { + "@id": "http://localhost:55001/plone/front-page", + "@type": "Document", + "description": "Congratulations! You have successfully installed Plone.", + "review_state": "private", + "title": "Welcome to Plone" + }, + { + "@id": "http://localhost:55001/plone/testdocument", + "@type": "Document", + "description": "", + "review_state": "private", + "title": "Test Document" + } + ], + "items_total": 2 +} diff --git a/src/plone/restapi/tests/http-examples/refresh_lock.resp b/src/plone/restapi/tests/http-examples/refresh_lock.resp index 3b957055ab..5cbb1a9d2a 100644 --- a/src/plone/restapi/tests/http-examples/refresh_lock.resp +++ b/src/plone/restapi/tests/http-examples/refresh_lock.resp @@ -2,14 +2,14 @@ HTTP/1.1 200 OK Content-Type: application/json { - "created": "1995-07-31T17:30:00", - "creator": "admin", - "creator_name": "admin", - "creator_url": "http://localhost:55001/plone/author/admin", - "locked": true, - "name": "plone.locking.stealable", - "stealable": true, - "time": 807211800.0, - "timeout": 600, - "token": "0.684672730996-0.25195226375-00105A989226:1477076400.000" -} \ No newline at end of file + "created": "1995-07-31T17:30:00", + "creator": "admin", + "creator_name": "admin", + "creator_url": "http://localhost:55001/plone/author/admin", + "locked": true, + "name": "plone.locking.stealable", + "stealable": true, + "time": 807211800.0, + "timeout": 600, + "token": "0.684672730996-0.25195226375-00105A989226:1477076400.000" +} diff --git a/src/plone/restapi/tests/http-examples/registry_get.resp b/src/plone/restapi/tests/http-examples/registry_get.resp index a7b193080c..f9761f77d9 100644 --- a/src/plone/restapi/tests/http-examples/registry_get.resp +++ b/src/plone/restapi/tests/http-examples/registry_get.resp @@ -1,4 +1,4 @@ HTTP/1.1 200 OK Content-Type: application/json -"Location" \ No newline at end of file +"Location" diff --git a/src/plone/restapi/tests/http-examples/registry_get_list.resp b/src/plone/restapi/tests/http-examples/registry_get_list.resp index 9f0ca1c8b7..017334171d 100644 --- a/src/plone/restapi/tests/http-examples/registry_get_list.resp +++ b/src/plone/restapi/tests/http-examples/registry_get_list.resp @@ -2,437 +2,437 @@ HTTP/1.1 200 OK Content-Type: application/json { - "@id": "http://localhost:55001/plone/@registry", - "batching": { - "@id": "http://localhost:55001/plone/@registry", - "first": "http://localhost:55001/plone/@registry?b_start=0", - "last": "http://localhost:55001/plone/@registry?b_start=1800", - "next": "http://localhost:55001/plone/@registry?b_start=25" - }, - "items": [ - { - "name": "Products.CMFPlone.i18nl10n.override_dateformat.Enabled", - "schema": { - "properties": { - "description": "Override the translation machinery", - "factory": "Yes/No", - "title": "Enabled", - "type": "boolean" + "@id": "http://localhost:55001/plone/@registry", + "batching": { + "@id": "http://localhost:55001/plone/@registry", + "first": "http://localhost:55001/plone/@registry?b_start=0", + "last": "http://localhost:55001/plone/@registry?b_start=1800", + "next": "http://localhost:55001/plone/@registry?b_start=25" + }, + "items": [ + { + "name": "Products.CMFPlone.i18nl10n.override_dateformat.Enabled", + "schema": { + "properties": { + "description": "Override the translation machinery", + "factory": "Yes/No", + "title": "Enabled", + "type": "boolean" + } + }, + "value": false + }, + { + "name": "Products.CMFPlone.i18nl10n.override_dateformat.date_format_long", + "schema": { + "properties": { + "description": "Default value: %Y-%m-%d %H:%M (2038-01-19 03:14)", + "factory": "Text line (String)", + "title": "old ZMI property: localLongTimeFormat", + "type": "string" + } + }, + "value": "%Y-%m-%d %H:%M" + }, + { + "name": "Products.CMFPlone.i18nl10n.override_dateformat.date_format_short", + "schema": { + "properties": { + "description": "Default value: %Y-%m-%d (2038-01-19)", + "factory": "Text line (String)", + "title": "old ZMI property: localTimeFormat", + "type": "string" + } + }, + "value": "%Y-%m-%d" + }, + { + "name": "Products.CMFPlone.i18nl10n.override_dateformat.time_format", + "schema": { + "properties": { + "description": "Default value: %H:%M (03:14)", + "factory": "Text line (String)", + "title": "old ZMI property: localTimeOnlyFormat", + "type": "string" + } + }, + "value": "%H:%M" + }, + { + "name": "Products.CMFPlone.interfaces.syndication.ISiteSyndicationSettings.allowed", + "schema": { + "properties": { + "default": true, + "description": "Allow syndication for collections and folders on site.", + "factory": "Yes/No", + "title": "Allowed", + "type": "boolean" + } + }, + "value": true + }, + { + "name": "Products.CMFPlone.interfaces.syndication.ISiteSyndicationSettings.allowed_feed_types", + "schema": { + "properties": { + "additionalItems": true, + "default": [ + "RSS|RSS 1.0", + "rss.xml|RSS 2.0", + "atom.xml|Atom", + "itunes.xml|iTunes" + ], + "description": "Separate view name and title by '|'", + "factory": "Tuple", + "items": { + "description": "", + "factory": "Text line (String)", + "title": "", + "type": "string" + }, + "title": "Allowed Feed Types", + "type": "array", + "uniqueItems": true + } + }, + "value": [ + "RSS|RSS 1.0", + "rss.xml|RSS 2.0", + "atom.xml|Atom", + "itunes.xml|iTunes" + ] + }, + { + "name": "Products.CMFPlone.interfaces.syndication.ISiteSyndicationSettings.default_enabled", + "schema": { + "properties": { + "default": false, + "description": "If syndication should be enabled by default for all folders and collections.", + "factory": "Yes/No", + "title": "Enabled by default", + "type": "boolean" + } + }, + "value": false + }, + { + "name": "Products.CMFPlone.interfaces.syndication.ISiteSyndicationSettings.max_items", + "schema": { + "properties": { + "default": 15, + "description": "Maximum number of items that will be syndicated.", + "factory": "Integer", + "minimum": 1, + "title": "Maximum items", + "type": "integer" + } + }, + "value": 15 + }, + { + "name": "Products.CMFPlone.interfaces.syndication.ISiteSyndicationSettings.render_body", + "schema": { + "properties": { + "default": false, + "description": "If body text available for item, render it, otherwise use description.", + "factory": "Yes/No", + "title": "Render Body", + "type": "boolean" + } + }, + "value": false + }, + { + "name": "Products.CMFPlone.interfaces.syndication.ISiteSyndicationSettings.search_rss_enabled", + "schema": { + "properties": { + "default": true, + "description": "Allows users to subscribe to feeds of search results", + "factory": "Yes/No", + "title": "Search RSS enabled", + "type": "boolean" + } + }, + "value": true + }, + { + "name": "Products.CMFPlone.interfaces.syndication.ISiteSyndicationSettings.show_author_info", + "schema": { + "properties": { + "default": true, + "description": "Should feeds include author information", + "factory": "Yes/No", + "title": "Show author info", + "type": "boolean" + } + }, + "value": true + }, + { + "name": "Products.CMFPlone.interfaces.syndication.ISiteSyndicationSettings.show_syndication_button", + "schema": { + "properties": { + "description": "Makes it possible to customize syndication settings for particular folders and collections ", + "factory": "Yes/No", + "title": "Show settings button", + "type": "boolean" + } + }, + "value": null + }, + { + "name": "Products.CMFPlone.interfaces.syndication.ISiteSyndicationSettings.show_syndication_link", + "schema": { + "properties": { + "description": "Enable RSS link document action on the syndication content item.", + "factory": "Yes/No", + "title": "Show feed link", + "type": "boolean" + } + }, + "value": null + }, + { + "name": "Products.CMFPlone.interfaces.syndication.ISiteSyndicationSettings.site_rss_items", + "schema": { + "properties": { + "additionalItems": true, + "default": [ + "/news/aggregator" + ], + "description": "Paths to folders and collections to link to at the portal root.", + "factory": "Tuple", + "items": { + "description": "", + "factory": "Choice", + "title": "", + "type": "string", + "vocabulary": { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.SyndicatableFeedItems" + } + }, + "title": "Site RSS", + "type": "array", + "uniqueItems": true + } + }, + "value": [ + "/news/aggregator" + ] + }, + { + "name": "plone.alignment_styles", + "schema": { + "properties": { + "additionalItems": true, + "default": [ + "Left|alignleft|alignleft", + "Center|aligncenter|aligncenter", + "Right|alignright|alignright", + "Justify|alignjustify|alignjustify" + ], + "description": "Name|format|icon", + "factory": "List", + "items": { + "description": "", + "factory": "Text line (String)", + "title": "", + "type": "string" + }, + "title": "Alignment styles", + "type": "array", + "uniqueItems": false + } + }, + "value": [ + "Left|alignleft|alignleft", + "Center|aligncenter|aligncenter", + "Right|alignright|alignright", + "Justify|alignjustify|alignjustify" + ] + }, + { + "name": "plone.allow_anon_views_about", + "schema": { + "properties": { + "default": false, + "description": "If not selected only logged-in users will be able to view information about who created an item and when it was modified.", + "factory": "Yes/No", + "title": "Allow anyone to view 'about' information", + "type": "boolean" + } + }, + "value": false + }, + { + "name": "plone.allow_external_login_sites", + "schema": { + "properties": { + "additionalItems": true, + "default": [], + "description": "", + "factory": "Tuple", + "items": { + "description": "", + "factory": "Text line (String)", + "title": "", + "type": "string" + }, + "title": "Allow external login sites", + "type": "array", + "uniqueItems": true + } + }, + "value": [] + }, + { + "name": "plone.allowed_sizes", + "schema": { + "properties": { + "additionalItems": true, + "default": [ + "large 768:768", + "preview 400:400", + "mini 200:200", + "thumb 128:128", + "tile 64:64", + "icon 32:32", + "listing 16:16" + ], + "description": "Specify all allowed maximum image dimensions, one per line. The required format is <name> <width>:<height>.", + "factory": "List", + "items": { + "description": "", + "factory": "Text line (String)", + "title": "", + "type": "string" + }, + "title": "Allowed image sizes", + "type": "array", + "uniqueItems": false + } + }, + "value": [ + "large 768:768", + "preview 400:400", + "mini 200:200", + "thumb 128:128", + "tile 64:64", + "icon 32:32", + "listing 16:16" + ] + }, + { + "name": "plone.allowed_types", + "schema": { + "properties": { + "additionalItems": true, + "default": [ + "text/html", + "text/x-web-textile" + ], + "description": "Select which formats are available for users as alternative to the default format. Note that if new formats are installed, they will be enabled for text fields by default unless explicitly turned off here or by the relevant installer.", + "factory": "Tuple", + "items": { + "description": "", + "factory": "Choice", + "title": "", + "type": "string", + "vocabulary": { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.AllowableContentTypes" + } + }, + "title": "Alternative formats", + "type": "array", + "uniqueItems": true + } + }, + "value": [ + "text/html", + "text/x-web-textile" + ] + }, + { + "name": "plone.always_show_selector", + "schema": { + "properties": { + "default": false, + "description": "", + "factory": "Yes/No", + "title": "Always show language selector", + "type": "boolean" + } + }, + "value": false + }, + { + "name": "plone.app.discussion.interfaces.IDiscussionSettings.anonymous_comments", + "schema": { + "properties": { + "default": false, + "description": "If selected, anonymous users are able to post comments without logging in. It is highly recommended to use a captcha solution to prevent spam if this setting is enabled.", + "factory": "Yes/No", + "title": "Enable anonymous comments", + "type": "boolean" + } + }, + "value": false + }, + { + "name": "plone.app.discussion.interfaces.IDiscussionSettings.anonymous_email_enabled", + "schema": { + "properties": { + "default": false, + "description": "If selected, anonymous user will have to give their email.", + "factory": "Yes/No", + "title": "Enable anonymous email field", + "type": "boolean" + } + }, + "value": false + }, + { + "name": "plone.app.discussion.interfaces.IDiscussionSettings.captcha", + "schema": { + "properties": { + "default": "disabled", + "description": "Use this setting to enable or disable Captcha validation for comments. Install plone.formwidget.captcha, plone.formwidget.recaptcha, collective.akismet, or collective.z3cform.norobots if there are no options available.", + "factory": "Choice", + "title": "Captcha", + "type": "string", + "vocabulary": { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.discussion.vocabularies.CaptchaVocabulary" + } + } + }, + "value": "disabled" + }, + { + "name": "plone.app.discussion.interfaces.IDiscussionSettings.delete_own_comment_enabled", + "schema": { + "properties": { + "default": false, + "description": "If selected, supports deleting of own comments for users with the \"Delete own comments\" permission.", + "factory": "Yes/No", + "title": "Enable deleting own comments", + "type": "boolean" + } + }, + "value": false + }, + { + "name": "plone.app.discussion.interfaces.IDiscussionSettings.edit_comment_enabled", + "schema": { + "properties": { + "default": false, + "description": "If selected, supports editing of comments for users with the \"Edit comments\" permission.", + "factory": "Yes/No", + "title": "Enable editing of comments", + "type": "boolean" + } + }, + "value": false } - }, - "value": false - }, - { - "name": "Products.CMFPlone.i18nl10n.override_dateformat.date_format_long", - "schema": { - "properties": { - "description": "Default value: %Y-%m-%d %H:%M (2038-01-19 03:14)", - "factory": "Text line (String)", - "title": "old ZMI property: localLongTimeFormat", - "type": "string" - } - }, - "value": "%Y-%m-%d %H:%M" - }, - { - "name": "Products.CMFPlone.i18nl10n.override_dateformat.date_format_short", - "schema": { - "properties": { - "description": "Default value: %Y-%m-%d (2038-01-19)", - "factory": "Text line (String)", - "title": "old ZMI property: localTimeFormat", - "type": "string" - } - }, - "value": "%Y-%m-%d" - }, - { - "name": "Products.CMFPlone.i18nl10n.override_dateformat.time_format", - "schema": { - "properties": { - "description": "Default value: %H:%M (03:14)", - "factory": "Text line (String)", - "title": "old ZMI property: localTimeOnlyFormat", - "type": "string" - } - }, - "value": "%H:%M" - }, - { - "name": "Products.CMFPlone.interfaces.syndication.ISiteSyndicationSettings.allowed", - "schema": { - "properties": { - "default": true, - "description": "Allow syndication for collections and folders on site.", - "factory": "Yes/No", - "title": "Allowed", - "type": "boolean" - } - }, - "value": true - }, - { - "name": "Products.CMFPlone.interfaces.syndication.ISiteSyndicationSettings.allowed_feed_types", - "schema": { - "properties": { - "additionalItems": true, - "default": [ - "RSS|RSS 1.0", - "rss.xml|RSS 2.0", - "atom.xml|Atom", - "itunes.xml|iTunes" - ], - "description": "Separate view name and title by '|'", - "factory": "Tuple", - "items": { - "description": "", - "factory": "Text line (String)", - "title": "", - "type": "string" - }, - "title": "Allowed Feed Types", - "type": "array", - "uniqueItems": true - } - }, - "value": [ - "RSS|RSS 1.0", - "rss.xml|RSS 2.0", - "atom.xml|Atom", - "itunes.xml|iTunes" - ] - }, - { - "name": "Products.CMFPlone.interfaces.syndication.ISiteSyndicationSettings.default_enabled", - "schema": { - "properties": { - "default": false, - "description": "If syndication should be enabled by default for all folders and collections.", - "factory": "Yes/No", - "title": "Enabled by default", - "type": "boolean" - } - }, - "value": false - }, - { - "name": "Products.CMFPlone.interfaces.syndication.ISiteSyndicationSettings.max_items", - "schema": { - "properties": { - "default": 15, - "description": "Maximum number of items that will be syndicated.", - "factory": "Integer", - "minimum": 1, - "title": "Maximum items", - "type": "integer" - } - }, - "value": 15 - }, - { - "name": "Products.CMFPlone.interfaces.syndication.ISiteSyndicationSettings.render_body", - "schema": { - "properties": { - "default": false, - "description": "If body text available for item, render it, otherwise use description.", - "factory": "Yes/No", - "title": "Render Body", - "type": "boolean" - } - }, - "value": false - }, - { - "name": "Products.CMFPlone.interfaces.syndication.ISiteSyndicationSettings.search_rss_enabled", - "schema": { - "properties": { - "default": true, - "description": "Allows users to subscribe to feeds of search results", - "factory": "Yes/No", - "title": "Search RSS enabled", - "type": "boolean" - } - }, - "value": true - }, - { - "name": "Products.CMFPlone.interfaces.syndication.ISiteSyndicationSettings.show_author_info", - "schema": { - "properties": { - "default": true, - "description": "Should feeds include author information", - "factory": "Yes/No", - "title": "Show author info", - "type": "boolean" - } - }, - "value": true - }, - { - "name": "Products.CMFPlone.interfaces.syndication.ISiteSyndicationSettings.show_syndication_button", - "schema": { - "properties": { - "description": "Makes it possible to customize syndication settings for particular folders and collections ", - "factory": "Yes/No", - "title": "Show settings button", - "type": "boolean" - } - }, - "value": null - }, - { - "name": "Products.CMFPlone.interfaces.syndication.ISiteSyndicationSettings.show_syndication_link", - "schema": { - "properties": { - "description": "Enable RSS link document action on the syndication content item.", - "factory": "Yes/No", - "title": "Show feed link", - "type": "boolean" - } - }, - "value": null - }, - { - "name": "Products.CMFPlone.interfaces.syndication.ISiteSyndicationSettings.site_rss_items", - "schema": { - "properties": { - "additionalItems": true, - "default": [ - "/news/aggregator" - ], - "description": "Paths to folders and collections to link to at the portal root.", - "factory": "Tuple", - "items": { - "description": "", - "factory": "Choice", - "title": "", - "type": "string", - "vocabulary": { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.SyndicatableFeedItems" - } - }, - "title": "Site RSS", - "type": "array", - "uniqueItems": true - } - }, - "value": [ - "/news/aggregator" - ] - }, - { - "name": "plone.alignment_styles", - "schema": { - "properties": { - "additionalItems": true, - "default": [ - "Left|alignleft|alignleft", - "Center|aligncenter|aligncenter", - "Right|alignright|alignright", - "Justify|alignjustify|alignjustify" - ], - "description": "Name|format|icon", - "factory": "List", - "items": { - "description": "", - "factory": "Text line (String)", - "title": "", - "type": "string" - }, - "title": "Alignment styles", - "type": "array", - "uniqueItems": false - } - }, - "value": [ - "Left|alignleft|alignleft", - "Center|aligncenter|aligncenter", - "Right|alignright|alignright", - "Justify|alignjustify|alignjustify" - ] - }, - { - "name": "plone.allow_anon_views_about", - "schema": { - "properties": { - "default": false, - "description": "If not selected only logged-in users will be able to view information about who created an item and when it was modified.", - "factory": "Yes/No", - "title": "Allow anyone to view 'about' information", - "type": "boolean" - } - }, - "value": false - }, - { - "name": "plone.allow_external_login_sites", - "schema": { - "properties": { - "additionalItems": true, - "default": [], - "description": "", - "factory": "Tuple", - "items": { - "description": "", - "factory": "Text line (String)", - "title": "", - "type": "string" - }, - "title": "Allow external login sites", - "type": "array", - "uniqueItems": true - } - }, - "value": [] - }, - { - "name": "plone.allowed_sizes", - "schema": { - "properties": { - "additionalItems": true, - "default": [ - "large 768:768", - "preview 400:400", - "mini 200:200", - "thumb 128:128", - "tile 64:64", - "icon 32:32", - "listing 16:16" - ], - "description": "Specify all allowed maximum image dimensions, one per line. The required format is <name> <width>:<height>.", - "factory": "List", - "items": { - "description": "", - "factory": "Text line (String)", - "title": "", - "type": "string" - }, - "title": "Allowed image sizes", - "type": "array", - "uniqueItems": false - } - }, - "value": [ - "large 768:768", - "preview 400:400", - "mini 200:200", - "thumb 128:128", - "tile 64:64", - "icon 32:32", - "listing 16:16" - ] - }, - { - "name": "plone.allowed_types", - "schema": { - "properties": { - "additionalItems": true, - "default": [ - "text/html", - "text/x-web-textile" - ], - "description": "Select which formats are available for users as alternative to the default format. Note that if new formats are installed, they will be enabled for text fields by default unless explicitly turned off here or by the relevant installer.", - "factory": "Tuple", - "items": { - "description": "", - "factory": "Choice", - "title": "", - "type": "string", - "vocabulary": { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.AllowableContentTypes" - } - }, - "title": "Alternative formats", - "type": "array", - "uniqueItems": true - } - }, - "value": [ - "text/html", - "text/x-web-textile" - ] - }, - { - "name": "plone.always_show_selector", - "schema": { - "properties": { - "default": false, - "description": "", - "factory": "Yes/No", - "title": "Always show language selector", - "type": "boolean" - } - }, - "value": false - }, - { - "name": "plone.app.discussion.interfaces.IDiscussionSettings.anonymous_comments", - "schema": { - "properties": { - "default": false, - "description": "If selected, anonymous users are able to post comments without logging in. It is highly recommended to use a captcha solution to prevent spam if this setting is enabled.", - "factory": "Yes/No", - "title": "Enable anonymous comments", - "type": "boolean" - } - }, - "value": false - }, - { - "name": "plone.app.discussion.interfaces.IDiscussionSettings.anonymous_email_enabled", - "schema": { - "properties": { - "default": false, - "description": "If selected, anonymous user will have to give their email.", - "factory": "Yes/No", - "title": "Enable anonymous email field", - "type": "boolean" - } - }, - "value": false - }, - { - "name": "plone.app.discussion.interfaces.IDiscussionSettings.captcha", - "schema": { - "properties": { - "default": "disabled", - "description": "Use this setting to enable or disable Captcha validation for comments. Install plone.formwidget.captcha, plone.formwidget.recaptcha, collective.akismet, or collective.z3cform.norobots if there are no options available.", - "factory": "Choice", - "title": "Captcha", - "type": "string", - "vocabulary": { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.discussion.vocabularies.CaptchaVocabulary" - } - } - }, - "value": "disabled" - }, - { - "name": "plone.app.discussion.interfaces.IDiscussionSettings.delete_own_comment_enabled", - "schema": { - "properties": { - "default": false, - "description": "If selected, supports deleting of own comments for users with the \"Delete own comments\" permission.", - "factory": "Yes/No", - "title": "Enable deleting own comments", - "type": "boolean" - } - }, - "value": false - }, - { - "name": "plone.app.discussion.interfaces.IDiscussionSettings.edit_comment_enabled", - "schema": { - "properties": { - "default": false, - "description": "If selected, supports editing of comments for users with the \"Edit comments\" permission.", - "factory": "Yes/No", - "title": "Enable editing of comments", - "type": "boolean" - } - }, - "value": false - } - ], - "items_total": 1823 -} \ No newline at end of file + ], + "items_total": 1823 +} diff --git a/src/plone/restapi/tests/http-examples/registry_update.req b/src/plone/restapi/tests/http-examples/registry_update.req index 9dbc14f4fa..dc50ac76b6 100644 --- a/src/plone/restapi/tests/http-examples/registry_update.req +++ b/src/plone/restapi/tests/http-examples/registry_update.req @@ -5,4 +5,4 @@ Content-Type: application/json { "plone.app.querystring.field.path.title": "Value" -} \ No newline at end of file +} diff --git a/src/plone/restapi/tests/http-examples/roles.resp b/src/plone/restapi/tests/http-examples/roles.resp index c75a122b58..7b282e9166 100644 --- a/src/plone/restapi/tests/http-examples/roles.resp +++ b/src/plone/restapi/tests/http-examples/roles.resp @@ -2,46 +2,46 @@ HTTP/1.1 200 OK Content-Type: application/json [ - { - "@id": "http://localhost:55001/plone/@roles/Contributor", - "@type": "role", - "id": "Contributor", - "title": "Contributor" - }, - { - "@id": "http://localhost:55001/plone/@roles/Editor", - "@type": "role", - "id": "Editor", - "title": "Editor" - }, - { - "@id": "http://localhost:55001/plone/@roles/Member", - "@type": "role", - "id": "Member", - "title": "Member" - }, - { - "@id": "http://localhost:55001/plone/@roles/Reader", - "@type": "role", - "id": "Reader", - "title": "Reader" - }, - { - "@id": "http://localhost:55001/plone/@roles/Reviewer", - "@type": "role", - "id": "Reviewer", - "title": "Reviewer" - }, - { - "@id": "http://localhost:55001/plone/@roles/Site Administrator", - "@type": "role", - "id": "Site Administrator", - "title": "Site Administrator" - }, - { - "@id": "http://localhost:55001/plone/@roles/Manager", - "@type": "role", - "id": "Manager", - "title": "Manager" - } -] \ No newline at end of file + { + "@id": "http://localhost:55001/plone/@roles/Contributor", + "@type": "role", + "id": "Contributor", + "title": "Contributor" + }, + { + "@id": "http://localhost:55001/plone/@roles/Editor", + "@type": "role", + "id": "Editor", + "title": "Editor" + }, + { + "@id": "http://localhost:55001/plone/@roles/Member", + "@type": "role", + "id": "Member", + "title": "Member" + }, + { + "@id": "http://localhost:55001/plone/@roles/Reader", + "@type": "role", + "id": "Reader", + "title": "Reader" + }, + { + "@id": "http://localhost:55001/plone/@roles/Reviewer", + "@type": "role", + "id": "Reviewer", + "title": "Reviewer" + }, + { + "@id": "http://localhost:55001/plone/@roles/Site Administrator", + "@type": "role", + "id": "Site Administrator", + "title": "Site Administrator" + }, + { + "@id": "http://localhost:55001/plone/@roles/Manager", + "@type": "role", + "id": "Manager", + "title": "Manager" + } +] diff --git a/src/plone/restapi/tests/http-examples/search.resp b/src/plone/restapi/tests/http-examples/search.resp index fbc626a28f..abbb816372 100644 --- a/src/plone/restapi/tests/http-examples/search.resp +++ b/src/plone/restapi/tests/http-examples/search.resp @@ -2,15 +2,15 @@ HTTP/1.1 200 OK Content-Type: application/json { - "@id": "http://localhost:55001/plone/@search", - "items": [ - { - "@id": "http://localhost:55001/plone/front-page", - "@type": "Document", - "description": "Congratulations! You have successfully installed Plone.", - "review_state": "private", - "title": "Welcome to Plone" - } - ], - "items_total": 1 -} \ No newline at end of file + "@id": "http://localhost:55001/plone/@search", + "items": [ + { + "@id": "http://localhost:55001/plone/front-page", + "@type": "Document", + "description": "Congratulations! You have successfully installed Plone.", + "review_state": "private", + "title": "Welcome to Plone" + } + ], + "items_total": 1 +} diff --git a/src/plone/restapi/tests/http-examples/search_fullobjects.resp b/src/plone/restapi/tests/http-examples/search_fullobjects.resp index 86e1490dd0..58edeb566a 100644 --- a/src/plone/restapi/tests/http-examples/search_fullobjects.resp +++ b/src/plone/restapi/tests/http-examples/search_fullobjects.resp @@ -2,75 +2,75 @@ HTTP/1.1 200 OK Content-Type: application/json { - "@id": "http://localhost:55001/plone/@search?SearchableText=lorem&fullobjects=1", - "items": [ - { - "@components": { - "actions": { - "@id": "http://localhost:55001/plone/doc1/@actions" - }, - "breadcrumbs": { - "@id": "http://localhost:55001/plone/doc1/@breadcrumbs" - }, - "contextnavigation": { - "@id": "http://localhost:55001/plone/doc1/@contextnavigation" - }, - "navigation": { - "@id": "http://localhost:55001/plone/doc1/@navigation" - }, - "types": { - "@id": "http://localhost:55001/plone/doc1/@types" - }, - "workflow": { - "@id": "http://localhost:55001/plone/doc1/@workflow" + "@id": "http://localhost:55001/plone/@search?SearchableText=lorem&fullobjects=1", + "items": [ + { + "@components": { + "actions": { + "@id": "http://localhost:55001/plone/doc1/@actions" + }, + "breadcrumbs": { + "@id": "http://localhost:55001/plone/doc1/@breadcrumbs" + }, + "contextnavigation": { + "@id": "http://localhost:55001/plone/doc1/@contextnavigation" + }, + "navigation": { + "@id": "http://localhost:55001/plone/doc1/@navigation" + }, + "types": { + "@id": "http://localhost:55001/plone/doc1/@types" + }, + "workflow": { + "@id": "http://localhost:55001/plone/doc1/@workflow" + } + }, + "@id": "http://localhost:55001/plone/doc1", + "@type": "Document", + "UID": "SomeUUID000000000000000000000002", + "allow_discussion": false, + "changeNote": "", + "contributors": [], + "created": "1995-07-31T13:45:00", + "creators": [ + "test_user_1_" + ], + "description": "", + "effective": null, + "exclude_from_nav": false, + "expires": null, + "id": "doc1", + "is_folderish": false, + "language": "", + "layout": "document_view", + "lock": { + "locked": false, + "stealable": true + }, + "modified": "1995-07-31T17:30:00", + "next_item": {}, + "parent": { + "@id": "http://localhost:55001/plone", + "@type": "Plone Site", + "description": "", + "title": "Plone site" + }, + "previous_item": { + "@id": "http://localhost:55001/plone/front-page", + "@type": "Document", + "description": "Congratulations! You have successfully installed Plone.", + "title": "Welcome to Plone" + }, + "relatedItems": [], + "review_state": "private", + "rights": "", + "subjects": [], + "table_of_contents": null, + "text": null, + "title": "Lorem Ipsum", + "version": "current", + "versioning_enabled": true } - }, - "@id": "http://localhost:55001/plone/doc1", - "@type": "Document", - "UID": "SomeUUID000000000000000000000002", - "allow_discussion": false, - "changeNote": "", - "contributors": [], - "created": "1995-07-31T13:45:00", - "creators": [ - "test_user_1_" - ], - "description": "", - "effective": null, - "exclude_from_nav": false, - "expires": null, - "id": "doc1", - "is_folderish": false, - "language": "", - "layout": "document_view", - "lock": { - "locked": false, - "stealable": true - }, - "modified": "1995-07-31T17:30:00", - "next_item": {}, - "parent": { - "@id": "http://localhost:55001/plone", - "@type": "Plone Site", - "description": "", - "title": "Plone site" - }, - "previous_item": { - "@id": "http://localhost:55001/plone/front-page", - "@type": "Document", - "description": "Congratulations! You have successfully installed Plone.", - "title": "Welcome to Plone" - }, - "relatedItems": [], - "review_state": "private", - "rights": "", - "subjects": [], - "table_of_contents": null, - "text": null, - "title": "Lorem Ipsum", - "version": "current", - "versioning_enabled": true - } - ], - "items_total": 1 -} \ No newline at end of file + ], + "items_total": 1 +} diff --git a/src/plone/restapi/tests/http-examples/search_metadata_fields.resp b/src/plone/restapi/tests/http-examples/search_metadata_fields.resp index dad22a7947..893a5535f2 100644 --- a/src/plone/restapi/tests/http-examples/search_metadata_fields.resp +++ b/src/plone/restapi/tests/http-examples/search_metadata_fields.resp @@ -2,17 +2,17 @@ HTTP/1.1 200 OK Content-Type: application/json { - "@id": "http://localhost:55001/plone/@search?SearchableText=lorem&metadata_fields=modified&metadata_fields=created", - "items": [ - { - "@id": "http://localhost:55001/plone/doc1", - "@type": "Document", - "created": "1995-07-31T13:45:00", - "description": "", - "modified": "1995-07-31T17:30:00", - "review_state": "private", - "title": "Lorem Ipsum" - } - ], - "items_total": 1 -} \ No newline at end of file + "@id": "http://localhost:55001/plone/@search?SearchableText=lorem&metadata_fields=modified&metadata_fields=created", + "items": [ + { + "@id": "http://localhost:55001/plone/doc1", + "@type": "Document", + "created": "1995-07-31T13:45:00", + "description": "", + "modified": "1995-07-31T17:30:00", + "review_state": "private", + "title": "Lorem Ipsum" + } + ], + "items_total": 1 +} diff --git a/src/plone/restapi/tests/http-examples/search_multiple_paths.resp b/src/plone/restapi/tests/http-examples/search_multiple_paths.resp index 1aacaf154e..64f2983824 100644 --- a/src/plone/restapi/tests/http-examples/search_multiple_paths.resp +++ b/src/plone/restapi/tests/http-examples/search_multiple_paths.resp @@ -2,36 +2,36 @@ HTTP/1.1 200 OK Content-Type: application/json { - "@id": "http://localhost:55001/plone/@search?path.query=%2Fplone%2Ffolder1&path.query=%2Fplone%2Ffolder2&path.depth=2", - "items": [ - { - "@id": "http://localhost:55001/plone/folder1", - "@type": "Folder", - "description": "", - "review_state": "private", - "title": "Folder 1" - }, - { - "@id": "http://localhost:55001/plone/folder1/doc1", - "@type": "Document", - "description": "", - "review_state": "private", - "title": "Lorem Ipsum" - }, - { - "@id": "http://localhost:55001/plone/folder2", - "@type": "Folder", - "description": "", - "review_state": "private", - "title": "Folder 2" - }, - { - "@id": "http://localhost:55001/plone/folder2/doc2", - "@type": "Document", - "description": "", - "review_state": "private", - "title": "Lorem Ipsum" - } - ], - "items_total": 4 -} \ No newline at end of file + "@id": "http://localhost:55001/plone/@search?path.query=%2Fplone%2Ffolder1&path.query=%2Fplone%2Ffolder2&path.depth=2", + "items": [ + { + "@id": "http://localhost:55001/plone/folder1", + "@type": "Folder", + "description": "", + "review_state": "private", + "title": "Folder 1" + }, + { + "@id": "http://localhost:55001/plone/folder1/doc1", + "@type": "Document", + "description": "", + "review_state": "private", + "title": "Lorem Ipsum" + }, + { + "@id": "http://localhost:55001/plone/folder2", + "@type": "Folder", + "description": "", + "review_state": "private", + "title": "Folder 2" + }, + { + "@id": "http://localhost:55001/plone/folder2/doc2", + "@type": "Document", + "description": "", + "review_state": "private", + "title": "Lorem Ipsum" + } + ], + "items_total": 4 +} diff --git a/src/plone/restapi/tests/http-examples/search_options.resp b/src/plone/restapi/tests/http-examples/search_options.resp index 70aab34a58..4410f66b65 100644 --- a/src/plone/restapi/tests/http-examples/search_options.resp +++ b/src/plone/restapi/tests/http-examples/search_options.resp @@ -2,15 +2,15 @@ HTTP/1.1 200 OK Content-Type: application/json { - "@id": "http://localhost:55001/plone/@search?path.query=%2Fplone%2Ffolder1&path.depth=1", - "items": [ - { - "@id": "http://localhost:55001/plone/folder1/folder2", - "@type": "Folder", - "description": "", - "review_state": "private", - "title": "Folder 2" - } - ], - "items_total": 1 -} \ No newline at end of file + "@id": "http://localhost:55001/plone/@search?path.query=%2Fplone%2Ffolder1&path.depth=1", + "items": [ + { + "@id": "http://localhost:55001/plone/folder1/folder2", + "@type": "Folder", + "description": "", + "review_state": "private", + "title": "Folder 2" + } + ], + "items_total": 1 +} diff --git a/src/plone/restapi/tests/http-examples/sharing_folder_get.resp b/src/plone/restapi/tests/http-examples/sharing_folder_get.resp index 9df40be72d..facd99dc70 100644 --- a/src/plone/restapi/tests/http-examples/sharing_folder_get.resp +++ b/src/plone/restapi/tests/http-examples/sharing_folder_get.resp @@ -2,38 +2,38 @@ HTTP/1.1 200 OK Content-Type: application/json { - "available_roles": [ - { - "id": "Contributor", - "title": "Can add" - }, - { - "id": "Editor", - "title": "Can edit" - }, - { - "id": "Reader", - "title": "Can view" - }, - { - "id": "Reviewer", - "title": "Can review" - } - ], - "entries": [ - { - "disabled": false, - "id": "AuthenticatedUsers", - "login": null, - "roles": { - "Contributor": false, - "Editor": false, - "Reader": false, - "Reviewer": false - }, - "title": "Logged-in users", - "type": "group" - } - ], - "inherit": true -} \ No newline at end of file + "available_roles": [ + { + "id": "Contributor", + "title": "Can add" + }, + { + "id": "Editor", + "title": "Can edit" + }, + { + "id": "Reader", + "title": "Can view" + }, + { + "id": "Reviewer", + "title": "Can review" + } + ], + "entries": [ + { + "disabled": false, + "id": "AuthenticatedUsers", + "login": null, + "roles": { + "Contributor": false, + "Editor": false, + "Reader": false, + "Reviewer": false + }, + "title": "Logged-in users", + "type": "group" + } + ], + "inherit": true +} diff --git a/src/plone/restapi/tests/http-examples/sharing_folder_post.req b/src/plone/restapi/tests/http-examples/sharing_folder_post.req index 27182e0021..4884bf61f1 100644 --- a/src/plone/restapi/tests/http-examples/sharing_folder_post.req +++ b/src/plone/restapi/tests/http-examples/sharing_folder_post.req @@ -17,4 +17,4 @@ Content-Type: application/json } ], "inherit": true -} \ No newline at end of file +} diff --git a/src/plone/restapi/tests/http-examples/sharing_search.resp b/src/plone/restapi/tests/http-examples/sharing_search.resp index c489ff6900..27f28d5cb7 100644 --- a/src/plone/restapi/tests/http-examples/sharing_search.resp +++ b/src/plone/restapi/tests/http-examples/sharing_search.resp @@ -2,74 +2,74 @@ HTTP/1.1 200 OK Content-Type: application/json { - "available_roles": [ - { - "id": "Contributor", - "title": "Can add" - }, - { - "id": "Editor", - "title": "Can edit" - }, - { - "id": "Reader", - "title": "Can view" - }, - { - "id": "Reviewer", - "title": "Can review" - } - ], - "entries": [ - { - "id": "Administrators", - "login": null, - "roles": { - "Contributor": false, - "Editor": false, - "Reader": false, - "Reviewer": false - }, - "title": "Administrators", - "type": "group" - }, - { - "disabled": false, - "id": "AuthenticatedUsers", - "login": null, - "roles": { - "Contributor": false, - "Editor": false, - "Reader": false, - "Reviewer": false - }, - "title": "Logged-in users", - "type": "group" - }, - { - "id": "Site Administrators", - "login": null, - "roles": { - "Contributor": false, - "Editor": false, - "Reader": false, - "Reviewer": false - }, - "title": "Site Administrators", - "type": "group" - }, - { - "disabled": true, - "id": "admin", - "roles": { - "Contributor": "global", - "Editor": "acquired", - "Reader": false, - "Reviewer": false - }, - "title": "admin", - "type": "user" - } - ], - "inherit": true -} \ No newline at end of file + "available_roles": [ + { + "id": "Contributor", + "title": "Can add" + }, + { + "id": "Editor", + "title": "Can edit" + }, + { + "id": "Reader", + "title": "Can view" + }, + { + "id": "Reviewer", + "title": "Can review" + } + ], + "entries": [ + { + "id": "Administrators", + "login": null, + "roles": { + "Contributor": false, + "Editor": false, + "Reader": false, + "Reviewer": false + }, + "title": "Administrators", + "type": "group" + }, + { + "disabled": false, + "id": "AuthenticatedUsers", + "login": null, + "roles": { + "Contributor": false, + "Editor": false, + "Reader": false, + "Reviewer": false + }, + "title": "Logged-in users", + "type": "group" + }, + { + "id": "Site Administrators", + "login": null, + "roles": { + "Contributor": false, + "Editor": false, + "Reader": false, + "Reviewer": false + }, + "title": "Site Administrators", + "type": "group" + }, + { + "disabled": true, + "id": "admin", + "roles": { + "Contributor": "global", + "Editor": "acquired", + "Reader": false, + "Reviewer": false + }, + "title": "admin", + "type": "user" + } + ], + "inherit": true +} diff --git a/src/plone/restapi/tests/http-examples/siteroot.resp b/src/plone/restapi/tests/http-examples/siteroot.resp index 3f00c70eb6..4c00477092 100644 --- a/src/plone/restapi/tests/http-examples/siteroot.resp +++ b/src/plone/restapi/tests/http-examples/siteroot.resp @@ -2,37 +2,37 @@ HTTP/1.1 200 OK Content-Type: application/json { - "@components": { - "actions": { - "@id": "http://localhost:55001/plone/@actions" - }, - "breadcrumbs": { - "@id": "http://localhost:55001/plone/@breadcrumbs" - }, - "contextnavigation": { - "@id": "http://localhost:55001/plone/@contextnavigation" - }, - "navigation": { - "@id": "http://localhost:55001/plone/@navigation" - } - }, - "@id": "http://localhost:55001/plone", - "@type": "Plone Site", - "blocks": {}, - "blocks_layout": {}, - "description": "", - "id": "plone", - "is_folderish": true, - "items": [ - { - "@id": "http://localhost:55001/plone/front-page", - "@type": "Document", - "description": "Congratulations! You have successfully installed Plone.", - "review_state": "private", - "title": "Welcome to Plone" - } - ], - "items_total": 1, - "parent": {}, - "title": "Plone site" -} \ No newline at end of file + "@components": { + "actions": { + "@id": "http://localhost:55001/plone/@actions" + }, + "breadcrumbs": { + "@id": "http://localhost:55001/plone/@breadcrumbs" + }, + "contextnavigation": { + "@id": "http://localhost:55001/plone/@contextnavigation" + }, + "navigation": { + "@id": "http://localhost:55001/plone/@navigation" + } + }, + "@id": "http://localhost:55001/plone", + "@type": "Plone Site", + "blocks": {}, + "blocks_layout": {}, + "description": "", + "id": "plone", + "is_folderish": true, + "items": [ + { + "@id": "http://localhost:55001/plone/front-page", + "@type": "Document", + "description": "Congratulations! You have successfully installed Plone.", + "review_state": "private", + "title": "Welcome to Plone" + } + ], + "items_total": 1, + "parent": {}, + "title": "Plone site" +} diff --git a/src/plone/restapi/tests/http-examples/sources_get.resp b/src/plone/restapi/tests/http-examples/sources_get.resp index 958c96a299..dbd397461e 100644 --- a/src/plone/restapi/tests/http-examples/sources_get.resp +++ b/src/plone/restapi/tests/http-examples/sources_get.resp @@ -2,20 +2,20 @@ HTTP/1.1 200 OK Content-Type: application/json { - "@id": "http://localhost:55001/plone/doc/@sources/test_choice_with_source", - "items": [ - { - "title": "Title 1", - "token": "token1" - }, - { - "title": "Title 2", - "token": "token2" - }, - { - "title": "Title 3", - "token": "token3" - } - ], - "items_total": 3 -} \ No newline at end of file + "@id": "http://localhost:55001/plone/doc/@sources/test_choice_with_source", + "items": [ + { + "title": "Title 1", + "token": "token1" + }, + { + "title": "Title 2", + "token": "token2" + }, + { + "title": "Title 3", + "token": "token3" + } + ], + "items_total": 3 +} diff --git a/src/plone/restapi/tests/http-examples/translated_messages_object_history.resp b/src/plone/restapi/tests/http-examples/translated_messages_object_history.resp index ba5e62bea8..ae005d8778 100644 --- a/src/plone/restapi/tests/http-examples/translated_messages_object_history.resp +++ b/src/plone/restapi/tests/http-examples/translated_messages_object_history.resp @@ -2,35 +2,35 @@ HTTP/1.1 200 OK Content-Type: application/json [ - { - "@id": "http://localhost:55001/plone/front-page/@history/0", - "action": "Editado", - "actor": { - "@id": "http://localhost:55001/plone/@users/test-user", - "fullname": "test-user", - "id": "test-user", - "username": null - }, - "comments": "Versi\u00f3n inicial", - "may_revert": true, - "time": "1995-07-31T17:30:00", - "transition_title": "Editado", - "type": "versioning", - "version": 0 - }, - { - "action": "Crear", - "actor": { - "@id": "http://localhost:55001/plone/@users/test_user_1_", - "fullname": "test_user_1_", - "id": "test_user_1_", - "username": null - }, - "comments": "", - "review_state": "private", - "state_title": "Privado", - "time": "1995-07-31T18:30:00", - "transition_title": "Crear", - "type": "workflow" - } -] \ No newline at end of file + { + "@id": "http://localhost:55001/plone/front-page/@history/0", + "action": "Editado", + "actor": { + "@id": "http://localhost:55001/plone/@users/test-user", + "fullname": "test-user", + "id": "test-user", + "username": null + }, + "comments": "Versi\u00f3n inicial", + "may_revert": true, + "time": "1995-07-31T17:30:00", + "transition_title": "Editado", + "type": "versioning", + "version": 0 + }, + { + "action": "Crear", + "actor": { + "@id": "http://localhost:55001/plone/@users/test_user_1_", + "fullname": "test_user_1_", + "id": "test_user_1_", + "username": null + }, + "comments": "", + "review_state": "private", + "state_title": "Privado", + "time": "1995-07-31T18:30:00", + "transition_title": "Crear", + "type": "workflow" + } +] diff --git a/src/plone/restapi/tests/http-examples/translated_messages_object_workflow.resp b/src/plone/restapi/tests/http-examples/translated_messages_object_workflow.resp index b43e107c77..f2aa723127 100644 --- a/src/plone/restapi/tests/http-examples/translated_messages_object_workflow.resp +++ b/src/plone/restapi/tests/http-examples/translated_messages_object_workflow.resp @@ -2,25 +2,25 @@ HTTP/1.1 200 OK Content-Type: application/json { - "@id": "http://localhost:55001/plone/front-page/@workflow", - "history": [ - { - "action": null, - "actor": "test_user_1_", - "comments": "", - "review_state": "private", - "time": "1995-07-31T17:30:00", - "title": "Privado" - } - ], - "transitions": [ - { - "@id": "http://localhost:55001/plone/front-page/@workflow/publish", - "title": "Publicar" - }, - { - "@id": "http://localhost:55001/plone/front-page/@workflow/submit", - "title": "Enviar para publicaci\u00f3n" - } - ] -} \ No newline at end of file + "@id": "http://localhost:55001/plone/front-page/@workflow", + "history": [ + { + "action": null, + "actor": "test_user_1_", + "comments": "", + "review_state": "private", + "time": "1995-07-31T17:30:00", + "title": "Privado" + } + ], + "transitions": [ + { + "@id": "http://localhost:55001/plone/front-page/@workflow/publish", + "title": "Publicar" + }, + { + "@id": "http://localhost:55001/plone/front-page/@workflow/submit", + "title": "Enviar para publicaci\u00f3n" + } + ] +} diff --git a/src/plone/restapi/tests/http-examples/translated_messages_types.resp b/src/plone/restapi/tests/http-examples/translated_messages_types.resp index 0510b9af99..6fc8cd39ad 100644 --- a/src/plone/restapi/tests/http-examples/translated_messages_types.resp +++ b/src/plone/restapi/tests/http-examples/translated_messages_types.resp @@ -2,49 +2,49 @@ HTTP/1.1 200 OK Content-Type: application/json [ - { - "@id": "http://localhost:55001/plone/@types/File", - "addable": true, - "title": "Archivo" - }, - { - "@id": "http://localhost:55001/plone/@types/Folder", - "addable": true, - "title": "Carpeta" - }, - { - "@id": "http://localhost:55001/plone/@types/Collection", - "addable": true, - "title": "Colecci\u00f3n" - }, - { - "@id": "http://localhost:55001/plone/@types/DXTestDocument", - "addable": true, - "title": "DX Test Document" - }, - { - "@id": "http://localhost:55001/plone/@types/Link", - "addable": true, - "title": "Enlace" - }, - { - "@id": "http://localhost:55001/plone/@types/Event", - "addable": true, - "title": "Evento" - }, - { - "@id": "http://localhost:55001/plone/@types/Image", - "addable": true, - "title": "Imagen" - }, - { - "@id": "http://localhost:55001/plone/@types/News Item", - "addable": true, - "title": "Noticia" - }, - { - "@id": "http://localhost:55001/plone/@types/Document", - "addable": true, - "title": "P\u00e1gina" - } -] \ No newline at end of file + { + "@id": "http://localhost:55001/plone/@types/File", + "addable": true, + "title": "Archivo" + }, + { + "@id": "http://localhost:55001/plone/@types/Folder", + "addable": true, + "title": "Carpeta" + }, + { + "@id": "http://localhost:55001/plone/@types/Collection", + "addable": true, + "title": "Colecci\u00f3n" + }, + { + "@id": "http://localhost:55001/plone/@types/DXTestDocument", + "addable": true, + "title": "DX Test Document" + }, + { + "@id": "http://localhost:55001/plone/@types/Link", + "addable": true, + "title": "Enlace" + }, + { + "@id": "http://localhost:55001/plone/@types/Event", + "addable": true, + "title": "Evento" + }, + { + "@id": "http://localhost:55001/plone/@types/Image", + "addable": true, + "title": "Imagen" + }, + { + "@id": "http://localhost:55001/plone/@types/News Item", + "addable": true, + "title": "Noticia" + }, + { + "@id": "http://localhost:55001/plone/@types/Document", + "addable": true, + "title": "P\u00e1gina" + } +] diff --git a/src/plone/restapi/tests/http-examples/translated_messages_types_folder.resp b/src/plone/restapi/tests/http-examples/translated_messages_types_folder.resp index fe8011f335..f3b29f2112 100644 --- a/src/plone/restapi/tests/http-examples/translated_messages_types_folder.resp +++ b/src/plone/restapi/tests/http-examples/translated_messages_types_folder.resp @@ -2,258 +2,258 @@ HTTP/1.1 200 OK Content-Type: application/json+schema { - "fieldsets": [ - { - "behavior": "plone", - "fields": [ - "title", - "description" - ], - "id": "default", - "title": "Por defecto" - }, - { - "behavior": "plone", - "fields": [ - "subjects", - "language", - "relatedItems" - ], - "id": "categorization", - "title": "Categorizaci\u00f3n" - }, - { - "behavior": "plone", - "fields": [ - "effective", - "expires" - ], - "id": "dates", - "title": "Fechas" - }, - { - "behavior": "plone", - "fields": [ - "creators", - "contributors", - "rights" - ], - "id": "ownership", - "title": "Propiedad" - }, - { - "behavior": "plone", - "fields": [ - "allow_discussion", - "exclude_from_nav", - "id", - "nextPreviousEnabled" - ], - "id": "settings", - "title": "Configuraci\u00f3n" - } - ], - "layouts": [ - "album_view", - "event_listing", - "full_view", - "listing_view", - "summary_view", - "tabular_view" - ], - "properties": { - "allow_discussion": { - "behavior": "plone.allowdiscussion", - "choices": [ - [ - "True", - "S\u00ed" - ], - [ - "False", - "No" - ] - ], - "description": "Permitir comentarios para este tipo de contenido", - "enum": [ - "True", - "False" - ], - "enumNames": [ - "S\u00ed", - "No" - ], - "factory": "Choice", - "title": "Permitir comentarios", - "type": "string", - "vocabulary": { - "@id": "http://localhost:55001/plone/@sources/allow_discussion" - } - }, - "contributors": { - "additionalItems": true, - "behavior": "plone.dublincore", - "description": "Los nombres de las personas que han contribuido a este elemento. Cada colaborador deber\u00eda estar en una l\u00ednea independiente.", - "factory": "Tuple", - "items": { - "description": "", - "factory": "Text line (String)", - "title": "", - "type": "string" - }, - "title": "Colaboradores", - "type": "array", - "uniqueItems": true, - "widgetOptions": { - "vocabulary": { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.Users" + "fieldsets": [ + { + "behavior": "plone", + "fields": [ + "title", + "description" + ], + "id": "default", + "title": "Por defecto" + }, + { + "behavior": "plone", + "fields": [ + "subjects", + "language", + "relatedItems" + ], + "id": "categorization", + "title": "Categorizaci\u00f3n" + }, + { + "behavior": "plone", + "fields": [ + "effective", + "expires" + ], + "id": "dates", + "title": "Fechas" + }, + { + "behavior": "plone", + "fields": [ + "creators", + "contributors", + "rights" + ], + "id": "ownership", + "title": "Propiedad" + }, + { + "behavior": "plone", + "fields": [ + "allow_discussion", + "exclude_from_nav", + "id", + "nextPreviousEnabled" + ], + "id": "settings", + "title": "Configuraci\u00f3n" } - } - }, - "creators": { - "additionalItems": true, - "behavior": "plone.dublincore", - "description": "Personas responsables de la creaci\u00f3n del contenido de este elemento. Por favor, introduzca una lista de nombres de usuario, uno por l\u00ednea. El autor principal deber\u00eda ser el primero.", - "factory": "Tuple", - "items": { - "description": "", - "factory": "Text line (String)", - "title": "", - "type": "string" - }, - "title": "Creadores", - "type": "array", - "uniqueItems": true, - "widgetOptions": { - "vocabulary": { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.Users" + ], + "layouts": [ + "album_view", + "event_listing", + "full_view", + "listing_view", + "summary_view", + "tabular_view" + ], + "properties": { + "allow_discussion": { + "behavior": "plone.allowdiscussion", + "choices": [ + [ + "True", + "S\u00ed" + ], + [ + "False", + "No" + ] + ], + "description": "Permitir comentarios para este tipo de contenido", + "enum": [ + "True", + "False" + ], + "enumNames": [ + "S\u00ed", + "No" + ], + "factory": "Choice", + "title": "Permitir comentarios", + "type": "string", + "vocabulary": { + "@id": "http://localhost:55001/plone/@sources/allow_discussion" + } + }, + "contributors": { + "additionalItems": true, + "behavior": "plone.dublincore", + "description": "Los nombres de las personas que han contribuido a este elemento. Cada colaborador deber\u00eda estar en una l\u00ednea independiente.", + "factory": "Tuple", + "items": { + "description": "", + "factory": "Text line (String)", + "title": "", + "type": "string" + }, + "title": "Colaboradores", + "type": "array", + "uniqueItems": true, + "widgetOptions": { + "vocabulary": { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.Users" + } + } + }, + "creators": { + "additionalItems": true, + "behavior": "plone.dublincore", + "description": "Personas responsables de la creaci\u00f3n del contenido de este elemento. Por favor, introduzca una lista de nombres de usuario, uno por l\u00ednea. El autor principal deber\u00eda ser el primero.", + "factory": "Tuple", + "items": { + "description": "", + "factory": "Text line (String)", + "title": "", + "type": "string" + }, + "title": "Creadores", + "type": "array", + "uniqueItems": true, + "widgetOptions": { + "vocabulary": { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.Users" + } + } + }, + "description": { + "behavior": "plone.dublincore", + "description": "Usado en listados de elementos y resultados de b\u00fasquedas.", + "factory": "Text", + "title": "Descripci\u00f3n", + "type": "string", + "widget": "textarea" + }, + "effective": { + "behavior": "plone.dublincore", + "description": "La fecha en la que el documento ser\u00e1 publicado. Si no selecciona ninguna fecha, el documento ser\u00e1 publicado inmediatamente.", + "factory": "Date/Time", + "title": "Fecha de Publicaci\u00f3n", + "type": "string", + "widget": "datetime" + }, + "exclude_from_nav": { + "behavior": "plone.excludefromnavigation", + "default": false, + "description": "Si est\u00e1 marcado, este elemento no aparecer\u00e1 en el \u00e1rbol de navegaci\u00f3n", + "factory": "Yes/No", + "title": "Excluir de la navegaci\u00f3n", + "type": "boolean" + }, + "expires": { + "behavior": "plone.dublincore", + "description": "La fecha en la que expira el documento. Esto har\u00e1 autom\u00e1ticamente el documento invisible a otros a una fecha dada. Si no elije ninguna fecha, nunca expirar\u00e1.", + "factory": "Date/Time", + "title": "Fecha de Terminaci\u00f3n", + "type": "string", + "widget": "datetime" + }, + "id": { + "behavior": "plone.shortname", + "description": "Este nombre se mostrar\u00e1 en la URL.", + "factory": "Text line (String)", + "title": "Nombre corto", + "type": "string" + }, + "language": { + "behavior": "plone.dublincore", + "default": "en", + "description": "", + "factory": "Choice", + "title": "Idioma", + "type": "string", + "vocabulary": { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.SupportedContentLanguages" + } + }, + "nextPreviousEnabled": { + "behavior": "plone.nextprevioustoggle", + "default": false, + "description": "Esto habilita el widget siguiente/pr\u00f3ximo en los elementos contenidos en esta carpeta.", + "factory": "Yes/No", + "title": "Habilitar la navegaci\u00f3n siguiente/anterior", + "type": "boolean" + }, + "relatedItems": { + "additionalItems": true, + "behavior": "plone.relateditems", + "default": [], + "description": "", + "factory": "Relation List", + "items": { + "description": "", + "factory": "Relation Choice", + "title": "Related", + "type": "string", + "vocabulary": { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.Catalog" + } + }, + "title": "Contenido relacionado", + "type": "array", + "uniqueItems": true, + "widgetOptions": { + "pattern_options": { + "recentlyUsed": true + }, + "vocabulary": { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.Catalog" + } + } + }, + "rights": { + "behavior": "plone.dublincore", + "description": "Declaraci\u00f3n de copyright o informaci\u00f3n de otros derechos sobre este elemento.", + "factory": "Text", + "title": "Derechos de Autor", + "type": "string", + "widget": "textarea" + }, + "subjects": { + "additionalItems": true, + "behavior": "plone.dublincore", + "description": "Las etiquetas suelen utilizarse para la organizaci\u00f3n a medida del contenido.", + "factory": "Tuple", + "items": { + "description": "", + "factory": "Text line (String)", + "title": "", + "type": "string" + }, + "title": "Etiquetas", + "type": "array", + "uniqueItems": true, + "widgetOptions": { + "vocabulary": { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.Keywords" + } + } + }, + "title": { + "behavior": "plone.dublincore", + "description": "", + "factory": "Text line (String)", + "title": "T\u00edtulo", + "type": "string" } - } - }, - "description": { - "behavior": "plone.dublincore", - "description": "Usado en listados de elementos y resultados de b\u00fasquedas.", - "factory": "Text", - "title": "Descripci\u00f3n", - "type": "string", - "widget": "textarea" - }, - "effective": { - "behavior": "plone.dublincore", - "description": "La fecha en la que el documento ser\u00e1 publicado. Si no selecciona ninguna fecha, el documento ser\u00e1 publicado inmediatamente.", - "factory": "Date/Time", - "title": "Fecha de Publicaci\u00f3n", - "type": "string", - "widget": "datetime" - }, - "exclude_from_nav": { - "behavior": "plone.excludefromnavigation", - "default": false, - "description": "Si est\u00e1 marcado, este elemento no aparecer\u00e1 en el \u00e1rbol de navegaci\u00f3n", - "factory": "Yes/No", - "title": "Excluir de la navegaci\u00f3n", - "type": "boolean" - }, - "expires": { - "behavior": "plone.dublincore", - "description": "La fecha en la que expira el documento. Esto har\u00e1 autom\u00e1ticamente el documento invisible a otros a una fecha dada. Si no elije ninguna fecha, nunca expirar\u00e1.", - "factory": "Date/Time", - "title": "Fecha de Terminaci\u00f3n", - "type": "string", - "widget": "datetime" - }, - "id": { - "behavior": "plone.shortname", - "description": "Este nombre se mostrar\u00e1 en la URL.", - "factory": "Text line (String)", - "title": "Nombre corto", - "type": "string" - }, - "language": { - "behavior": "plone.dublincore", - "default": "en", - "description": "", - "factory": "Choice", - "title": "Idioma", - "type": "string", - "vocabulary": { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.SupportedContentLanguages" - } - }, - "nextPreviousEnabled": { - "behavior": "plone.nextprevioustoggle", - "default": false, - "description": "Esto habilita el widget siguiente/pr\u00f3ximo en los elementos contenidos en esta carpeta.", - "factory": "Yes/No", - "title": "Habilitar la navegaci\u00f3n siguiente/anterior", - "type": "boolean" - }, - "relatedItems": { - "additionalItems": true, - "behavior": "plone.relateditems", - "default": [], - "description": "", - "factory": "Relation List", - "items": { - "description": "", - "factory": "Relation Choice", - "title": "Related", - "type": "string", - "vocabulary": { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.Catalog" - } - }, - "title": "Contenido relacionado", - "type": "array", - "uniqueItems": true, - "widgetOptions": { - "pattern_options": { - "recentlyUsed": true - }, - "vocabulary": { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.Catalog" - } - } - }, - "rights": { - "behavior": "plone.dublincore", - "description": "Declaraci\u00f3n de copyright o informaci\u00f3n de otros derechos sobre este elemento.", - "factory": "Text", - "title": "Derechos de Autor", - "type": "string", - "widget": "textarea" - }, - "subjects": { - "additionalItems": true, - "behavior": "plone.dublincore", - "description": "Las etiquetas suelen utilizarse para la organizaci\u00f3n a medida del contenido.", - "factory": "Tuple", - "items": { - "description": "", - "factory": "Text line (String)", - "title": "", - "type": "string" - }, - "title": "Etiquetas", - "type": "array", - "uniqueItems": true, - "widgetOptions": { - "vocabulary": { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.Keywords" - } - } - }, - "title": { - "behavior": "plone.dublincore", - "description": "", - "factory": "Text line (String)", - "title": "T\u00edtulo", - "type": "string" - } - }, - "required": [ - "title" - ], - "title": "Carpeta", - "type": "object" -} \ No newline at end of file + }, + "required": [ + "title" + ], + "title": "Carpeta", + "type": "object" +} diff --git a/src/plone/restapi/tests/http-examples/translation_locator.resp b/src/plone/restapi/tests/http-examples/translation_locator.resp index 6ffbd5595c..14b0297a69 100644 --- a/src/plone/restapi/tests/http-examples/translation_locator.resp +++ b/src/plone/restapi/tests/http-examples/translation_locator.resp @@ -2,5 +2,5 @@ HTTP/1.1 200 OK Content-Type: application/json { - "@id": "http://localhost:55001/plone/de" -} \ No newline at end of file + "@id": "http://localhost:55001/plone/de" +} diff --git a/src/plone/restapi/tests/http-examples/translations_delete.req b/src/plone/restapi/tests/http-examples/translations_delete.req index 6725867a38..94d9b28b04 100644 --- a/src/plone/restapi/tests/http-examples/translations_delete.req +++ b/src/plone/restapi/tests/http-examples/translations_delete.req @@ -5,4 +5,4 @@ Content-Type: application/json { "language": "es" -} \ No newline at end of file +} diff --git a/src/plone/restapi/tests/http-examples/translations_get.resp b/src/plone/restapi/tests/http-examples/translations_get.resp index b6b78eaf9c..5afa6be6e2 100644 --- a/src/plone/restapi/tests/http-examples/translations_get.resp +++ b/src/plone/restapi/tests/http-examples/translations_get.resp @@ -2,11 +2,11 @@ HTTP/1.1 200 OK Content-Type: application/json { - "@id": "http://localhost:55001/plone/en/test-document/@translations", - "items": [ - { - "@id": "http://localhost:55001/plone/es/test-document", - "language": "es" - } - ] -} \ No newline at end of file + "@id": "http://localhost:55001/plone/en/test-document/@translations", + "items": [ + { + "@id": "http://localhost:55001/plone/es/test-document", + "language": "es" + } + ] +} diff --git a/src/plone/restapi/tests/http-examples/translations_link_on_post.req b/src/plone/restapi/tests/http-examples/translations_link_on_post.req index f01728dc7d..f9c79d6716 100644 --- a/src/plone/restapi/tests/http-examples/translations_link_on_post.req +++ b/src/plone/restapi/tests/http-examples/translations_link_on_post.req @@ -9,4 +9,4 @@ Content-Type: application/json "language": "de", "title": "My German Document", "translation_of": "SomeUUID000000000000000000000003" -} \ No newline at end of file +} diff --git a/src/plone/restapi/tests/http-examples/translations_link_on_post.resp b/src/plone/restapi/tests/http-examples/translations_link_on_post.resp index 223775f6ca..f82e131dfe 100644 --- a/src/plone/restapi/tests/http-examples/translations_link_on_post.resp +++ b/src/plone/restapi/tests/http-examples/translations_link_on_post.resp @@ -3,76 +3,76 @@ Content-Type: application/json Location: http://localhost:55001/plone/de/mydocument { - "@components": { - "actions": { - "@id": "http://localhost:55001/plone/de/mydocument/@actions" - }, - "breadcrumbs": { - "@id": "http://localhost:55001/plone/de/mydocument/@breadcrumbs" - }, - "contextnavigation": { - "@id": "http://localhost:55001/plone/de/mydocument/@contextnavigation" - }, - "navigation": { - "@id": "http://localhost:55001/plone/de/mydocument/@navigation" - }, - "translations": { - "@id": "http://localhost:55001/plone/de/mydocument/@translations" - }, - "types": { - "@id": "http://localhost:55001/plone/de/mydocument/@types" - }, - "workflow": { - "@id": "http://localhost:55001/plone/de/mydocument/@workflow" - } - }, - "@id": "http://localhost:55001/plone/de/mydocument", - "@type": "Document", - "UID": "SomeUUID000000000000000000000005", - "allow_discussion": false, - "changeNote": "", - "contributors": [], - "created": "1995-07-31T13:45:00", - "creators": [ - "admin" - ], - "description": "", - "effective": null, - "exclude_from_nav": false, - "expires": null, - "id": "mydocument", - "is_folderish": false, - "language": { - "title": "Deutsch", - "token": "de" - }, - "layout": "document_view", - "lock": { - "locked": false, - "stealable": true - }, - "modified": "1995-07-31T17:30:00", - "next_item": {}, - "parent": { - "@id": "http://localhost:55001/plone/de", - "@type": "LRF", - "description": "", - "review_state": "published", - "title": "Deutsch" - }, - "previous_item": { - "@id": "http://localhost:55001/plone/de/assets", - "@type": "LIF", - "description": "", - "title": "Assets" - }, - "relatedItems": [], - "review_state": "private", - "rights": "", - "subjects": [], - "table_of_contents": null, - "text": null, - "title": "My German Document", - "version": "current", - "versioning_enabled": true -} \ No newline at end of file + "@components": { + "actions": { + "@id": "http://localhost:55001/plone/de/mydocument/@actions" + }, + "breadcrumbs": { + "@id": "http://localhost:55001/plone/de/mydocument/@breadcrumbs" + }, + "contextnavigation": { + "@id": "http://localhost:55001/plone/de/mydocument/@contextnavigation" + }, + "navigation": { + "@id": "http://localhost:55001/plone/de/mydocument/@navigation" + }, + "translations": { + "@id": "http://localhost:55001/plone/de/mydocument/@translations" + }, + "types": { + "@id": "http://localhost:55001/plone/de/mydocument/@types" + }, + "workflow": { + "@id": "http://localhost:55001/plone/de/mydocument/@workflow" + } + }, + "@id": "http://localhost:55001/plone/de/mydocument", + "@type": "Document", + "UID": "SomeUUID000000000000000000000005", + "allow_discussion": false, + "changeNote": "", + "contributors": [], + "created": "1995-07-31T13:45:00", + "creators": [ + "admin" + ], + "description": "", + "effective": null, + "exclude_from_nav": false, + "expires": null, + "id": "mydocument", + "is_folderish": false, + "language": { + "title": "Deutsch", + "token": "de" + }, + "layout": "document_view", + "lock": { + "locked": false, + "stealable": true + }, + "modified": "1995-07-31T17:30:00", + "next_item": {}, + "parent": { + "@id": "http://localhost:55001/plone/de", + "@type": "LRF", + "description": "", + "review_state": "published", + "title": "Deutsch" + }, + "previous_item": { + "@id": "http://localhost:55001/plone/de/assets", + "@type": "LIF", + "description": "", + "title": "Assets" + }, + "relatedItems": [], + "review_state": "private", + "rights": "", + "subjects": [], + "table_of_contents": null, + "text": null, + "title": "My German Document", + "version": "current", + "versioning_enabled": true +} diff --git a/src/plone/restapi/tests/http-examples/translations_post.req b/src/plone/restapi/tests/http-examples/translations_post.req index 86be3ab192..4c273a0bbb 100644 --- a/src/plone/restapi/tests/http-examples/translations_post.req +++ b/src/plone/restapi/tests/http-examples/translations_post.req @@ -5,4 +5,4 @@ Content-Type: application/json { "id": "http://localhost:55001/plone/es/test-document" -} \ No newline at end of file +} diff --git a/src/plone/restapi/tests/http-examples/translations_post.resp b/src/plone/restapi/tests/http-examples/translations_post.resp index b0d80491db..1959a0a224 100644 --- a/src/plone/restapi/tests/http-examples/translations_post.resp +++ b/src/plone/restapi/tests/http-examples/translations_post.resp @@ -2,4 +2,4 @@ HTTP/1.1 201 Created Content-Type: application/json Location: http://localhost:55001/plone/en/test-document -{} \ No newline at end of file +{} diff --git a/src/plone/restapi/tests/http-examples/translations_post_by_id.req b/src/plone/restapi/tests/http-examples/translations_post_by_id.req index bc8e2f2949..905c4c97cf 100644 --- a/src/plone/restapi/tests/http-examples/translations_post_by_id.req +++ b/src/plone/restapi/tests/http-examples/translations_post_by_id.req @@ -5,4 +5,4 @@ Content-Type: application/json { "id": "/es/test-document" -} \ No newline at end of file +} diff --git a/src/plone/restapi/tests/http-examples/translations_post_by_id.resp b/src/plone/restapi/tests/http-examples/translations_post_by_id.resp index b0d80491db..1959a0a224 100644 --- a/src/plone/restapi/tests/http-examples/translations_post_by_id.resp +++ b/src/plone/restapi/tests/http-examples/translations_post_by_id.resp @@ -2,4 +2,4 @@ HTTP/1.1 201 Created Content-Type: application/json Location: http://localhost:55001/plone/en/test-document -{} \ No newline at end of file +{} diff --git a/src/plone/restapi/tests/http-examples/translations_post_by_uid.req b/src/plone/restapi/tests/http-examples/translations_post_by_uid.req index 53bee8a56e..bf36abcce9 100644 --- a/src/plone/restapi/tests/http-examples/translations_post_by_uid.req +++ b/src/plone/restapi/tests/http-examples/translations_post_by_uid.req @@ -5,4 +5,4 @@ Content-Type: application/json { "id": "SomeUUID000000000000000000000003" -} \ No newline at end of file +} diff --git a/src/plone/restapi/tests/http-examples/translations_post_by_uid.resp b/src/plone/restapi/tests/http-examples/translations_post_by_uid.resp index b0d80491db..1959a0a224 100644 --- a/src/plone/restapi/tests/http-examples/translations_post_by_uid.resp +++ b/src/plone/restapi/tests/http-examples/translations_post_by_uid.resp @@ -2,4 +2,4 @@ HTTP/1.1 201 Created Content-Type: application/json Location: http://localhost:55001/plone/en/test-document -{} \ No newline at end of file +{} diff --git a/src/plone/restapi/tests/http-examples/types.resp b/src/plone/restapi/tests/http-examples/types.resp index 459c9c661a..f8578ed1cf 100644 --- a/src/plone/restapi/tests/http-examples/types.resp +++ b/src/plone/restapi/tests/http-examples/types.resp @@ -2,49 +2,49 @@ HTTP/1.1 200 OK Content-Type: application/json [ - { - "@id": "http://localhost:55001/plone/@types/Collection", - "addable": true, - "title": "Collection" - }, - { - "@id": "http://localhost:55001/plone/@types/DXTestDocument", - "addable": true, - "title": "DX Test Document" - }, - { - "@id": "http://localhost:55001/plone/@types/Event", - "addable": true, - "title": "Event" - }, - { - "@id": "http://localhost:55001/plone/@types/File", - "addable": true, - "title": "File" - }, - { - "@id": "http://localhost:55001/plone/@types/Folder", - "addable": true, - "title": "Folder" - }, - { - "@id": "http://localhost:55001/plone/@types/Image", - "addable": true, - "title": "Image" - }, - { - "@id": "http://localhost:55001/plone/@types/Link", - "addable": true, - "title": "Link" - }, - { - "@id": "http://localhost:55001/plone/@types/News Item", - "addable": true, - "title": "News Item" - }, - { - "@id": "http://localhost:55001/plone/@types/Document", - "addable": true, - "title": "Page" - } -] \ No newline at end of file + { + "@id": "http://localhost:55001/plone/@types/Collection", + "addable": true, + "title": "Collection" + }, + { + "@id": "http://localhost:55001/plone/@types/DXTestDocument", + "addable": true, + "title": "DX Test Document" + }, + { + "@id": "http://localhost:55001/plone/@types/Event", + "addable": true, + "title": "Event" + }, + { + "@id": "http://localhost:55001/plone/@types/File", + "addable": true, + "title": "File" + }, + { + "@id": "http://localhost:55001/plone/@types/Folder", + "addable": true, + "title": "Folder" + }, + { + "@id": "http://localhost:55001/plone/@types/Image", + "addable": true, + "title": "Image" + }, + { + "@id": "http://localhost:55001/plone/@types/Link", + "addable": true, + "title": "Link" + }, + { + "@id": "http://localhost:55001/plone/@types/News Item", + "addable": true, + "title": "News Item" + }, + { + "@id": "http://localhost:55001/plone/@types/Document", + "addable": true, + "title": "Page" + } +] diff --git a/src/plone/restapi/tests/http-examples/types_document.resp b/src/plone/restapi/tests/http-examples/types_document.resp index 1638b304bc..36fbd264a2 100644 --- a/src/plone/restapi/tests/http-examples/types_document.resp +++ b/src/plone/restapi/tests/http-examples/types_document.resp @@ -2,295 +2,295 @@ HTTP/1.1 200 OK Content-Type: application/json+schema { - "fieldsets": [ - { - "behavior": "plone", - "fields": [ - "title", - "description", - "author_email", - "text", - "changeNote" - ], - "id": "default", - "title": "Default" - }, - { - "behavior": "plone", - "fields": [ - "allow_discussion", - "exclude_from_nav", - "id", - "versioning_enabled", - "table_of_contents" - ], - "id": "settings", - "title": "Settings" - }, - { - "behavior": "plone", - "fields": [ - "subjects", - "language", - "relatedItems" - ], - "id": "categorization", - "title": "Categorization" - }, - { - "behavior": "plone", - "fields": [ - "effective", - "expires" - ], - "id": "dates", - "title": "Dates" - }, - { - "behavior": "plone", - "fields": [ - "creators", - "contributors", - "rights" - ], - "id": "ownership", - "title": "Ownership" - }, - { - "behavior": "plone.dexterity.schema.generated", - "description": "Contact information", - "fields": [], - "id": "contact_info", - "title": "Contact Info" - } - ], - "layouts": [ - "document_view" - ], - "properties": { - "allow_discussion": { - "behavior": "plone.allowdiscussion", - "choices": [ - [ - "True", - "Yes" - ], - [ - "False", - "No" - ] - ], - "description": "Allow discussion for this content object.", - "enum": [ - "True", - "False" - ], - "enumNames": [ - "Yes", - "No" - ], - "factory": "Choice", - "title": "Allow discussion", - "type": "string", - "vocabulary": { - "@id": "http://localhost:55001/plone/@sources/allow_discussion" - } - }, - "author_email": { - "behavior": "plone.dexterity.schema.generated.plone_0_Document", - "description": "Email of the author", - "factory": "Email", - "title": "Author email", - "type": "string", - "widget": "email" - }, - "changeNote": { - "behavior": "plone.versioning", - "description": "Enter a comment that describes the changes you made.", - "factory": "Text line (String)", - "title": "Change Note", - "type": "string" - }, - "contributors": { - "additionalItems": true, - "behavior": "plone.dublincore", - "description": "The names of people that have contributed to this item. Each contributor should be on a separate line.", - "factory": "Tuple", - "items": { - "description": "", - "factory": "Text line (String)", - "title": "", - "type": "string" - }, - "title": "Contributors", - "type": "array", - "uniqueItems": true, - "widgetOptions": { - "vocabulary": { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.Users" - } - } - }, - "creators": { - "additionalItems": true, - "behavior": "plone.dublincore", - "description": "Persons responsible for creating the content of this item. Please enter a list of user names, one per line. The principal creator should come first.", - "factory": "Tuple", - "items": { - "description": "", - "factory": "Text line (String)", - "title": "", - "type": "string" - }, - "title": "Creators", - "type": "array", - "uniqueItems": true, - "widgetOptions": { - "vocabulary": { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.Users" - } - } - }, - "description": { - "behavior": "plone.dublincore", - "description": "Used in item listings and search results.", - "factory": "Text", - "title": "Summary", - "type": "string", - "widget": "textarea" - }, - "effective": { - "behavior": "plone.dublincore", - "description": "If this date is in the future, the content will not show up in listings and searches until this date.", - "factory": "Date/Time", - "title": "Publishing Date", - "type": "string", - "widget": "datetime" - }, - "exclude_from_nav": { - "behavior": "plone.excludefromnavigation", - "default": false, - "description": "If selected, this item will not appear in the navigation tree", - "factory": "Yes/No", - "title": "Exclude from navigation", - "type": "boolean" - }, - "expires": { - "behavior": "plone.dublincore", - "description": "When this date is reached, the content will no longer be visible in listings and searches.", - "factory": "Date/Time", - "title": "Expiration Date", - "type": "string", - "widget": "datetime" - }, - "id": { - "behavior": "plone.shortname", - "description": "This name will be displayed in the URL.", - "factory": "Text line (String)", - "title": "Short name", - "type": "string" - }, - "language": { - "behavior": "plone.dublincore", - "default": "en", - "description": "", - "factory": "Choice", - "title": "Language", - "type": "string", - "vocabulary": { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.SupportedContentLanguages" - } - }, - "relatedItems": { - "additionalItems": true, - "behavior": "plone.relateditems", - "default": [], - "description": "", - "factory": "Relation List", - "items": { - "description": "", - "factory": "Relation Choice", - "title": "Related", - "type": "string", - "vocabulary": { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.Catalog" - } - }, - "title": "Related Items", - "type": "array", - "uniqueItems": true, - "widgetOptions": { - "pattern_options": { - "recentlyUsed": true + "fieldsets": [ + { + "behavior": "plone", + "fields": [ + "title", + "description", + "author_email", + "text", + "changeNote" + ], + "id": "default", + "title": "Default" + }, + { + "behavior": "plone", + "fields": [ + "allow_discussion", + "exclude_from_nav", + "id", + "versioning_enabled", + "table_of_contents" + ], + "id": "settings", + "title": "Settings" + }, + { + "behavior": "plone", + "fields": [ + "subjects", + "language", + "relatedItems" + ], + "id": "categorization", + "title": "Categorization" + }, + { + "behavior": "plone", + "fields": [ + "effective", + "expires" + ], + "id": "dates", + "title": "Dates" + }, + { + "behavior": "plone", + "fields": [ + "creators", + "contributors", + "rights" + ], + "id": "ownership", + "title": "Ownership" }, - "vocabulary": { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.Catalog" + { + "behavior": "plone.dexterity.schema.generated", + "description": "Contact information", + "fields": [], + "id": "contact_info", + "title": "Contact Info" } - } - }, - "rights": { - "behavior": "plone.dublincore", - "description": "Copyright statement or other rights information on this item.", - "factory": "Text", - "title": "Rights", - "type": "string", - "widget": "textarea" - }, - "subjects": { - "additionalItems": true, - "behavior": "plone.dublincore", - "description": "Tags are commonly used for ad-hoc organization of content.", - "factory": "Tuple", - "items": { - "description": "", - "factory": "Text line (String)", - "title": "", - "type": "string" - }, - "title": "Tags", - "type": "array", - "uniqueItems": true, - "widgetOptions": { - "vocabulary": { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.Keywords" + ], + "layouts": [ + "document_view" + ], + "properties": { + "allow_discussion": { + "behavior": "plone.allowdiscussion", + "choices": [ + [ + "True", + "Yes" + ], + [ + "False", + "No" + ] + ], + "description": "Allow discussion for this content object.", + "enum": [ + "True", + "False" + ], + "enumNames": [ + "Yes", + "No" + ], + "factory": "Choice", + "title": "Allow discussion", + "type": "string", + "vocabulary": { + "@id": "http://localhost:55001/plone/@sources/allow_discussion" + } + }, + "author_email": { + "behavior": "plone.dexterity.schema.generated.plone_0_Document", + "description": "Email of the author", + "factory": "Email", + "title": "Author email", + "type": "string", + "widget": "email" + }, + "changeNote": { + "behavior": "plone.versioning", + "description": "Enter a comment that describes the changes you made.", + "factory": "Text line (String)", + "title": "Change Note", + "type": "string" + }, + "contributors": { + "additionalItems": true, + "behavior": "plone.dublincore", + "description": "The names of people that have contributed to this item. Each contributor should be on a separate line.", + "factory": "Tuple", + "items": { + "description": "", + "factory": "Text line (String)", + "title": "", + "type": "string" + }, + "title": "Contributors", + "type": "array", + "uniqueItems": true, + "widgetOptions": { + "vocabulary": { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.Users" + } + } + }, + "creators": { + "additionalItems": true, + "behavior": "plone.dublincore", + "description": "Persons responsible for creating the content of this item. Please enter a list of user names, one per line. The principal creator should come first.", + "factory": "Tuple", + "items": { + "description": "", + "factory": "Text line (String)", + "title": "", + "type": "string" + }, + "title": "Creators", + "type": "array", + "uniqueItems": true, + "widgetOptions": { + "vocabulary": { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.Users" + } + } + }, + "description": { + "behavior": "plone.dublincore", + "description": "Used in item listings and search results.", + "factory": "Text", + "title": "Summary", + "type": "string", + "widget": "textarea" + }, + "effective": { + "behavior": "plone.dublincore", + "description": "If this date is in the future, the content will not show up in listings and searches until this date.", + "factory": "Date/Time", + "title": "Publishing Date", + "type": "string", + "widget": "datetime" + }, + "exclude_from_nav": { + "behavior": "plone.excludefromnavigation", + "default": false, + "description": "If selected, this item will not appear in the navigation tree", + "factory": "Yes/No", + "title": "Exclude from navigation", + "type": "boolean" + }, + "expires": { + "behavior": "plone.dublincore", + "description": "When this date is reached, the content will no longer be visible in listings and searches.", + "factory": "Date/Time", + "title": "Expiration Date", + "type": "string", + "widget": "datetime" + }, + "id": { + "behavior": "plone.shortname", + "description": "This name will be displayed in the URL.", + "factory": "Text line (String)", + "title": "Short name", + "type": "string" + }, + "language": { + "behavior": "plone.dublincore", + "default": "en", + "description": "", + "factory": "Choice", + "title": "Language", + "type": "string", + "vocabulary": { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.SupportedContentLanguages" + } + }, + "relatedItems": { + "additionalItems": true, + "behavior": "plone.relateditems", + "default": [], + "description": "", + "factory": "Relation List", + "items": { + "description": "", + "factory": "Relation Choice", + "title": "Related", + "type": "string", + "vocabulary": { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.Catalog" + } + }, + "title": "Related Items", + "type": "array", + "uniqueItems": true, + "widgetOptions": { + "pattern_options": { + "recentlyUsed": true + }, + "vocabulary": { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.Catalog" + } + } + }, + "rights": { + "behavior": "plone.dublincore", + "description": "Copyright statement or other rights information on this item.", + "factory": "Text", + "title": "Rights", + "type": "string", + "widget": "textarea" + }, + "subjects": { + "additionalItems": true, + "behavior": "plone.dublincore", + "description": "Tags are commonly used for ad-hoc organization of content.", + "factory": "Tuple", + "items": { + "description": "", + "factory": "Text line (String)", + "title": "", + "type": "string" + }, + "title": "Tags", + "type": "array", + "uniqueItems": true, + "widgetOptions": { + "vocabulary": { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.Keywords" + } + } + }, + "table_of_contents": { + "behavior": "plone.tableofcontents", + "description": "If selected, this will show a table of contents at the top of the page.", + "factory": "Yes/No", + "title": "Table of contents", + "type": "boolean" + }, + "text": { + "behavior": "plone.richtext", + "description": "", + "factory": "Rich Text", + "title": "Text", + "type": "string", + "widget": "richtext" + }, + "title": { + "behavior": "plone.dublincore", + "description": "", + "factory": "Text line (String)", + "title": "Title", + "type": "string" + }, + "versioning_enabled": { + "behavior": "plone.versioning", + "default": true, + "description": "Enable/disable versioning for this document.", + "factory": "Yes/No", + "title": "Versioning enabled", + "type": "boolean" } - } - }, - "table_of_contents": { - "behavior": "plone.tableofcontents", - "description": "If selected, this will show a table of contents at the top of the page.", - "factory": "Yes/No", - "title": "Table of contents", - "type": "boolean" - }, - "text": { - "behavior": "plone.richtext", - "description": "", - "factory": "Rich Text", - "title": "Text", - "type": "string", - "widget": "richtext" }, - "title": { - "behavior": "plone.dublincore", - "description": "", - "factory": "Text line (String)", - "title": "Title", - "type": "string" - }, - "versioning_enabled": { - "behavior": "plone.versioning", - "default": true, - "description": "Enable/disable versioning for this document.", - "factory": "Yes/No", - "title": "Versioning enabled", - "type": "boolean" - } - }, - "required": [ - "title", - "author_email" - ], - "title": "Page", - "type": "object" + "required": [ + "title", + "author_email" + ], + "title": "Page", + "type": "object" } diff --git a/src/plone/restapi/tests/http-examples/types_document_get_field.resp b/src/plone/restapi/tests/http-examples/types_document_get_field.resp index 8cc73ffa4c..c328ab6a4a 100644 --- a/src/plone/restapi/tests/http-examples/types_document_get_field.resp +++ b/src/plone/restapi/tests/http-examples/types_document_get_field.resp @@ -2,10 +2,10 @@ HTTP/1.1 200 OK Content-Type: application/json { - "behavior": "plone.dexterity.schema.generated.plone_0_Document", - "description": "Email of the author", - "factory": "Email", - "title": "Author email", - "type": "string", - "widget": "email" + "behavior": "plone.dexterity.schema.generated.plone_0_Document", + "description": "Email of the author", + "factory": "Email", + "title": "Author email", + "type": "string", + "widget": "email" } diff --git a/src/plone/restapi/tests/http-examples/types_document_get_fieldset.resp b/src/plone/restapi/tests/http-examples/types_document_get_fieldset.resp index 81cfcdafbc..fb0cbf474a 100644 --- a/src/plone/restapi/tests/http-examples/types_document_get_fieldset.resp +++ b/src/plone/restapi/tests/http-examples/types_document_get_fieldset.resp @@ -2,9 +2,9 @@ HTTP/1.1 200 OK Content-Type: application/json { - "behavior": "plone.dexterity.schema.generated", - "description": "Contact information", - "fields": [], - "id": "contact_info", - "title": "Contact Info" -} \ No newline at end of file + "behavior": "plone.dexterity.schema.generated", + "description": "Contact information", + "fields": [], + "id": "contact_info", + "title": "Contact Info" +} diff --git a/src/plone/restapi/tests/http-examples/types_document_patch_field.req b/src/plone/restapi/tests/http-examples/types_document_patch_field.req index c2d5bdd639..33860542bf 100644 --- a/src/plone/restapi/tests/http-examples/types_document_patch_field.req +++ b/src/plone/restapi/tests/http-examples/types_document_patch_field.req @@ -9,4 +9,4 @@ Content-Type: application/json "minLength": 10, "required": true, "title": "Author e-mail" -} \ No newline at end of file +} diff --git a/src/plone/restapi/tests/http-examples/types_document_patch_fieldset.req b/src/plone/restapi/tests/http-examples/types_document_patch_fieldset.req index 3d86e2ac4d..084d5a3e76 100644 --- a/src/plone/restapi/tests/http-examples/types_document_patch_fieldset.req +++ b/src/plone/restapi/tests/http-examples/types_document_patch_fieldset.req @@ -9,4 +9,4 @@ Content-Type: application/json "author_email" ], "title": "Contact information" -} \ No newline at end of file +} diff --git a/src/plone/restapi/tests/http-examples/types_document_patch_fieldsets.req b/src/plone/restapi/tests/http-examples/types_document_patch_fieldsets.req index 669cd53ed9..99ec7efe32 100644 --- a/src/plone/restapi/tests/http-examples/types_document_patch_fieldsets.req +++ b/src/plone/restapi/tests/http-examples/types_document_patch_fieldsets.req @@ -13,4 +13,4 @@ Content-Type: application/json "title": "Contact info" } ] -} \ No newline at end of file +} diff --git a/src/plone/restapi/tests/http-examples/types_document_patch_properites.req b/src/plone/restapi/tests/http-examples/types_document_patch_properites.req index 0792c6a3ff..10433bc2a3 100644 --- a/src/plone/restapi/tests/http-examples/types_document_patch_properites.req +++ b/src/plone/restapi/tests/http-examples/types_document_patch_properites.req @@ -11,4 +11,4 @@ Content-Type: application/json "minLength": 5 } } -} \ No newline at end of file +} diff --git a/src/plone/restapi/tests/http-examples/types_document_post_field.req b/src/plone/restapi/tests/http-examples/types_document_post_field.req index 9fa52bff6c..4d88f786f7 100644 --- a/src/plone/restapi/tests/http-examples/types_document_post_field.req +++ b/src/plone/restapi/tests/http-examples/types_document_post_field.req @@ -8,4 +8,4 @@ Content-Type: application/json "factory": "Email", "required": true, "title": "Author email" -} \ No newline at end of file +} diff --git a/src/plone/restapi/tests/http-examples/types_document_post_field.resp b/src/plone/restapi/tests/http-examples/types_document_post_field.resp index eaa3c9880c..7f142efe0e 100644 --- a/src/plone/restapi/tests/http-examples/types_document_post_field.resp +++ b/src/plone/restapi/tests/http-examples/types_document_post_field.resp @@ -2,10 +2,10 @@ HTTP/1.1 201 Created Content-Type: application/json { - "behavior": "plone.dexterity.schema.generated.plone_0_Document", - "description": "Email of the author", - "factory": "Email", - "title": "Author email", - "type": "string", - "widget": "email" + "behavior": "plone.dexterity.schema.generated.plone_0_Document", + "description": "Email of the author", + "factory": "Email", + "title": "Author email", + "type": "string", + "widget": "email" } diff --git a/src/plone/restapi/tests/http-examples/types_document_post_fieldset.req b/src/plone/restapi/tests/http-examples/types_document_post_fieldset.req index adf8ab9e45..fb28b656e1 100644 --- a/src/plone/restapi/tests/http-examples/types_document_post_fieldset.req +++ b/src/plone/restapi/tests/http-examples/types_document_post_fieldset.req @@ -7,4 +7,4 @@ Content-Type: application/json "description": "Contact information", "factory": "fieldset", "title": "Contact Info" -} \ No newline at end of file +} diff --git a/src/plone/restapi/tests/http-examples/types_document_post_fieldset.resp b/src/plone/restapi/tests/http-examples/types_document_post_fieldset.resp index 6a6aceaa78..1dde3d35f9 100644 --- a/src/plone/restapi/tests/http-examples/types_document_post_fieldset.resp +++ b/src/plone/restapi/tests/http-examples/types_document_post_fieldset.resp @@ -2,9 +2,9 @@ HTTP/1.1 201 Created Content-Type: application/json { - "behavior": "plone.dexterity.schema.generated", - "description": "Contact information", - "fields": [], - "id": "contact_info", - "title": "Contact Info" -} \ No newline at end of file + "behavior": "plone.dexterity.schema.generated", + "description": "Contact information", + "fields": [], + "id": "contact_info", + "title": "Contact Info" +} diff --git a/src/plone/restapi/tests/http-examples/unlock.resp b/src/plone/restapi/tests/http-examples/unlock.resp index 52852385e7..4d6986ed51 100644 --- a/src/plone/restapi/tests/http-examples/unlock.resp +++ b/src/plone/restapi/tests/http-examples/unlock.resp @@ -2,6 +2,6 @@ HTTP/1.1 200 OK Content-Type: application/json { - "locked": false, - "stealable": true -} \ No newline at end of file + "locked": false, + "stealable": true +} diff --git a/src/plone/restapi/tests/http-examples/unlock_force.req b/src/plone/restapi/tests/http-examples/unlock_force.req index a959689221..e71e276faf 100644 --- a/src/plone/restapi/tests/http-examples/unlock_force.req +++ b/src/plone/restapi/tests/http-examples/unlock_force.req @@ -5,4 +5,4 @@ Content-Type: application/json { "force": true -} \ No newline at end of file +} diff --git a/src/plone/restapi/tests/http-examples/unlock_force.resp b/src/plone/restapi/tests/http-examples/unlock_force.resp index 52852385e7..4d6986ed51 100644 --- a/src/plone/restapi/tests/http-examples/unlock_force.resp +++ b/src/plone/restapi/tests/http-examples/unlock_force.resp @@ -2,6 +2,6 @@ HTTP/1.1 200 OK Content-Type: application/json { - "locked": false, - "stealable": true -} \ No newline at end of file + "locked": false, + "stealable": true +} diff --git a/src/plone/restapi/tests/http-examples/users.resp b/src/plone/restapi/tests/http-examples/users.resp index e69cb93990..d78aa5009b 100644 --- a/src/plone/restapi/tests/http-examples/users.resp +++ b/src/plone/restapi/tests/http-examples/users.resp @@ -2,32 +2,32 @@ HTTP/1.1 200 OK Content-Type: application/json [ - { - "@id": "http://localhost:55001/plone/@users/admin", - "description": "This is an admin user", - "email": "admin@example.com", - "fullname": "Administrator", - "home_page": "http://www.example.com", - "id": "admin", - "location": "Berlin", - "portrait": null, - "roles": [ - "Manager" - ], - "username": "admin" - }, - { - "@id": "http://localhost:55001/plone/@users/test_user_1_", - "description": "This is a test user", - "email": "test@example.com", - "fullname": "Test User", - "home_page": "http://www.example.com", - "id": "test_user_1_", - "location": "Bonn", - "portrait": null, - "roles": [ - "Manager" - ], - "username": "test-user" - } -] \ No newline at end of file + { + "@id": "http://localhost:55001/plone/@users/admin", + "description": "This is an admin user", + "email": "admin@example.com", + "fullname": "Administrator", + "home_page": "http://www.example.com", + "id": "admin", + "location": "Berlin", + "portrait": null, + "roles": [ + "Manager" + ], + "username": "admin" + }, + { + "@id": "http://localhost:55001/plone/@users/test_user_1_", + "description": "This is a test user", + "email": "test@example.com", + "fullname": "Test User", + "home_page": "http://www.example.com", + "id": "test_user_1_", + "location": "Bonn", + "portrait": null, + "roles": [ + "Manager" + ], + "username": "test-user" + } +] diff --git a/src/plone/restapi/tests/http-examples/users_add.req b/src/plone/restapi/tests/http-examples/users_add.req index eab44415e5..6e237a250d 100644 --- a/src/plone/restapi/tests/http-examples/users_add.req +++ b/src/plone/restapi/tests/http-examples/users_add.req @@ -11,4 +11,4 @@ Content-Type: application/json "location": "Cambridge, MA", "sendPasswordReset": true, "username": "noamchomsky" -} \ No newline at end of file +} diff --git a/src/plone/restapi/tests/http-examples/users_add.resp b/src/plone/restapi/tests/http-examples/users_add.resp index d4fdd52fc1..493f79d0aa 100644 --- a/src/plone/restapi/tests/http-examples/users_add.resp +++ b/src/plone/restapi/tests/http-examples/users_add.resp @@ -3,16 +3,16 @@ Content-Type: application/json Location: http://localhost:55001/plone/@users/noamchomsky { - "@id": "http://localhost:55001/plone/@users/noamchomsky", - "description": "Professor of Linguistics", - "email": "noam.chomsky@example.com", - "fullname": "Noam Avram Chomsky", - "home_page": "web.mit.edu/chomsky", - "id": "noamchomsky", - "location": "Cambridge, MA", - "portrait": null, - "roles": [ - "Member" - ], - "username": "noamchomsky" -} \ No newline at end of file + "@id": "http://localhost:55001/plone/@users/noamchomsky", + "description": "Professor of Linguistics", + "email": "noam.chomsky@example.com", + "fullname": "Noam Avram Chomsky", + "home_page": "web.mit.edu/chomsky", + "id": "noamchomsky", + "location": "Cambridge, MA", + "portrait": null, + "roles": [ + "Member" + ], + "username": "noamchomsky" +} diff --git a/src/plone/restapi/tests/http-examples/users_anonymous.resp b/src/plone/restapi/tests/http-examples/users_anonymous.resp index c9711788b9..f858d607a9 100644 --- a/src/plone/restapi/tests/http-examples/users_anonymous.resp +++ b/src/plone/restapi/tests/http-examples/users_anonymous.resp @@ -1,4 +1,4 @@ HTTP/1.1 401 Unauthorized Content-Type: application/json -null \ No newline at end of file +null diff --git a/src/plone/restapi/tests/http-examples/users_anonymous_get.resp b/src/plone/restapi/tests/http-examples/users_anonymous_get.resp index c9711788b9..f858d607a9 100644 --- a/src/plone/restapi/tests/http-examples/users_anonymous_get.resp +++ b/src/plone/restapi/tests/http-examples/users_anonymous_get.resp @@ -1,4 +1,4 @@ HTTP/1.1 401 Unauthorized Content-Type: application/json -null \ No newline at end of file +null diff --git a/src/plone/restapi/tests/http-examples/users_authorized_get.resp b/src/plone/restapi/tests/http-examples/users_authorized_get.resp index 80a85227b4..0a55e965bf 100644 --- a/src/plone/restapi/tests/http-examples/users_authorized_get.resp +++ b/src/plone/restapi/tests/http-examples/users_authorized_get.resp @@ -2,16 +2,16 @@ HTTP/1.1 200 OK Content-Type: application/json { - "@id": "http://localhost:55001/plone/@users/noam", - "description": "Professor of Linguistics", - "email": "noam.chomsky@example.com", - "fullname": "Noam Avram Chomsky", - "home_page": "web.mit.edu/chomsky", - "id": "noam", - "location": "Cambridge, MA", - "portrait": null, - "roles": [ - "Member" - ], - "username": "noam" -} \ No newline at end of file + "@id": "http://localhost:55001/plone/@users/noam", + "description": "Professor of Linguistics", + "email": "noam.chomsky@example.com", + "fullname": "Noam Avram Chomsky", + "home_page": "web.mit.edu/chomsky", + "id": "noam", + "location": "Cambridge, MA", + "portrait": null, + "roles": [ + "Member" + ], + "username": "noam" +} diff --git a/src/plone/restapi/tests/http-examples/users_created.req b/src/plone/restapi/tests/http-examples/users_created.req index 79566fb123..0c69a00cb1 100644 --- a/src/plone/restapi/tests/http-examples/users_created.req +++ b/src/plone/restapi/tests/http-examples/users_created.req @@ -14,4 +14,4 @@ Content-Type: application/json "Contributor" ], "username": "noamchomsky" -} \ No newline at end of file +} diff --git a/src/plone/restapi/tests/http-examples/users_created.resp b/src/plone/restapi/tests/http-examples/users_created.resp index beaeff44be..c5e39792c2 100644 --- a/src/plone/restapi/tests/http-examples/users_created.resp +++ b/src/plone/restapi/tests/http-examples/users_created.resp @@ -3,16 +3,16 @@ Content-Type: application/json Location: http://localhost:55001/plone/@users/noamchomsky { - "@id": "http://localhost:55001/plone/@users/noamchomsky", - "description": "Professor of Linguistics", - "email": "noam.chomsky@example.com", - "fullname": "Noam Avram Chomsky", - "home_page": "web.mit.edu/chomsky", - "id": "noamchomsky", - "location": "Cambridge, MA", - "portrait": null, - "roles": [ - "Contributor" - ], - "username": "noamchomsky" -} \ No newline at end of file + "@id": "http://localhost:55001/plone/@users/noamchomsky", + "description": "Professor of Linguistics", + "email": "noam.chomsky@example.com", + "fullname": "Noam Avram Chomsky", + "home_page": "web.mit.edu/chomsky", + "id": "noamchomsky", + "location": "Cambridge, MA", + "portrait": null, + "roles": [ + "Contributor" + ], + "username": "noamchomsky" +} diff --git a/src/plone/restapi/tests/http-examples/users_filtered_by_username.resp b/src/plone/restapi/tests/http-examples/users_filtered_by_username.resp index 54591ca6c1..50bdf1e38c 100644 --- a/src/plone/restapi/tests/http-examples/users_filtered_by_username.resp +++ b/src/plone/restapi/tests/http-examples/users_filtered_by_username.resp @@ -2,18 +2,18 @@ HTTP/1.1 200 OK Content-Type: application/json [ - { - "@id": "http://localhost:55001/plone/@users/noam", - "description": "Professor of Linguistics", - "email": "noam.chomsky@example.com", - "fullname": "Noam Avram Chomsky", - "home_page": "web.mit.edu/chomsky", - "id": "noam", - "location": "Cambridge, MA", - "portrait": null, - "roles": [ - "Member" - ], - "username": "noam" - } -] \ No newline at end of file + { + "@id": "http://localhost:55001/plone/@users/noam", + "description": "Professor of Linguistics", + "email": "noam.chomsky@example.com", + "fullname": "Noam Avram Chomsky", + "home_page": "web.mit.edu/chomsky", + "id": "noam", + "location": "Cambridge, MA", + "portrait": null, + "roles": [ + "Member" + ], + "username": "noam" + } +] diff --git a/src/plone/restapi/tests/http-examples/users_get.resp b/src/plone/restapi/tests/http-examples/users_get.resp index 80a85227b4..0a55e965bf 100644 --- a/src/plone/restapi/tests/http-examples/users_get.resp +++ b/src/plone/restapi/tests/http-examples/users_get.resp @@ -2,16 +2,16 @@ HTTP/1.1 200 OK Content-Type: application/json { - "@id": "http://localhost:55001/plone/@users/noam", - "description": "Professor of Linguistics", - "email": "noam.chomsky@example.com", - "fullname": "Noam Avram Chomsky", - "home_page": "web.mit.edu/chomsky", - "id": "noam", - "location": "Cambridge, MA", - "portrait": null, - "roles": [ - "Member" - ], - "username": "noam" -} \ No newline at end of file + "@id": "http://localhost:55001/plone/@users/noam", + "description": "Professor of Linguistics", + "email": "noam.chomsky@example.com", + "fullname": "Noam Avram Chomsky", + "home_page": "web.mit.edu/chomsky", + "id": "noam", + "location": "Cambridge, MA", + "portrait": null, + "roles": [ + "Member" + ], + "username": "noam" +} diff --git a/src/plone/restapi/tests/http-examples/users_unauthorized.resp b/src/plone/restapi/tests/http-examples/users_unauthorized.resp index c9711788b9..f858d607a9 100644 --- a/src/plone/restapi/tests/http-examples/users_unauthorized.resp +++ b/src/plone/restapi/tests/http-examples/users_unauthorized.resp @@ -1,4 +1,4 @@ HTTP/1.1 401 Unauthorized Content-Type: application/json -null \ No newline at end of file +null diff --git a/src/plone/restapi/tests/http-examples/users_unauthorized_get.resp b/src/plone/restapi/tests/http-examples/users_unauthorized_get.resp index c9711788b9..f858d607a9 100644 --- a/src/plone/restapi/tests/http-examples/users_unauthorized_get.resp +++ b/src/plone/restapi/tests/http-examples/users_unauthorized_get.resp @@ -1,4 +1,4 @@ HTTP/1.1 401 Unauthorized Content-Type: application/json -null \ No newline at end of file +null diff --git a/src/plone/restapi/tests/http-examples/users_update.req b/src/plone/restapi/tests/http-examples/users_update.req index a7f6abf90e..e512e9ca5f 100644 --- a/src/plone/restapi/tests/http-examples/users_update.req +++ b/src/plone/restapi/tests/http-examples/users_update.req @@ -8,4 +8,4 @@ Content-Type: application/json "roles": { "Contributor": false } -} \ No newline at end of file +} diff --git a/src/plone/restapi/tests/http-examples/users_update_portrait.req b/src/plone/restapi/tests/http-examples/users_update_portrait.req index 1e121b5115..ca26fdb6f2 100644 --- a/src/plone/restapi/tests/http-examples/users_update_portrait.req +++ b/src/plone/restapi/tests/http-examples/users_update_portrait.req @@ -10,4 +10,4 @@ Content-Type: application/json "encoding": "base64", "filename": "image.gif" } -} \ No newline at end of file +} diff --git a/src/plone/restapi/tests/http-examples/users_update_portrait_get.req b/src/plone/restapi/tests/http-examples/users_update_portrait_get.req index ff87c06925..3c29d03487 100644 --- a/src/plone/restapi/tests/http-examples/users_update_portrait_get.req +++ b/src/plone/restapi/tests/http-examples/users_update_portrait_get.req @@ -10,4 +10,4 @@ Content-Type: application/json "encoding": "base64", "filename": "image.gif" } -} \ No newline at end of file +} diff --git a/src/plone/restapi/tests/http-examples/users_update_portrait_get.resp b/src/plone/restapi/tests/http-examples/users_update_portrait_get.resp index e159773a1f..fde27e2606 100644 --- a/src/plone/restapi/tests/http-examples/users_update_portrait_get.resp +++ b/src/plone/restapi/tests/http-examples/users_update_portrait_get.resp @@ -2,16 +2,16 @@ HTTP/1.1 200 OK Content-Type: application/json { - "@id": "http://localhost:55001/plone/@users/noam", - "description": null, - "email": "noam.chomsky@example.com", - "fullname": null, - "home_page": null, - "id": "noam", - "location": null, - "portrait": "http://localhost:55001/plone/portal_memberdata/portraits/noam", - "roles": [ - "Member" - ], - "username": "noam" -} \ No newline at end of file + "@id": "http://localhost:55001/plone/@users/noam", + "description": null, + "email": "noam.chomsky@example.com", + "fullname": null, + "home_page": null, + "id": "noam", + "location": null, + "portrait": "http://localhost:55001/plone/portal_memberdata/portraits/noam", + "roles": [ + "Member" + ], + "username": "noam" +} diff --git a/src/plone/restapi/tests/http-examples/users_update_portrait_scale.req b/src/plone/restapi/tests/http-examples/users_update_portrait_scale.req index d214c29807..841a105b2e 100644 --- a/src/plone/restapi/tests/http-examples/users_update_portrait_scale.req +++ b/src/plone/restapi/tests/http-examples/users_update_portrait_scale.req @@ -11,4 +11,4 @@ Content-Type: application/json "filename": "image.gif", "scale": true } -} \ No newline at end of file +} diff --git a/src/plone/restapi/tests/http-examples/vocabularies.resp b/src/plone/restapi/tests/http-examples/vocabularies.resp index 06af772347..81b36923a2 100644 --- a/src/plone/restapi/tests/http-examples/vocabularies.resp +++ b/src/plone/restapi/tests/http-examples/vocabularies.resp @@ -2,204 +2,204 @@ HTTP/1.1 200 OK Content-Type: application/json [ - { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.AvailableContentLanguages", - "title": "plone.app.vocabularies.AvailableContentLanguages" - }, - { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.SupportedContentLanguages", - "title": "plone.app.vocabularies.SupportedContentLanguages" - }, - { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.Roles", - "title": "plone.app.vocabularies.Roles" - }, - { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.Permissions", - "title": "plone.app.vocabularies.Permissions" - }, - { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.AllowedContentTypes", - "title": "plone.app.vocabularies.AllowedContentTypes" - }, - { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.AllowableContentTypes", - "title": "plone.app.vocabularies.AllowableContentTypes" - }, - { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.PortalTypes", - "title": "plone.app.vocabularies.PortalTypes" - }, - { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.ReallyUserFriendlyTypes", - "title": "plone.app.vocabularies.ReallyUserFriendlyTypes" - }, - { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.UserFriendlyTypes", - "title": "plone.app.vocabularies.UserFriendlyTypes" - }, - { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.Skins", - "title": "plone.app.vocabularies.Skins" - }, - { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.Workflows", - "title": "plone.app.vocabularies.Workflows" - }, - { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.WorkflowStates", - "title": "plone.app.vocabularies.WorkflowStates" - }, - { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.WorkflowTransitions", - "title": "plone.app.vocabularies.WorkflowTransitions" - }, - { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.AvailableEditors", - "title": "plone.app.vocabularies.AvailableEditors" - }, - { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.Keywords", - "title": "plone.app.vocabularies.Keywords" - }, - { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.SyndicationFeedTypes", - "title": "plone.app.vocabularies.SyndicationFeedTypes" - }, - { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.SyndicatableFeedItems", - "title": "plone.app.vocabularies.SyndicatableFeedItems" - }, - { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.Users", - "title": "plone.app.vocabularies.Users" - }, - { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.Groups", - "title": "plone.app.vocabularies.Groups" - }, - { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.Principals", - "title": "plone.app.vocabularies.Principals" - }, - { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.Catalog", - "title": "plone.app.vocabularies.Catalog" - }, - { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.Actions", - "title": "plone.app.vocabularies.Actions" - }, - { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.PortalActionCategories", - "title": "plone.app.vocabularies.PortalActionCategories" - }, - { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.Timezones", - "title": "plone.app.vocabularies.Timezones" - }, - { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.CommonTimezones", - "title": "plone.app.vocabularies.CommonTimezones" - }, - { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.AvailableTimezones", - "title": "plone.app.vocabularies.AvailableTimezones" - }, - { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.Weekdays", - "title": "plone.app.vocabularies.Weekdays" - }, - { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.WeekdaysAbbr", - "title": "plone.app.vocabularies.WeekdaysAbbr" - }, - { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.WeekdaysShort", - "title": "plone.app.vocabularies.WeekdaysShort" - }, - { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.Month", - "title": "plone.app.vocabularies.Month" - }, - { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.MonthAbbr", - "title": "plone.app.vocabularies.MonthAbbr" - }, - { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.ImagesScales", - "title": "plone.app.vocabularies.ImagesScales" - }, - { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.MetadataFields", - "title": "plone.app.vocabularies.MetadataFields" - }, - { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.content.ValidAddableTypes", - "title": "plone.app.content.ValidAddableTypes" - }, - { - "@id": "http://localhost:55001/plone/@vocabularies/plone.contentrules.events", - "title": "plone.contentrules.events" - }, - { - "@id": "http://localhost:55001/plone/@vocabularies/Behaviors", - "title": "Behaviors" - }, - { - "@id": "http://localhost:55001/plone/@vocabularies/Fields", - "title": "Fields" - }, - { - "@id": "http://localhost:55001/plone/@vocabularies/plone.schemaeditor.VocabulariesVocabulary", - "title": "plone.schemaeditor.VocabulariesVocabulary" - }, - { - "@id": "http://localhost:55001/plone/@vocabularies/plone.formwidget.relations.cmfcontentsearch", - "title": "plone.formwidget.relations.cmfcontentsearch" - }, - { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.event.SynchronizationStrategies", - "title": "plone.app.event.SynchronizationStrategies" - }, - { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.contenttypes.metadatafields", - "title": "plone.app.contenttypes.metadatafields" - }, - { - "@id": "http://localhost:55001/plone/@vocabularies/Interfaces", - "title": "Interfaces" - }, - { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.discussion.vocabularies.CaptchaVocabulary", - "title": "plone.app.discussion.vocabularies.CaptchaVocabulary" - }, - { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.discussion.vocabularies.TextTransformVocabulary", - "title": "plone.app.discussion.vocabularies.TextTransformVocabulary" - }, - { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.users.user_registration_fields", - "title": "plone.app.users.user_registration_fields" - }, - { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.users.group_ids", - "title": "plone.app.users.group_ids" - }, - { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.multilingual.vocabularies.AllContentLanguageVocabulary", - "title": "plone.app.multilingual.vocabularies.AllContentLanguageVocabulary" - }, - { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.multilingual.vocabularies.AllAvailableLanguageVocabulary", - "title": "plone.app.multilingual.vocabularies.AllAvailableLanguageVocabulary" - }, - { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.multilingual.RootCatalog", - "title": "plone.app.multilingual.RootCatalog" - }, - { - "@id": "http://localhost:55001/plone/@vocabularies/plone.restapi.testing.context_vocabulary", - "title": "plone.restapi.testing.context_vocabulary" - } -] \ No newline at end of file + { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.AvailableContentLanguages", + "title": "plone.app.vocabularies.AvailableContentLanguages" + }, + { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.SupportedContentLanguages", + "title": "plone.app.vocabularies.SupportedContentLanguages" + }, + { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.Roles", + "title": "plone.app.vocabularies.Roles" + }, + { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.Permissions", + "title": "plone.app.vocabularies.Permissions" + }, + { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.AllowedContentTypes", + "title": "plone.app.vocabularies.AllowedContentTypes" + }, + { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.AllowableContentTypes", + "title": "plone.app.vocabularies.AllowableContentTypes" + }, + { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.PortalTypes", + "title": "plone.app.vocabularies.PortalTypes" + }, + { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.ReallyUserFriendlyTypes", + "title": "plone.app.vocabularies.ReallyUserFriendlyTypes" + }, + { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.UserFriendlyTypes", + "title": "plone.app.vocabularies.UserFriendlyTypes" + }, + { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.Skins", + "title": "plone.app.vocabularies.Skins" + }, + { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.Workflows", + "title": "plone.app.vocabularies.Workflows" + }, + { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.WorkflowStates", + "title": "plone.app.vocabularies.WorkflowStates" + }, + { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.WorkflowTransitions", + "title": "plone.app.vocabularies.WorkflowTransitions" + }, + { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.AvailableEditors", + "title": "plone.app.vocabularies.AvailableEditors" + }, + { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.Keywords", + "title": "plone.app.vocabularies.Keywords" + }, + { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.SyndicationFeedTypes", + "title": "plone.app.vocabularies.SyndicationFeedTypes" + }, + { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.SyndicatableFeedItems", + "title": "plone.app.vocabularies.SyndicatableFeedItems" + }, + { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.Users", + "title": "plone.app.vocabularies.Users" + }, + { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.Groups", + "title": "plone.app.vocabularies.Groups" + }, + { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.Principals", + "title": "plone.app.vocabularies.Principals" + }, + { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.Catalog", + "title": "plone.app.vocabularies.Catalog" + }, + { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.Actions", + "title": "plone.app.vocabularies.Actions" + }, + { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.PortalActionCategories", + "title": "plone.app.vocabularies.PortalActionCategories" + }, + { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.Timezones", + "title": "plone.app.vocabularies.Timezones" + }, + { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.CommonTimezones", + "title": "plone.app.vocabularies.CommonTimezones" + }, + { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.AvailableTimezones", + "title": "plone.app.vocabularies.AvailableTimezones" + }, + { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.Weekdays", + "title": "plone.app.vocabularies.Weekdays" + }, + { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.WeekdaysAbbr", + "title": "plone.app.vocabularies.WeekdaysAbbr" + }, + { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.WeekdaysShort", + "title": "plone.app.vocabularies.WeekdaysShort" + }, + { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.Month", + "title": "plone.app.vocabularies.Month" + }, + { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.MonthAbbr", + "title": "plone.app.vocabularies.MonthAbbr" + }, + { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.ImagesScales", + "title": "plone.app.vocabularies.ImagesScales" + }, + { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.MetadataFields", + "title": "plone.app.vocabularies.MetadataFields" + }, + { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.content.ValidAddableTypes", + "title": "plone.app.content.ValidAddableTypes" + }, + { + "@id": "http://localhost:55001/plone/@vocabularies/plone.contentrules.events", + "title": "plone.contentrules.events" + }, + { + "@id": "http://localhost:55001/plone/@vocabularies/Behaviors", + "title": "Behaviors" + }, + { + "@id": "http://localhost:55001/plone/@vocabularies/Fields", + "title": "Fields" + }, + { + "@id": "http://localhost:55001/plone/@vocabularies/plone.schemaeditor.VocabulariesVocabulary", + "title": "plone.schemaeditor.VocabulariesVocabulary" + }, + { + "@id": "http://localhost:55001/plone/@vocabularies/plone.formwidget.relations.cmfcontentsearch", + "title": "plone.formwidget.relations.cmfcontentsearch" + }, + { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.event.SynchronizationStrategies", + "title": "plone.app.event.SynchronizationStrategies" + }, + { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.contenttypes.metadatafields", + "title": "plone.app.contenttypes.metadatafields" + }, + { + "@id": "http://localhost:55001/plone/@vocabularies/Interfaces", + "title": "Interfaces" + }, + { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.discussion.vocabularies.CaptchaVocabulary", + "title": "plone.app.discussion.vocabularies.CaptchaVocabulary" + }, + { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.discussion.vocabularies.TextTransformVocabulary", + "title": "plone.app.discussion.vocabularies.TextTransformVocabulary" + }, + { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.users.user_registration_fields", + "title": "plone.app.users.user_registration_fields" + }, + { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.users.group_ids", + "title": "plone.app.users.group_ids" + }, + { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.multilingual.vocabularies.AllContentLanguageVocabulary", + "title": "plone.app.multilingual.vocabularies.AllContentLanguageVocabulary" + }, + { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.multilingual.vocabularies.AllAvailableLanguageVocabulary", + "title": "plone.app.multilingual.vocabularies.AllAvailableLanguageVocabulary" + }, + { + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.multilingual.RootCatalog", + "title": "plone.app.multilingual.RootCatalog" + }, + { + "@id": "http://localhost:55001/plone/@vocabularies/plone.restapi.testing.context_vocabulary", + "title": "plone.restapi.testing.context_vocabulary" + } +] diff --git a/src/plone/restapi/tests/http-examples/vocabularies_get.resp b/src/plone/restapi/tests/http-examples/vocabularies_get.resp index 3720bfcc44..d915b5b7ec 100644 --- a/src/plone/restapi/tests/http-examples/vocabularies_get.resp +++ b/src/plone/restapi/tests/http-examples/vocabularies_get.resp @@ -2,56 +2,56 @@ HTTP/1.1 200 OK Content-Type: application/json { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.ReallyUserFriendlyTypes", - "items": [ - { - "title": "Collection", - "token": "Collection" - }, - { - "title": "Comment", - "token": "Discussion Item" - }, - { - "title": "DX Test Document", - "token": "DXTestDocument" - }, - { - "title": "Event", - "token": "Event" - }, - { - "title": "File", - "token": "File" - }, - { - "title": "Folder", - "token": "Folder" - }, - { - "title": "Image", - "token": "Image" - }, - { - "title": "Link", - "token": "Link" - }, - { - "title": "News Item", - "token": "News Item" - }, - { - "title": "Page", - "token": "Document" - }, - { - "title": "Test Document", - "token": "ATTestDocument" - }, - { - "title": "Test Folder", - "token": "ATTestFolder" - } - ], - "items_total": 12 -} \ No newline at end of file + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.ReallyUserFriendlyTypes", + "items": [ + { + "title": "Collection", + "token": "Collection" + }, + { + "title": "Comment", + "token": "Discussion Item" + }, + { + "title": "DX Test Document", + "token": "DXTestDocument" + }, + { + "title": "Event", + "token": "Event" + }, + { + "title": "File", + "token": "File" + }, + { + "title": "Folder", + "token": "Folder" + }, + { + "title": "Image", + "token": "Image" + }, + { + "title": "Link", + "token": "Link" + }, + { + "title": "News Item", + "token": "News Item" + }, + { + "title": "Page", + "token": "Document" + }, + { + "title": "Test Document", + "token": "ATTestDocument" + }, + { + "title": "Test Folder", + "token": "ATTestFolder" + } + ], + "items_total": 12 +} diff --git a/src/plone/restapi/tests/http-examples/vocabularies_get_fields.resp b/src/plone/restapi/tests/http-examples/vocabularies_get_fields.resp index ea6d5b0238..e7d489033b 100644 --- a/src/plone/restapi/tests/http-examples/vocabularies_get_fields.resp +++ b/src/plone/restapi/tests/http-examples/vocabularies_get_fields.resp @@ -2,88 +2,88 @@ HTTP/1.1 200 OK Content-Type: application/json { - "@id": "http://localhost:55001/plone/@vocabularies/Fields", - "items": [ - { - "title": "Choice", - "token": "label_choice_field" - }, - { - "title": "Date", - "token": "label_date_field" - }, - { - "title": "Date/Time", - "token": "label_datetime_field" - }, - { - "title": "Email", - "token": "Email" - }, - { - "title": "Email", - "token": "label_email" - }, - { - "title": "File Upload", - "token": "File Upload" - }, - { - "title": "Floating-point number", - "token": "label_float_field" - }, - { - "title": "Full Name", - "token": "label_full_name" - }, - { - "title": "Image", - "token": "Image" - }, - { - "title": "Integer", - "token": "label_integer_field" - }, - { - "title": "JSONField", - "token": "JSONField" - }, - { - "title": "Multiple Choice", - "token": "label_multi_choice_field" - }, - { - "title": "Password", - "token": "label_password_field" - }, - { - "title": "Relation Choice", - "token": "Relation Choice" - }, - { - "title": "Relation List", - "token": "Relation List" - }, - { - "title": "Rich Text", - "token": "Rich Text" - }, - { - "title": "Text", - "token": "label_text_field" - }, - { - "title": "Text line (String)", - "token": "label_textline_field" - }, - { - "title": "URL", - "token": "URL" - }, - { - "title": "Yes/No", - "token": "label_boolean_field" - } - ], - "items_total": 20 -} \ No newline at end of file + "@id": "http://localhost:55001/plone/@vocabularies/Fields", + "items": [ + { + "title": "Choice", + "token": "label_choice_field" + }, + { + "title": "Date", + "token": "label_date_field" + }, + { + "title": "Date/Time", + "token": "label_datetime_field" + }, + { + "title": "Email", + "token": "Email" + }, + { + "title": "Email", + "token": "label_email" + }, + { + "title": "File Upload", + "token": "File Upload" + }, + { + "title": "Floating-point number", + "token": "label_float_field" + }, + { + "title": "Full Name", + "token": "label_full_name" + }, + { + "title": "Image", + "token": "Image" + }, + { + "title": "Integer", + "token": "label_integer_field" + }, + { + "title": "JSONField", + "token": "JSONField" + }, + { + "title": "Multiple Choice", + "token": "label_multi_choice_field" + }, + { + "title": "Password", + "token": "label_password_field" + }, + { + "title": "Relation Choice", + "token": "Relation Choice" + }, + { + "title": "Relation List", + "token": "Relation List" + }, + { + "title": "Rich Text", + "token": "Rich Text" + }, + { + "title": "Text", + "token": "label_text_field" + }, + { + "title": "Text line (String)", + "token": "label_textline_field" + }, + { + "title": "URL", + "token": "URL" + }, + { + "title": "Yes/No", + "token": "label_boolean_field" + } + ], + "items_total": 20 +} diff --git a/src/plone/restapi/tests/http-examples/vocabularies_get_filtered_by_title.resp b/src/plone/restapi/tests/http-examples/vocabularies_get_filtered_by_title.resp index 52ec2577c8..9ec5f0c609 100644 --- a/src/plone/restapi/tests/http-examples/vocabularies_get_filtered_by_title.resp +++ b/src/plone/restapi/tests/http-examples/vocabularies_get_filtered_by_title.resp @@ -2,16 +2,16 @@ HTTP/1.1 200 OK Content-Type: application/json { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.ReallyUserFriendlyTypes?title=doc", - "items": [ - { - "title": "DX Test Document", - "token": "DXTestDocument" - }, - { - "title": "Test Document", - "token": "ATTestDocument" - } - ], - "items_total": 2 -} \ No newline at end of file + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.ReallyUserFriendlyTypes?title=doc", + "items": [ + { + "title": "DX Test Document", + "token": "DXTestDocument" + }, + { + "title": "Test Document", + "token": "ATTestDocument" + } + ], + "items_total": 2 +} diff --git a/src/plone/restapi/tests/http-examples/vocabularies_get_filtered_by_token.resp b/src/plone/restapi/tests/http-examples/vocabularies_get_filtered_by_token.resp index a46e062c5a..4bf67159e1 100644 --- a/src/plone/restapi/tests/http-examples/vocabularies_get_filtered_by_token.resp +++ b/src/plone/restapi/tests/http-examples/vocabularies_get_filtered_by_token.resp @@ -2,12 +2,12 @@ HTTP/1.1 200 OK Content-Type: application/json { - "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.ReallyUserFriendlyTypes?token=Document", - "items": [ - { - "title": "Page", - "token": "Document" - } - ], - "items_total": 1 -} \ No newline at end of file + "@id": "http://localhost:55001/plone/@vocabularies/plone.app.vocabularies.ReallyUserFriendlyTypes?token=Document", + "items": [ + { + "title": "Page", + "token": "Document" + } + ], + "items_total": 1 +} diff --git a/src/plone/restapi/tests/http-examples/workflow_get.resp b/src/plone/restapi/tests/http-examples/workflow_get.resp index 08d043166d..b973ab070d 100644 --- a/src/plone/restapi/tests/http-examples/workflow_get.resp +++ b/src/plone/restapi/tests/http-examples/workflow_get.resp @@ -2,25 +2,25 @@ HTTP/1.1 200 OK Content-Type: application/json { - "@id": "http://localhost:55001/plone/front-page/@workflow", - "history": [ - { - "action": null, - "actor": "test_user_1_", - "comments": "", - "review_state": "private", - "time": "1995-07-31T17:30:00", - "title": "Private" - } - ], - "transitions": [ - { - "@id": "http://localhost:55001/plone/front-page/@workflow/publish", - "title": "Publish" - }, - { - "@id": "http://localhost:55001/plone/front-page/@workflow/submit", - "title": "Submit for publication" - } - ] -} \ No newline at end of file + "@id": "http://localhost:55001/plone/front-page/@workflow", + "history": [ + { + "action": null, + "actor": "test_user_1_", + "comments": "", + "review_state": "private", + "time": "1995-07-31T17:30:00", + "title": "Private" + } + ], + "transitions": [ + { + "@id": "http://localhost:55001/plone/front-page/@workflow/publish", + "title": "Publish" + }, + { + "@id": "http://localhost:55001/plone/front-page/@workflow/submit", + "title": "Submit for publication" + } + ] +} diff --git a/src/plone/restapi/tests/http-examples/workflow_post.resp b/src/plone/restapi/tests/http-examples/workflow_post.resp index 8d123d2a02..2d41b826c7 100644 --- a/src/plone/restapi/tests/http-examples/workflow_post.resp +++ b/src/plone/restapi/tests/http-examples/workflow_post.resp @@ -2,10 +2,10 @@ HTTP/1.1 200 OK Content-Type: application/json { - "action": "publish", - "actor": "admin", - "comments": "", - "review_state": "published", - "time": "1995-07-31T18:30:00", - "title": "Published with accent \u00e9" -} \ No newline at end of file + "action": "publish", + "actor": "admin", + "comments": "", + "review_state": "published", + "time": "1995-07-31T18:30:00", + "title": "Published with accent \u00e9" +} diff --git a/src/plone/restapi/tests/http-examples/workflow_post_with_body.req b/src/plone/restapi/tests/http-examples/workflow_post_with_body.req index ecab92e7de..e800258de2 100644 --- a/src/plone/restapi/tests/http-examples/workflow_post_with_body.req +++ b/src/plone/restapi/tests/http-examples/workflow_post_with_body.req @@ -8,4 +8,4 @@ Content-Type: application/json "effective": "2018-01-21T08:00:00", "expires": "2019-01-21T08:00:00", "include_children": true -} \ No newline at end of file +} diff --git a/src/plone/restapi/tests/http-examples/workflow_post_with_body.resp b/src/plone/restapi/tests/http-examples/workflow_post_with_body.resp index cfc56945ac..480352c9a3 100644 --- a/src/plone/restapi/tests/http-examples/workflow_post_with_body.resp +++ b/src/plone/restapi/tests/http-examples/workflow_post_with_body.resp @@ -2,10 +2,10 @@ HTTP/1.1 200 OK Content-Type: application/json { - "action": "publish", - "actor": "admin", - "comments": "Publishing my folder...", - "review_state": "published", - "time": "1995-07-31T18:30:00", - "title": "Published with accent \u00e9" -} \ No newline at end of file + "action": "publish", + "actor": "admin", + "comments": "Publishing my folder...", + "review_state": "published", + "time": "1995-07-31T18:30:00", + "title": "Published with accent \u00e9" +} From b6bc52514069679b735ecbac9b78261d602e8dfd Mon Sep 17 00:00:00 2001 From: Maurits van Rees Date: Mon, 6 Sep 2021 11:26:05 +0200 Subject: [PATCH 08/12] Add news snippet. --- news/1213.bugfix | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 news/1213.bugfix diff --git a/news/1213.bugfix b/news/1213.bugfix new file mode 100644 index 0000000000..d601934e03 --- /dev/null +++ b/news/1213.bugfix @@ -0,0 +1,3 @@ +Fix testing of a checkout instead of a released package. +Normalize the http-examples. +[maurits] From 30d39ff17c00cc6b45a9174343b2757a1fcdd2ce Mon Sep 17 00:00:00 2001 From: Maurits van Rees Date: Tue, 14 Sep 2021 10:27:53 +0200 Subject: [PATCH 09/12] No longer hardcode ZSERVER_PORT to 55001 in tests. This is no longer needed, since we update normalize the http-examples output in test_documentation.py. Also, without hardcoded port, it becomes possible to introduce tox and run it in parallel, if we want. --- base.cfg | 1 - 1 file changed, 1 deletion(-) diff --git a/base.cfg b/base.cfg index c516bfef48..846b059b83 100644 --- a/base.cfg +++ b/base.cfg @@ -74,7 +74,6 @@ initialization = # necessary to explicitly call time.tzset(). import time time.tzset() - os.environ['ZSERVER_PORT'] = '55001' defaults = ['-s', 'plone.restapi', '--auto-color', '--auto-progress'] [coverage] From 45fd7aa4866f7f5449981287553e00844f1fbeef Mon Sep 17 00:00:00 2001 From: Maurits van Rees Date: Tue, 14 Sep 2021 10:33:40 +0200 Subject: [PATCH 10/12] http-examples: normalize unstable behavior name to look like the new expected name. Uglier, but closer to reality. --- src/plone/restapi/tests/http-examples/types_document.resp | 2 +- .../tests/http-examples/types_document_get_field.resp | 2 +- .../tests/http-examples/types_document_post_field.resp | 2 +- .../restapi/tests/http-examples/types_document_put.req | 2 +- src/plone/restapi/tests/test_documentation.py | 6 ++++-- 5 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/plone/restapi/tests/http-examples/types_document.resp b/src/plone/restapi/tests/http-examples/types_document.resp index 36fbd264a2..ddb61a6459 100644 --- a/src/plone/restapi/tests/http-examples/types_document.resp +++ b/src/plone/restapi/tests/http-examples/types_document.resp @@ -97,7 +97,7 @@ Content-Type: application/json+schema } }, "author_email": { - "behavior": "plone.dexterity.schema.generated.plone_0_Document", + "behavior": "plone.dexterity.schema.generated.plone_5_1234567890_2_123456_0_Document", "description": "Email of the author", "factory": "Email", "title": "Author email", diff --git a/src/plone/restapi/tests/http-examples/types_document_get_field.resp b/src/plone/restapi/tests/http-examples/types_document_get_field.resp index c328ab6a4a..de919785e6 100644 --- a/src/plone/restapi/tests/http-examples/types_document_get_field.resp +++ b/src/plone/restapi/tests/http-examples/types_document_get_field.resp @@ -2,7 +2,7 @@ HTTP/1.1 200 OK Content-Type: application/json { - "behavior": "plone.dexterity.schema.generated.plone_0_Document", + "behavior": "plone.dexterity.schema.generated.plone_5_1234567890_2_123456_0_Document", "description": "Email of the author", "factory": "Email", "title": "Author email", diff --git a/src/plone/restapi/tests/http-examples/types_document_post_field.resp b/src/plone/restapi/tests/http-examples/types_document_post_field.resp index 7f142efe0e..16caa7dfe7 100644 --- a/src/plone/restapi/tests/http-examples/types_document_post_field.resp +++ b/src/plone/restapi/tests/http-examples/types_document_post_field.resp @@ -2,7 +2,7 @@ HTTP/1.1 201 Created Content-Type: application/json { - "behavior": "plone.dexterity.schema.generated.plone_0_Document", + "behavior": "plone.dexterity.schema.generated.plone_5_1234567890_2_123456_0_Document", "description": "Email of the author", "factory": "Email", "title": "Author email", diff --git a/src/plone/restapi/tests/http-examples/types_document_put.req b/src/plone/restapi/tests/http-examples/types_document_put.req index 22a3163886..4236762455 100644 --- a/src/plone/restapi/tests/http-examples/types_document_put.req +++ b/src/plone/restapi/tests/http-examples/types_document_put.req @@ -54,7 +54,7 @@ Content-Type: application/json } }, "author_email": { - "behavior": "plone.dexterity.schema.generated.plone_0_Document", + "behavior": "plone.dexterity.schema.generated.plone_5_1234567890_2_123456_0_Document", "description": "Email of the author", "factory": "Email", "title": "Author email", diff --git a/src/plone/restapi/tests/test_documentation.py b/src/plone/restapi/tests/test_documentation.py index 234df81dc3..bf7a35b04e 100644 --- a/src/plone/restapi/tests/test_documentation.py +++ b/src/plone/restapi/tests/test_documentation.py @@ -538,11 +538,13 @@ def test_documentation_types_document_crud(self): ) # With plone.dexterity 2.10+ we get an unstable behavior name like this: # plone.dexterity.schema.generated.plone_5_1630611587_2_523689_0_Document - # Replace it. + # In older versions, we got this: + # plone.dexterity.schema.generated.plone_0_Document + # Normalize this to look like the new name document_schema_re = re.compile( r"^plone.dexterity.schema.generated.plone_.*_Document$" ) - stable_behavior = "plone.dexterity.schema.generated.plone_0_Document" + stable_behavior = "plone.dexterity.schema.generated.plone_5_1234567890_2_123456_0_Document" json_response = response.json() response_text_override = "" behavior = json_response.get("behavior") From 04e1dc8012225636b4d71e0bc4171c6bf7fe55f1 Mon Sep 17 00:00:00 2001 From: Maurits van Rees Date: Tue, 14 Sep 2021 10:43:06 +0200 Subject: [PATCH 11/12] Ran black. code-analysis did not complain, so I assumed it was fine, but apparently not. --- src/plone/restapi/tests/test_documentation.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plone/restapi/tests/test_documentation.py b/src/plone/restapi/tests/test_documentation.py index bf7a35b04e..f3490abe62 100644 --- a/src/plone/restapi/tests/test_documentation.py +++ b/src/plone/restapi/tests/test_documentation.py @@ -544,7 +544,9 @@ def test_documentation_types_document_crud(self): document_schema_re = re.compile( r"^plone.dexterity.schema.generated.plone_.*_Document$" ) - stable_behavior = "plone.dexterity.schema.generated.plone_5_1234567890_2_123456_0_Document" + stable_behavior = ( + "plone.dexterity.schema.generated.plone_5_1234567890_2_123456_0_Document" + ) json_response = response.json() response_text_override = "" behavior = json_response.get("behavior") From 8921becee228c0fa2c43f31ed5d4731119a53bc7 Mon Sep 17 00:00:00 2001 From: Maurits van Rees Date: Tue, 14 Sep 2021 21:26:14 +0200 Subject: [PATCH 12/12] Tests: normalize less of the generated schema name. --- src/plone/restapi/tests/test_documentation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plone/restapi/tests/test_documentation.py b/src/plone/restapi/tests/test_documentation.py index f3490abe62..f4b40c675e 100644 --- a/src/plone/restapi/tests/test_documentation.py +++ b/src/plone/restapi/tests/test_documentation.py @@ -542,7 +542,7 @@ def test_documentation_types_document_crud(self): # plone.dexterity.schema.generated.plone_0_Document # Normalize this to look like the new name document_schema_re = re.compile( - r"^plone.dexterity.schema.generated.plone_.*_Document$" + r"^plone.dexterity.schema.generated.plone_5_\d*_2_\d*_0_Document$" ) stable_behavior = ( "plone.dexterity.schema.generated.plone_5_1234567890_2_123456_0_Document"