Skip to content

Instantly share code, notes, and snippets.

@bryanbarnard
Created September 25, 2015 21:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bryanbarnard/53c91a53b4a27d549196 to your computer and use it in GitHub Desktop.
Save bryanbarnard/53c91a53b4a27d549196 to your computer and use it in GitHub Desktop.
Sample Response to a ServiceNow Demo Instance - using sysparm_fields dot-walk
HTTP/1.1 200 OK
Link: <https://demo003.service-now.com/api/now/table/incident?sysparm_limit=1&sysparm_fields=number%2Clocation%2Clocation.name%2Clocation.city&sysparm_offset=0>;rel="first",<https://demo003.service-now.com/api/now/table/incident?sysparm_limit=1&sysparm_fields=number%2Clocation%2Clocation.name%2Clocation.city&sysparm_offset=-1>;rel="prev",<https://demo003.service-now.com/api/now/table/incident?sysparm_limit=1&sysparm_fields=number%2Clocation%2Clocation.name%2Clocation.city&sysparm_offset=1>;rel="next",<https://demo003.service-now.com/api/now/table/incident?sysparm_limit=1&sysparm_fields=number%2Clocation%2Clocation.name%2Clocation.city&sysparm_offset=549>;rel="last"
X-Total-Count: 550
Content-Type: application/json
Transfer-Encoding: chunked
Date: Fri, 25 Sep 2015 21:33:32 GMT
Server: ServiceNow
Connection: close
{
"result": [
{
"location.name": "Oklahoma",
"location": {
"link": "https://demo003.service-now.com/api/now/table/cmn_location/1083361cc611227501b682158cabf646",
"value": "1083361cc611227501b682158cabf646"
},
"number": "INC0000001",
"location.city": "Oklahoma"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment