Getting a Question from the REST API
Learn to interact with REST API to perform multiple tasks.
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:
Get hands-on with 1400+ tech skills courses.