Skip to content

Latest commit

 

History

History
78 lines (35 loc) · 1.83 KB

File metadata and controls

78 lines (35 loc) · 1.83 KB

1. Set Up API Gateway

  1. Navigate to API Gateway.

  2. Select Create API > REST API > Build.

  1. Name your API, AdviceREST

  1. Click Create API.

2. Create the Resource /advice

  1. In the Resources section, click Actions > Create Resource.

  1. Resource Name: advice

  2. Click Create Resource.

3. Create a GET Method for /advice

  1. Select the /advice resource.

  1. Click Actions > Create Method > GET.

  2. For Integration Type, select HTTP.

  3. Enter the endpoint URL: https://api.adviceslip.com/advice.

  1. Click Save and OK to confirm.

4. Deploy the API

  1. Click Actions > Deploy API.

  2. Select Deploy API and create a new stage:

  3. Stage Name: v1.

  4. 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