© Rap Payne 2019
R. PayneBeginning App Development with Flutterhttps://doi.org/10.1007/978-1-4842-5181-2_11

11. Making RESTful API Calls with HTTP

Rap Payne1 
(1)
Dallas, TX, USA
 
Now we know how to create a Flutter app, use external libraries and asynchronously read and write data in JSON format. That actually puts us in a great position to go just one small step forward and exchange data with an API server, something that is absolutely essential if we are going to write real-world apps. Here’s what we need to know:
  • What is an API call anyway?

  • Making an HTTP GET or DELETE request.

  • Making an HTTP POST, PUT, or PATCH request.

  • Handling the response in the simplest way.

  • Cleaner handling with FutureBuilder and StreamBuilder.

  • Cleaner handling with strongly typed ...

Get Beginning App Development with Flutter: Create Cross-Platform Mobile Apps now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.