logo

NJP

ServiceNow Scripted REST APIs: Part 1 – Introduction

Import · Mar 16, 2023 · video

foreign and welcome to this series on creating scripted rest apis in servicenow a script addressed API is a web service in your servicenow instance that permits and defines how external applications and clients can interact with data in your instance what can they see what can they do and today web services are the main method for exchanging data between different applications this series is internal for anyone who's already working with web services or intends to work with web services in the now platform in particular it's geared to those of you who are relatively new to web services and servicenow but it does assume some basic knowledge it assumes that you know what a scoped application is you know how to create tables you know how to create access control rules to secure data in those tables it also assumes that you have some basic knowledge of JavaScript and in particular the Glide record API for working with records in your servicenow database it also assumes that you know a little bit about the Json file format as well if you're a little bit unsure about some of these topics I'll put some links in the description below to some excellent resources in this series we'll learn how to do the following first of all create a simple scripted web service for retrieving records from our servicenow instance as well as creating new records modifying records and deleting records we'll also spend some time discussing the different HTTP methods for doing that including get post foot patch and delete we'll spend some time discussing best practices for developing scripted rest apis in particular we're going to spend a considerable amount of time discussing the authentication and authorization features in the servicenow platform for making our API as secure as possible we'll also discuss the differences between scripted rests apis as well as the table API in servicenow and we're going to do all of this in a scoped application initially thought about creating some content for scripted rest apis I initially intended to publish a short video to YouTube only I had absolutely no idea it would balloon into a series of this length however as I got deeper into the topic I began to realize that there were more things necessary to understand that it wasn't just a matter of publishing a simple API for retrieving records from the database we needed to have an understanding of the different HTTP methods such as get post put patch and delete and the relationship between these methods and the JavaScript methods that we're using Glide record for interacting with records in the database we also need to have an understanding of the whole gamut of security features in the now platform that allows us to make our API as secure as possible so not just established features like access control rules but also newer features such as oauth authentication Scopes and API access policies and hey what would a discussion on development in servicenow be without at least a brief review of the automated test framework and Reporting while each of the videos in this series builds upon preceding ones so you can actually follow along with me in your own personal developer instance and build your own API you can also safely watch the videos individually without too much difficulty so I really hope that you enjoy this series and have fun developing foreign

View original source

https://www.youtube.com/watch?v=ulKSAZsxFlw