Current configuration.
class_name: ApiTester
modules:
enabled:
- REST:
url: /
depends: Symfony
I want configuration like below.
class_name: ApiTester
modules:
enabled:
- REST:
url: dailyNotes.up // have any option for add url here. currently 404 error returns
depends: Symfony
I must need site url for test, Api need site url so that codeception url must need to set.
For production I guess it won't change every day so you could consider just creating parameter that will hold site root url part and put it there manually or...
You can try something called Expression Language in Symfony and inject service method result directly into config file as a service argument. For example I do the same thing in service config file:
redirectUri: "@=service('router').generate('any_route_your_heart_desire', {}, 0)"
As a third argument of the route service you can just pass here one of the constants values from UrlGeneratorInterface.
Here you have a link to the docs:
http://symfony.com/doc/current/components/expression_language.html http://symfony.com/doc/current/service_container/expression_language.html
I hope it will help you.
Cheers!