If you're working with the REST broker that shipped in K2 blackpearl 4.7 and Appit 1.5, check out KB001786 Resources for Working with the REST Service Broker. You will find lots of information on what you need to get started and how you can integrate K2 with REST-based services.