There are two blog posts done for this, to consume a rest service and to expose a rest service.
These should help you get started. If needed, there are more details here.