This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| echo '<?xml version="1.0" encoding="UTF-8"?> | |
| <LocationCreate media-type="application/vnd.ez.api.LocationCreate+xml"> | |
| <ParentLocation href="/content/locations/1/5" media-type="application/vnd.ez.api.Location+xml"/> | |
| <priority>0</priority> | |
| <hidden>false</hidden> | |
| <sortField>PATH</sortField> | |
| <sortOrder>ASC</sortOrder> | |
| </LocationCreate>' | \ | |
| http -v POST localhost:8042/content/objects/58/locations \ | |
| 'X-Test-User:14' \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| How to install Bsoad by Qafoo to test out the REST API v2 | |
| The process to download bsoad and all dependencies is listed below. | |
| 1) cd /var/www/ | |
| 2) git clone git://github.com/Qafoo/bsoad.git | |
| 3) cd bsoad | |
| 4) curl -s https://getcomposer.org/installer | php | |
| 5) php composer.phar install | |
| 6) cd src/library/qafoo/bdog |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| require_once '../bootstrap.php'; | |
| $repository = require '../eZ/Publish/Core/REST/common.php'; | |
| $section = $repository->getSectionService()->loadSectionByIdentifier( 'standard' ); | |
| var_dump( $section ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| www-data@void ~/ezp-next/eZ/Publish/API/Repository/Tests [master] $ phpunit -c phpunit-rest-json.xml -v --group section | |
| PHPUnit 3.6.11 by Sebastian Bergmann. | |
| Configuration read from /var/www/ezp-next/eZ/Publish/API/Repository/Tests/phpunit-rest-json.xml | |
| ...............ESE..SSSSS | |
| Time: 11 seconds, Memory: 21.00Mb | |
| There were 2 errors: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function fetchMetaData( $attribute ) | |
| { | |
| try | |
| { | |
| $xml = new SimpleXMLElement( $attribute->attribute( 'data_text' ) ); | |
| $keywords = htmlspecialchars_decode( (string) $xml->keywords, ENT_QUOTES ); | |
| $keywords = !empty( $keywords ) ? explode( ",", $keywords ) : array(); | |
| $meta = new xrowMetaData( htmlspecialchars_decode( (string)$xml->title, ENT_QUOTES ), |
NewerOlder