[Flow] Implementing an REST-Interface with Flow 2.0
Robert Berghegger
r_berghegger at web.de
Tue Jul 16 21:27:32 CEST 2013
Last question answered first:
You can run all your examples (Application Packages) in one TYPO3 Flow
instance. Just make sure that your routing is set up correctly.
Maybe you should try it with ".../wwwision.resttest/product" because the
existing Controller in the bwaidelich example is called
"ProductController" and not "ProductsController". I guess you tried to
call a ProductsController because your error message says that it looked
for the "controller name: "products"".
I hope this helpes on this example :-)
regards
Am 16.07.2013 20:59, schrieb Volker Brückner:
> :) oops ...
>
> Using the Mittwald Example i get the following error when trying to
> insert the first article via the POST-request. (errormessage copied
> from RESTclient, the FF-tool for testing REST interfaces).
>
> Uncaught Exception in Flow
> #1297759968: Exception while property mapping for target type
> "Article", at property path "": Could not find a suitable type
> converter for "Article" because no such class or interface exists.
> (More information)
>
> TYPO3\Flow\Property\Exception thrown in file
> /home/volker/flow-base/Data/Temporary/Development/Cache/Code/Flow_Object_Classes/TYPO3_Flow_Property_PropertyMapper.php
> in line 115.
> Reference code: 201307162045018ae678
>
> Nested Exception
> #1297948764: Could not find a suitable type converter for "Article"
> because no such class or interface exists. (More information)
>
> TYPO3\Flow\Property\Exception\InvalidTargetException thrown in file
> /home/volker/flow-base/Data/Temporary/Development/Cache/Code/Flow_Object_Classes/TYPO3_Flow_Property_PropertyMapper.php
> in line 234.
> Reference code: 20130716204501809e61
>
> Go to the FORGE issue tracker and report the issue - if you think it
> is a bug!
>
> 21
> TYPO3\Flow\Property\PropertyMapper_Original::findFirstEligibleTypeConverterInObjectHierarchy(array|2|,
> "array", "Article")
>
>
> /home/volker/flow-base/Data/Temporary/Development/Cache/Code/Flow_Object_Classes/TYPO3_Flow_Property_PropertyMapper.php:
>
>
> 00211: }
> 00212: } else {
>
> my server gives the follwing answer:
>
> Status Code: 500 Internal Server Error
> Connection: close
> Content-Encoding: gzip
> Content-Length: 4141
> Content-Type: text/html
> Date: Tue, 16 Jul 2013 18:45:01 GMT
> Server: Apache/2.2.22 (Ubuntu)
> Vary: Accept-Encoding
> X-Pad: avoid browser bug
> X-Powered-By: PHP/5.3.10-1ubuntu3.7
>
> when trying the other example from bwaidelich i just get the following
> 404 error when calling the products-list:
>
>
> 404 - Not Found
>
> Sorry, the page you requested was not found.
> Technical details:
>
> No controller could be resolved which would match your request.
> Package key: "Wwwision.RestTest", controller name: "products"
> (reference code: 20130716205410fd2ed5)
>
> Do i have to create different installations of Flow to use the
> different examples? I call all the examples in the following way:
> http://vhost.local/package.name/request so there is only one
> installation of Flow at the moment.
>
> Greetings
> Volker
>
>
> _______________________________________________
> Flow mailing list
> Flow at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow
More information about the Flow
mailing list