Question 50 of 100 from exam 350-901-DEVCOR: Developing Applications Using Cisco Core Platforms and APIs

Question 50 of 100 from exam 350-901-DEVCOR: Developing Applications Using Cisco Core Platforms and APIs

Question

DRAG DROP -

def process _all_pages (url):
data = []

response = requests.get (url)
if 20
le

response = requests. get (item) 3!)

response.raise for_status()
data.append (response. json ())
return data

except Exception as e:
print (‘Server returned non-200 OK response during pagination”)

Refer to the exhibit.

Drag and drop the parts of the Python code from the left onto the item numbers on the right that match the missing sections in the exhibit that consumes REST API pagination.

Select and Place:

Answer Area

response status_code <item 1>
response links['next J[ Url] <item 2>
response.headers.get(‘Link’) <item 3>

Explanations

Answer Area

response status_code

response status_code

response links[next[ur!]

response.headers gett(‘Link’)

response.headers.get(’Link’)

response links[next[ur!]