Getting a Question from the REST API
Learn to interact with REST API to perform multiple tasks.
We'll cover the following...
We are going to refactor our existing getQuestion
function to use our http
function to get a single question from our REST API.
Implementing HTTP Request in QuestionsData.ts
Carry out the following steps in QuestionsData.ts
:
We'll start by clearing out the current implementation, like so:
Access this course and 1400+ top-rated courses and projects.