Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

What is api resources? How are api resources and api proxy related?

Hi I'm new about apigee edge. I'm confused about keywords between api resources and api proxy.

i think api resources is set of resource and api resources bundled in api product.

and api proxy have a set of resource and api proxy bundled in api product too.

so i think api resources and api proxy is the same thing.

8541-2.jpg

What is api resources? Resouce and api resources is the same thing? How are api resources and api proxy related?

Thank you.

Solved Solved
1 6 687
1 ACCEPTED SOLUTION

Let's take an example. Assume you have an endpoint(URL) which is used to handle all CRUD operations for employees data.

  • Within Apigee you can create an API Proxy using the Employee's Endpoint URL.
  • Once you create the proxy you want to do various calls to the endpoint like,
    • get employees data - GET HTTP method
    • create a new employee - POST
    • update employee details - PUT
    • delete the employee record - DELETE
  • For each of the above calls, you need to send unique requests to your endpoint, to do so we make use of API Resources in API Proxies.
  • We can create 4 API Resources like,
    • getEmployeesData
    • createNewEmployeeRecord
    • updateEmployeeDataById
    • deleteEmployeeDataById
  • Each API Resource can have multiple policies,
    • getEmployeesData
      • Quota Policy allowing 100 calls per minute for Platinum Users
      • Quota Policy allowing 10 calls per minute for Gold Users
    • createNewEmployeeRecord
      • Quota Policy allowing 100 calls per minute for Platinum Users
    • updateEmployeeDataById
      • Quota Policy allowing 100 calls per minute for Platinum Users
    • deleteEmployeeDataById
      • Quota Policy allowing 100 calls per minute for Platinum Users
  • Now you can have multiple Products in Apigee,
    • Platinum Product has a quota config of 100 calls per minute
      • You can map all 4 API Resource in this Product
  • Gold Product has a quota config of 10 calls per minute
    • You can map only getEmployeesData API Resource in this Product
  • In this way, developers who are assigned to the Gold Product can only make a GET call to only one API resource - getEmployeesData
  • API Resources are also called as Conditional Flows in APigee.

    API Resources/Conditional Flows are created inside an API Proxy.

    I have taken the example of one API Proxy with two Products. Similar to this you can have different API Resources from multiple Proxies used in a single Product like,

    API_Proxy_1 there are two resources(/foo1 and /bar1)

    API_Proxy_2 there is one resource (/foobar)

    You can have a,

    Product1 which can have /foo1 and /foobar API resources

    Product2 with only /bar1 API resource

    Watch this video for more explanation.

    View solution in original post

    6 REPLIES 6