Plone.restapi - a bridge to the modern web

Preview:

Citation preview

plone.restapia bridge to the modern web

Plone Conference Boston 2016 — Timo Stollenwerk, kitconcept GmbH

3 years ago…

The modern web

JavaScript

Plone

Headless CMS

plone.restapi

Content Negotiation

Client: „Accept: application/json“

Server: „Content-Type: application/json"

Authentication

POST /@login { username, password }

Content

{ "@id": "http://localhost:8080/Plone", "@type": "Plone Site", "items": [ { "@id": "http://localhost:8080/Plone/front-page", "@type": "Document", "description": "Congratulations!", "title": "Welcome to Plone" } ], }

CRUD

POST /my-folder {…}

GET /my-folder/1

PUT /my-folder/1

DELETE /my-folder

Schema

GET Plone/@types/Collection

Components

Navigation

GET /@components/navigation

Breadcrumbs

GET /@components/breadcrumbs

Workflow

POST /front-page/@workflow/publish

Registry

GET /@registry/my-setting

PUT /@registry/my-setting

Users

POST /@users {…}

GET /@users/tisto

PUT /@users/tisto

DELETE /@users/tisto

Search

GET/@search?SearchableText=

Current Status

Start today!

pypi.python.org/pypi/plone.rest

pypi.python.org/pypi/plone.restapi

plone.restapia bridge to the modern web

Plone Conference Boston 2016 — Timo Stollenwerk, kitconcept GmbH

Timo Stollenwerk kitconcept.com github.com/kitconcept twitter.com/timostollenwerk

Recommended