API Gateway Creating Resources and Method.

API Gateway Creating Resources and Method.

In Amazon API Gateway, creating resources and methods means defining the structure of your API.

  • A resource represents a specific endpoint (like /users or /orders).
  • A method (like GET, POST, PUT, DELETE) defines what type of request can be made to that resource.

Lab Steps

Step 1: Sign to the AWS Management Console

1. Click on the Open Console button, and you will get redirected to AWS Console in a new browser tab.

2. Copy your User Name and Password in the Lab Console to the IAM Username and Password in the AWS Console and click on the Sign in button.

Step 2 : Create an API

1. Go to the Services menu at the top of the AWS console and select API Gateway.

2. Scroll down and click Build under the REST API section (inside Network and Content Delivery).

3. Under Create new API, choose New API.

4.Enter API Name as JeeviAPI and Click on  Create API button.

You have created JeeviAPI.

Step 3: Creating a Resource

In this step, you will set up a new resource within your API.

  1. After your API has been created, select the JeeviAPI.
  2. Click on Create Reource.
  3. Resources Name: Jeevi  (any name your prefer).
  4. Once you have entered the Resource name, click Create Resource.

Step 4: Creating a Method

  1. After you’ve created the resource, click Create Method.

From the dropdown list, select the GET option.

 2. Set the Integration Type to Mock, then click Create Method.

3. Then click Create Method.

Conclusion:

You have successfully created a GET method with a Mock integration for your resource.

shamitha
shamitha
Leave Comment
Share This Blog
Recent Posts
Get The Latest Updates

Subscribe To Our Newsletter

No spam, notifications only about our New Course updates.

Enroll Now
Enroll Now
Enquire Now