Outbound REST Integrations Flashcards

1
Q

What is an Outbound REST Integration, and what does it do?

A

An Outbound REST Integration is a configuration that allows ServiceNow to send data to an external system using REST protocol.

———————————————————————
📁 Outbound REST Integrations Developer Documentation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is an endpoint?

A

An endpoint is a specific URL / URI that represents a unique resource or service provided by the server.

———————————————————————
📁 Outbound REST Integrations Developer Documentation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What do clients (applications) use endpoints for in outbound Rest integrations?

A

To send requests and receive responses from the server

———————————————————————
📁 Outbound REST Integrations Developer Documentation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What do HTTP methods do?

A

Methods determine the type of operation to be performed on the resource identified by the endpoint.

———————————————————————
📁 Outbound REST Integrations Developer Documentation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are some of the common HTTP methods used in RESTful APIs?

&

What are they used for?

A
  • GET: Used to retrieve data from the server. It should not have side effects on the server.
  • POST: Used to create new resources on the server
  • PUT: Typically used to update an existing resource or create it if it doesn’t exist
  • DELETE: Used to remove a resource from the server.
  • Other less common methods include - PATCH, HEAD, OPTIONS, etc.

———————————————————————
📁 Outbound REST Integrations Developer Documentation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are data formats in the context of Outbound RESTful API’s and sending data?

&

What are the most common data formats?

&

Is there anything important to note about the most common data formats?

A

Data formats define how data is structured when it’s exchanged between the client and the server

&

JSON (JavaScript Object Notation)
XML (eXtensible Markup Language)

&

JSON is widely preferred due to its simplicity, readability, and lightweight nature.

———————————————————————
📁 Outbound REST Integrations Developer Documentation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What do Outbound REST Messages allow developers to do?

&

Where can it be invoked from?

A

They allow developers to test web services and view the response body.

&

They can be invoked from any server-side script

———————————————————————
📁 Outbound REST Integrations Developer Documentation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the 4 most important things included in a REST Message record?

A
  • Endpoint
  • Authentication
  • HTTP Headers
  • HTTP Methods

———————————————————————
📁 Outbound REST Integrations Developer Documentation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What authentication formats does Outbound REST support?

A
  • No Authentication
  • Basic
  • OAuth 2.0
  • Mutual Authentication

———————————————————————
📁 Outbound REST Integrations Developer Documentation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

When should you set the Authentication type of your Outbound REST message to No Authentication?

A

When interacting with public web services that do not require authentication. Some public web services distribute free information without authentication being required.

———————————————————————
📁 Outbound REST Integrations Developer Documentation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

When setting the Authentication type of your Outbound REST message to Basic, what is passed to the web service?

&

What are next steps after assigning the Authentication Type to Basic?

A

A username and password is passed to the web service

&

You need to select a Basic Auth Profile that is a record consisting of a - Name, Username, and Password -

———————————————————————
📁 Outbound REST Integrations Developer Documentation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Most authentication options for Outbound REST integrations are application-level authentications.

How is Mutual Authentication different?

What is Mutual Authentication?

A

Mutual Authentication is a protocol/socket-level authentication - not an application-level authentication.

&

Mutual authentication requires the web service provider and consumer to authenticate with each other before communicating.

———————————————————————
📁 Outbound REST Integrations Developer Documentation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the easiest way to configure a Method endpoint when handling Outbound REST Integrations?

A

To configure an HTTP method endpoint, refer to the web service provider’s API documentation. (The company that ServiceNow is trying to communicate with.

———————————————————————
📁 Outbound REST Integrations Developer Documentation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What happens with HTTP Method authentication in the default case?

A

HTTP Methods inherit authentication settings from the outbound REST Message (parent)
Change the authentication type if it differs from the parent’s authentication.

———————————————————————
📁 Outbound REST Integrations Developer Documentation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

List and describe the 5 main HTTP methods

A
  • POST: New Database Record
  • PUT: Update Record
  • GET: Get Data
  • DELETE: Delete Data
  • PATCH - Partial Changes

———————————————————————
📁 Outbound REST Integrations Developer Documentation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

After an HTTP method for an Outbound REST message is configured, it needs to be tested to ensure the request is valid and the response returns as expected.

In order to run a test, variables defined in the HTTP method must have values.

How can you give these variables values in order to test you HTTP method?

A

There is a related link that automatically adds variables to the Variable Substitutions list. This related link is the Auto-generate variables link.
After looking at the Variable Substitutions list, any variables that were not automatically added can be manually defined.

The 3 properties these entries contain are
- Name: Name of the variable. Must be an exact match to the variable name in the HTTP method.
- Escape Type: Options to escape special characters. If the data sent contains special characters, such as the | (pipe character), the set the Escape type value to Escape XML.
- Test Value: Value to use for the variable when testing.

This last property is what is set to have these variables contain data to test.

———————————————————————
📁 Outbound REST Integrations Developer Documentation

17
Q

After configuring an HTTP method and verifying it works as expected by using the Test Related link, it is impractical to continue invoking the API from this avenue.
What is the final development step in this case?

A

Execute the method from a server-side script.

———————————————————————
📁 Outbound REST Integrations Developer Documentation

18
Q

Which Related Link generates a server-side JavaScript code stub to invoke an Outbound HTTP Request?

A

The Preview Script Usage related link.

———————————————————————
📁 Outbound REST Integrations Developer Documentation

19
Q

How do ServiceNow outbound integrations work within the context of “the backend”.

A

External systems (web service providers) process data (our request sent from SN) and return information back to ServiceNow (a status code and a response body).

———————————————————————
📁 Outbound REST Integrations Developer Documentation

20
Q

What do endpoints correspond to within the context of RESTful APIs?

A

Endpoints correspond to different functionalities or resources
Example: https://api.example.com/users could be an endpoint for accessing user data

———————————————————————
📁 Outbound REST Integrations Developer Documentation