I have an endpoint, which is active and working for more than a year, and I recently had the need to add a new endpoint, which obviously has a different url ("Path to endpoint").
For both, however, I need to use the login functionality, and other custom actions (each one has its own url, callback and access callback, in two separated custom modules).
But on every call, i can see that both endpoints are being requested, all arguments are being doubled etc. Here's the $controller
as seen from hook_services_request_preprocess_alter
:
Array
(
[help] => Array
(
[0] => Description from endpoint 1
[1] => Description from endpoint 2
)
[callback] => Array
(
[0] => MY_FIRST_MODULE_callback_function
[1] => MY_SECOND_MODULE_callback_function
)
[access callback] => Array
(
[0] => MY_FIRST_MODULE_access_callback_function
[1] => MY_SECOND_MODULE_access_callback_function
)
[args] => Array
(
[0] => Array
(
[name] => email
[type] => string
[description] => Email
[source] => Array
(
[data] => email
)
[optional] => 1
)
[1] => Array
(
[name] => email
[type] => string
[description] => Email
[source] => Array
(
[data] => email
)
[optional] => 1
)
)
[etc] => ....
)
This happens whichever url is requested, it's causing both the iOS and Android apps to crash, and i couldn't find a way around it.
What should / can I do to run both endpoint independently, and why are both getting invoked even if the url ("Path to endpoint") is different?