In both the 5.6 Platform SDK and 6.0 Platform SDK (which is a collection of Sample code) you can see a sample project of creating a custom REST Endpoint.
Full documenttaion is here
telligent.com/.../platform-sdk.aspx
Contact support if you need the 6.0 Platform SDK