how to create scripted rest api in servicenow