Appearance
Compatible Addons
Out of the box the the Webservice module support all fieldtypes that save their data to the exp_channel_data
table. Other addons that using their own table or do something with files for example are not supported, unless they listed below.
If you found an addon that has no support for the Webservice, you can send me an email.
Grid
Natively: The following syntax is needed.
array(
'grid' => array(
'rows' => array(
array(
'cell_1' => 'row 1',
'cell_2' => 'row 11'
),
array(
'cell_1' => 'row 2',
'cell_2' => 'row 22'
),
),
),
);
or in a query string
data[grid][rows][0][cell_1]=row 1&data[grid][rows][0][cell_2]=row 11&data[grid][rows][1][cell_1]=row 2&data[grid][rows][1][cell_2]=row 22
Relationship
Natively: The following syntax is needed.
array(
'relationship' => array(
2,3,4,5
),
);
or in a query string
data[relationship][]=2&data[relationship][]=3&data[relationship][]=4&data[relationship][]=5
Matrix
Natively: he following syntax is needed.
array(
'matrix' => array(
'rows' => array(
array(
'cell_1' => 'row 1',
'cell_2' => 'row 11'
),
array(
'cell_1' => 'row 2',
'cell_2' => 'row 22'
),
),
),
);
or in a query string
data[matrix][rows][0][cell_1]=row 1&data[matrix][rows][0][cell_2]=row 11&data[matrix][rows][1][cell_1]=row 2&data[matrix][rows][1][cell_2]=row 22
Playa
Natively: The following syntax is needed.
array(
'playa' => array(
2,3,4,5
),
);
or in a query string
data[playa][]=2&data[playa][]=3&data[playa][]=4&data[playa][]=5
Zoo Visitor
Natively: The following syntax is needed.
On update, you can avoid some values because the Webservice module detect the member based on the entry_id
array(
'member_account' => array(
'email' => 'test@test.com',
'username' => 'John Doe',
'password' => 'test123',
'screen_name' => 'John Doe',
'group_id' => '4',
),
);
Store
Store only adds basic support in the read/search method.
Content Elements
All fields, but not all are converted good (please make a thread here)
Publisher
Webservice is compatible with Publisher
//add the publisher_lang_id to your entry request
array('publisher_lang_id' => 1)
Searching in older then EE 5.1.0 require to add a fix to a core file of EE due a bug. The following need to be added (https://github.com/ExpressionEngine/ExpressionEngine/issues/31#issuecomment-447055294).
diff --git a/system/ee/EllisLab/ExpressionEngine/Service/Model/Query/Select.php b/system/ee/EllisLab/ExpressionEngine/Service/Model/Query/Select.php
index bb5cff9e1b..b789a89bbb 100644
--- a/system/ee/EllisLab/ExpressionEngine/Service/Model/Query/Select.php
+++ b/system/ee/EllisLab/ExpressionEngine/Service/Model/Query/Select.php
@@ -54,11 +54,7 @@ class Select extends Query {
$aliases = array_merge(array($this->root_alias), array_keys($withs));
foreach ($aliases as $alias)
{
- if (stripos($alias, ' as ') !== FALSE)
- {
- $parts = explode(' ', $alias);
- $alias = end($parts);
- }
+ list($from, $alias) = $this->splitAlias($alias);
$class = $this->getClass($alias);
if ( ! is_null($class::getMetaData('field_data')))