In this lesson, we’ll look at how to use REST API in Dart. To handle REST API in Dart, we will use the http package. We’ll also learn more about Future, async, and await along the way.
Projects
1. Pokemon API
Write a program to fetch data from the Pokemon API and display the data of your favorite pokemon in the console.
2. Movie Searcher
Write a program that uses The Movie Database (TMDB) API to provide the following functionalities (you will need a free API key):
- It will be a CLI program.
- Search for movie information by title.
- View a list of upcoming films.
- Get a list of the best-rated movies.
- Compile a list of popular films.
Add more functionalities as you like.
3. Publish all the above projects
Publish all the above projects to GitHub repositories. Make sure to add a README.md file to each project. Enhance and modify the projects as you like.
4. Tutorial
Write a tutorial on how to use Pokemon API to build a pokemon searcher explaining to beginners how to use the http package and Future, async, and await in Dart.