I am new to typescript and I want to create an API call and fetch the json data from it instead of using this hardcoded json data.
This is my code: