-
Navigate to API Gateway.
-
Select Create API > REST API > Build.
- Name your API, AdviceREST
- Click Create API.
- In the Resources section, click Actions > Create Resource.
-
Resource Name: advice
-
Click Create Resource.
- Select the /advice resource.
-
Click Actions > Create Method > GET.
-
For Integration Type, select HTTP.
-
Enter the endpoint URL: https://api.adviceslip.com/advice.
- Click Save and OK to confirm.
-
Click Actions > Deploy API.
-
Select Deploy API and create a new stage:
-
Stage Name: v1.
-
Try the api on a browser tab and adding v1/advice on the URL.
Congratulations for finishing the lab! Please complete the JSON file and submit.
{
"advice_id" : "",
"advice" : ""
}
Good job! Please delete the APIs you created. If you want to try more public API for your persnal project you can check this repo: https://github.com/public-apis/public-apis






