I am learning AWS, and was deep diving into API Gateway. But what is not clear to me is the difference between resource and method in API Gateway. I got the idea that methods are a part of resource, and they are client facing. Whereas resources, are a broader category, that involves more. Would appreciate if someone, could help me identify the difference between them in a more easier and intuitive way. I have gone through the docs, and a few youtube videos on my end.
Lets take a simple example:
we need 3 resources
When defining them in Api Gateway, second and third resource goes underneath first resource as they are prefexed with /pet
and methods under each resource.
Will look something like this:

The hierarchy can be like


In this image black box are resource and red are methods
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With