Permalink
Switch branches/tags
4.3.18 424-richtext-output_relative_to-adapterception add-groups-to-@user addons-endpoint better-deserialization-error c.xmltestreport-fix check-readme datakurre-collection-fullobjects docs-formatting-spelling drop-collective-mockmailhost dx-validation-deserialize feature/specs-for-comment-APIs filtered-batched-vocabs fix-253-add-time-zone-to-serializer fix-root-login fix_frombaseunit fix_relationchoice_deserializer_to_take_serializer_input global_allow history indexes issue-38-sharing issue-225-only-pam-plone5 issue-242-erral-interfaces issue-243-disable-csrf-on-successfull-JWT-auth issue-288-tisto issue-288-zope.intid issue-407-add-sitemap-service issue-544-3 issue-574-event-type kakshay-remove-inconsistency master-check master no-pep8 notify-user-login-events object_field_serializer plone-5.1 portlets pwreset_tool_optional python3_updated pyup-config pyup-pin-sphinxcontrib-httpdomain-1.7.0 pyup-pin-sphinxcontrib-httpexample-0.9.0 pyup-update-alabaster-0.7.10-to-0.7.11 pyup-update-appdirs-1.4.2-to-1.4.3 pyup-update-babel-2.5.1-to-2.6.0 pyup-update-certifi-2017.11.5-to-2018.8.24 pyup-update-idna-2.6-to-2.7 pyup-update-imagesize-0.7.1-to-1.0.0 pyup-update-packaging-16.8-to-17.1 pyup-update-pyparsing-2.1.10-to-2.2.0 pyup-update-pytz-2017.3-to-2018.5 pyup-update-requests-2.18.4-to-2.19.1 pyup-update-setuptools-39.1.0-to-40.2.0 pyup-update-six-1.10.0-to-1.11.0 pyup-update-sphinx-1.6.5-to-1.7.8 pyup-update-sphinx-rtd-theme-0.2.4-to-0.4.1 pyup-update-sphinxcontrib-httpdomain-1.5.0-to-1.7.0 pyup-update-sphinxcontrib-httpexample-0.7.0-to-0.9.0 pyup-update-sphinxcontrib-websupport-1.0.1-to-1.1.0 pyup-update-typing-3.6.2-to-3.6.6 pyup-update-zc.buildout-2.11.5-to-2.12.0 rearrange reenable-plone5-doc-tests sharing_no_disabled swagger-specification testrunner-on-port-8080 thet-relationlistwidget travis-failure travis52-davisagli unify-expired-and-excluded-items-handling upgrade-flake8
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
144 lines (113 sloc) 1.92 KB

People

  • Laurence
  • Ramon
  • Timo

Objects

GET /plone x-frame object x-version 1.0 accept application/json -----------------------

{

@context @id @type __parent__

title description text -> dexterity schema + behaviour schema

}

-> full URLs vs. relative URLs

children (parent <-> children) items (items <-> container) contents (items <-> container)

__children__: [
{
@type: 'Image'

}, {

@type: 'Document'

}

]

(children attributes might change dependent on the type)

Framing

  • object (minimal, default)
  • folder_listing
  • folder_full_view
  • ...

File

{
contentType: size (kb) data/download filename

}

Image

{

contentType size data/download filename scale: {

'mini': {
href: ... width: 400, height: 200,

}

}

}

Batching

{

@type: total_items: 42, items: [], batch_actions: [

{
'name': 'previous', 'title': 'Previous', url: 'http://...'

}, {

'name': 'next', 'title': 'Next', url: 'http://...'

}, {

'name': 'first', 'title': 'First', url: 'http://...'

}, {

'name': 'last', 'title': 'Last', url: 'http://...'

}

]

Search

{

@type: PortalRoot, global_actions: [

'name': 'search', 'title': 'search', 'href': 'http://nohost/search', 'schema': our own search schema (schema.org)

]

}

json schema

  • ietf draft
  • PYTHON: pythonjsonschema (laurence has a branch to work better with colander, default field)
  • JAVASCRIPT: jsonschema

Documentation

  • sphinx directive (sphinx-robotframework)
  • readthedocs (won't work)
  • copy-paste of examples is important