How can I add rest calls (not part of the rest api plugin)

I want to add a rest api call to my plugin. Is there any docs (mans, rules) to do it?