Hi everyone,
I am learning how to build a web service on elgg. So I am using the reference documentation provides by elgg (http://learn.elgg.org/en/latest/guides/web-services.html#building-out-your-api) .
Based on the documentation, in the following url, test.echo is the exposed method. http://yoursite.com/services/api/rest/json/?method=test.echo&string=testing
I issue is the following.
I want to have a custom url. rather that http://yoursite.com/services/api/rest/json/?method=test.echo&string=testing, I want to have something like http://yoursite.com/services/wopi/files/61/?method=test.echo&string=testing
where 61 is and entity guid.
How can I implement custom url for my web service ?
Regards,
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Nikolai Shcherbin@rivervanrain
Nikolai Shcherbin - 1 like
- Hermand Pessek@rheman
Hermand Pessek - 0 likes
You must log in to post replies.Override this and this.
More about Routing.
Tkanks