$30 off During Our Annual Pro Sale. View Details »

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. Consuming
    REST APIs
    By Mustapha Rufai

    View Slide

  2. View Slide

  3. 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

    View Slide

  4. HTTP
    1. Language
    2. Protocol of communication
    3. Web
    4. Communication

    View Slide

  5. 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

    View Slide

  6. 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

    View Slide

  7. 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?

    View Slide