Closed rowild closed 2 years ago
At first, your issue is related to the restler_examples
extension not to restler
extension. I agree that the documentation does not cover all or all of the information that should be provided.
The response for this endpoint is always generated for each request. There is no persistence layer or static response defined.
I released a new version of the restler_examples extension which contains a /cars endpoint. https://extensions.typo3.org/extension/restler_examples https://packagist.org/packages/aoe/restler-examples
First of all: It is unclear, what numbers are valid for $id in the car controller. 1, 2, 3 all return errors. (There is no way to create "Car" records; maybe because the Repositories are missing?)
Second: when calling the api in the frontend (not within the api_explorer), I would it expect to return all cars. But it does not. As a matter of fact the "/api/motorsport/cars" route REQUIRES the id – not sure if that is really correct? Or why is that? Shouldn't this route be reserved to return ALL cars?
Thank you!