what is difference between relative path and resource path in REST Integrations? Please provide examples as well.

mallikharjunasw
Tera Contributor

what is difference between relative path and resource path in REST Integrations? Please provide examples as well.

3 REPLIES 3

G Balaji
Kilo Guru

Simple example would be as follows,

When you want to generalize a path, say,

 

https://instance.service-now.com/login.do 

 

Comments: In above path will not take you to any page unlesss you replace instance with actual instance number like devxxxxx

 

resource path:

https://devxxxxx.service-now.com/login.do

Comments: Above URL when "xxxxx" is replaced with actual instance number will take you to the resource

 

For detailed technical answers, please refer to docs

what about the relative path?

anusha60
Kilo Expert

Hi,

 

Relative Path is a path that is relative to the current page's path location. 

eg: 

The current page : http://www.site.com/products/sales

and you are referring to another page : http://www.site.com/products/sales/summary.html

then relative path will be - /summary.html 

 

Resource path is the standard / home path to the current page.

In above example "http://www.site.com/products/sales" will be the resource path.

 

Thanks