25
plone.restapi a bridge to the modern web Plone Conference Boston 2016 — Timo Stollenwerk, kitconcept GmbH

Plone.restapi - a bridge to the modern web

Embed Size (px)

Citation preview

Page 1: Plone.restapi - a bridge to the modern web

plone.restapia bridge to the modern web

Plone Conference Boston 2016 — Timo Stollenwerk, kitconcept GmbH

Page 2: Plone.restapi - a bridge to the modern web

3 years ago…

Page 3: Plone.restapi - a bridge to the modern web

The modern web

Page 4: Plone.restapi - a bridge to the modern web

JavaScript

Page 5: Plone.restapi - a bridge to the modern web

Plone

Page 6: Plone.restapi - a bridge to the modern web

Headless CMS

Page 7: Plone.restapi - a bridge to the modern web

plone.restapi

Page 8: Plone.restapi - a bridge to the modern web

Content Negotiation

Client: „Accept: application/json“

Server: „Content-Type: application/json"

Page 9: Plone.restapi - a bridge to the modern web

Authentication

POST /@login { username, password }

Page 10: Plone.restapi - a bridge to the modern web

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" } ], }

Page 11: Plone.restapi - a bridge to the modern web
Page 12: Plone.restapi - a bridge to the modern web

CRUD

POST /my-folder {…}

GET /my-folder/1

PUT /my-folder/1

DELETE /my-folder

Page 13: Plone.restapi - a bridge to the modern web

Schema

GET Plone/@types/Collection

Page 14: Plone.restapi - a bridge to the modern web
Page 15: Plone.restapi - a bridge to the modern web

Components

Page 16: Plone.restapi - a bridge to the modern web

Navigation

GET /@components/navigation

Page 17: Plone.restapi - a bridge to the modern web

Breadcrumbs

GET /@components/breadcrumbs

Page 18: Plone.restapi - a bridge to the modern web

Workflow

POST /front-page/@workflow/publish

Page 19: Plone.restapi - a bridge to the modern web

Registry

GET /@registry/my-setting

PUT /@registry/my-setting

Page 20: Plone.restapi - a bridge to the modern web

Users

POST /@users {…}

GET /@users/tisto

PUT /@users/tisto

DELETE /@users/tisto

Page 21: Plone.restapi - a bridge to the modern web

Search

GET/@search?SearchableText=

Page 22: Plone.restapi - a bridge to the modern web
Page 23: Plone.restapi - a bridge to the modern web

Current Status

Page 24: Plone.restapi - a bridge to the modern web

Start today!

pypi.python.org/pypi/plone.rest

pypi.python.org/pypi/plone.restapi

Page 25: Plone.restapi - a bridge to the modern web

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