Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Consuming Restful APIs

Consuming Restful APIs

This talk equips you with both foundations and best practices for consuming REST APIs.

Rufai Mustapha

October 14, 2022
Tweet

More Decks by Rufai Mustapha

Other Decks in Programming

Transcript

  1. Learning Outcomes What Is An API? How Developers Work With

    APIs? Understanding HTTP How To Make API Calls API Request Tools Authentication & Authorization Errors Case Study: Paga’s Payment APIs
  2. 1. CCTV will capture motion 2. CCTV will send motion

    to the server 3. Server is storing this motion 4. Phone requests to view this motion 5. Server will send the motion to the Phone 6. Phone will alert on a particular CCTV camera 7. Server will receive this alert 8. Server sends this alert to the CCTV 9. CCTV will change indicator ( beeping ) phone api server api cctv
  3. Request Response 1. 100 - 199 Information ( the existence

    of something, does it exist ) 2. 200 - 299 Success 3. 300 - 399 Redirect 4. 400 - 499 Client Error 5. 500 - 599 Server Error 1. GET 2. DELETE 3. POST
  4. Authentication Authorization Who are you? What are you allowed to

    do? • Cashier • Bank Manager • Account Managers • Reconciliation officers • Accountant • Security • Customers What can you do?