Mutliple examples are available demonstrating how to create and use scripted REST APIs.