Request handling in custom client


#1

Hi there,

I am currently working on an interface between Zed and a custom iOS-App. Therefore I want to implement a Client that handles requests from the app, builds transfer objects and calls gateway controllers.

Is it possible to get silex to route URLs to clients, or is there a better way to solve this problem?

Best regards,
Mathias


#2

Hi Mathias,

If you want to access the Client layer from outside, then in YvesBootstrap you can change the existing routers or add a new router that can handle your API requests based on your custom requirements.
Another way could be to simply add a Controller - ControllerProviderPlugin duo that handles all requests that starts with "/api/" for example.

Best,
Tamás


#3

Hi Tamás,

thank you very much for the quick answer. I tried it out and it works like a charm.

Best,
Mathias