This file contains 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 ), |
This file contains 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 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 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 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 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 ~/rest/locations [master] $ ./loadLocationsForObject.sh | |
GET /content/objects/58/locations HTTP/1.1 | |
Accept: application/vnd.ez.api.LocationList+xml | |
Accept-Encoding: identity, deflate, compress, gzip | |
Host: localhost:8042 | |
User-Agent: HTTPie/0.2.8-alpha | |
X-Test-User: 14 | |
This file contains 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
diff --git a/eZ/Publish/Core/settings/service.ini b/eZ/Publish/Core/settings/service.ini | |
index 8aad823..3074271 100644 | |
--- a/eZ/Publish/Core/settings/service.ini | |
+++ b/eZ/Publish/Core/settings/service.ini | |
@@ -14,7 +14,7 @@ | |
# | |
[parameters] | |
#legacy_dsn=<driver>://<username>:<password>@<host>:<port>/<database> | |
-legacy_dsn=sqlite://:memory: | |
+legacy_dsn=mysql://root@localhost:3306/ezpublish4 |
This file contains 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 | |
/** | |
* File containing the TemporaryRedirect ValueObjectVisitor class | |
* | |
* @copyright Copyright (C) 1999-2012 eZ Systems AS. All rights reserved. | |
* @license http://www.gnu.org/licenses/gpl-2.0.txt GNU General Public License v2 | |
* @version //autogentag// | |
*/ | |
namespace eZ\Publish\Core\REST\Server\Output\ValueObjectVisitor; |
This file contains 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
eddie@abyss ~/restScripts/xml/objects [master] $ ./loadContent.sh | |
GET /content/objects/58 HTTP/1.1 | |
Accept: application/vnd.ez.api.Content+xml | |
Accept-Encoding: identity, deflate, compress, gzip | |
Host: localhost:8042 | |
User-Agent: HTTPie/0.2.8-alpha | |
X-Test-User: 14 | |
OlderNewer