Download the PHP package arfaram/ezrestdemobundle without Composer
On this page you can find all versions of the php package arfaram/ezrestdemobundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download arfaram/ezrestdemobundle
More information about arfaram/ezrestdemobundle
Files in arfaram/ezrestdemobundle
Package ezrestdemobundle
Short Description Extending the eZPlatform API Demo
License MIT
Homepage https://github.com/arfaram/ezrestdemobundle
Informations about the package ezrestdemobundle
EzRestBundle
Extending the Ez Rest API - demo
Requirement
eZPlatform 1.7 + , symfony 2.8 +
Use Case -Demo
See presentation to understand better how to extend the ezplatform REST API:https://arfaram.github.io/slides/ezsysztems_meetup_20171130
- Export all content using specific contentType ID from specific path. content fieldTypes should be specified.
-
How to use GET or POST verbs using
ValueObjectVisitor
andInputParser
See List of required and optional parameters and examples below
Installation
-
Activate the Bundle in AppKernel.php
-
Add the bundle routing in routing.yml
- Clear the cache
Request Parameters
Mandatory
subtree
: Specify the location from where content will be fetched.(default:2)fields
: Only ezstring, ezrichtext and ezimage fields are supported in this demo.
Optional
limit
: Number of content items to returnsort
: ContentName sorting. Possible values:ASC
orDESC
. (default:ASC)lang
: Content Language (e.g.ger-DE
)hidden
:true
orfalse
fetch visible or hidden content. (default:false )image_variation
: (default:original)
GET Example
-> Returns content with contenttype id:48 and parent locationId:99.
See XML and JSON examples below
POST Example
XML payload