Creating a Web Service; any example?

Hey Devs,

I'm looking for an example for creating a simple web service in Elgg. I'm digging and digging for two days now, found just a few old questions with no replies yet -( What about the REST api?

Thank you!