Fill in the blanks to complete the cURL command that invokes a RESTful API to retrieve a resource in JSON format using OAuth.

By | November 20, 2022

Fill in the blanks to complete the cURL command that invokes a RESTful API to retrieve a resource in JSON format using OAuth.
curl -X ____________ -H ” __________: application/json” -H ” _______: Bearer AbCdEf123456″ https://localhost/api/myresource

  • A. See explanation below.
Answer: Option A.
Explanation: 

GET
Accept
Authorization
Reference: https://webcache.googleusercontent.com/search?q=cache:Se6d2trvMsEJ:https://blogs.cisco.com/developer/security-api-best-practices+&cd=4&hl=en&ct=clnk&gl=pk&client=firefox-b-d

The post Fill in the blanks to complete the cURL command that invokes a RESTful API to retrieve a resource in JSON format using OAuth. appeared first on Majanto.