banner



How To Consume Two Restfull Services Using Apigee

Yous're viewing Apigee Edge documentation.
View Apigee X documentation.

Apigee Edge lets you hands and quickly build RESTful APIs that tin be consumed by app developers. You expose APIs on Edge by building API proxies that deed as managed 'facades' for backend services. This topic discusses the relationship betwixt APIs and API proxies on Apigee Border.

Video: Cheque out this short video for an introduction to API proxies.

What is an API?

An API is an interface that makes it easy for ane application to 'consume' capabilities or data from another application. By defining stable, simplified entry points to application logic and information, APIs enable developers to easily access and reuse application logic built past other developers. In the case of 'Web APIs', that logic and information is exposed over the network.

Since applications that consume APIs are sensitive to changes, APIs likewise imply a 'contract'. The contract provides some level of balls that, over time, the API will change in a anticipated manner.

Apigee Border enables you to build APIs and if yous have APIs already, betrayal them directly, while adding a management and visibility layer. If y'all have HTTP enabled services, such as SOA-based Web services, they can also be exposed as APIs via Apigee Edge.

Edge also enables you to build APIs by implementing applications hosted on the API Services platform--with no backend service involved. You tin can build these applications in JavaScript, Coffee, and on Node.js.

What is an API proxy?

You expose APIs on Apigee Border by implementing API proxies. API proxies decouple the app-facing API from your backend services, shielding those apps from backend code changes. Equally you make backend changes to your services, apps continue to phone call the aforementioned API without any suspension.

In an API proxy configuration, there are two types of endpoints:

  • ProxyEndpoint: Defines the style customer apps eat your APIs. You configure the ProxyEndpoint to define the URL of your API proxy. The proxy endpoint as well determines whether apps admission the API proxy over HTTP or HTTPS. You lot commonly attach policies to the ProxyEndpoint to enforce security, quota checks, and other types of admission control and rate-limiting.
  • TargetEndpoint: Defines the way the API proxy interacts with your backend services. You configure the TargetEndpoint to forward requests to the proper backend service, including defining whatever security settings, HTTP or HTTPS protocol, and other connectedness information. You can adhere policies to the TargetEndpoint to ensure that response letters are properly formatted for the app that made the initial asking.

You can visualize API proxies every bit shown by the graphic below:

HTTP requests enter through the proxy request endpoint, are passed to the target request endpoint,      and then sent to the backend services. HTTP responses enter through the target response endpoint, are      passed to the proxy response endpoint, and then back to the client.

How exercise you create an API proxy?

An API proxy consists of a package of XML configuration files and code (such as JavaScript and Coffee). Apigee provides several means for y'all to create API proxies, including:

  • Using the Edge management UI to define an API proxy in a Graphical User Interface (GUI). For more than, meet Build a simple API proxy.
  • Creating XML files, along with any other supporting files, that define your API proxy and and then importing them into Edge.
  • Using the Edge management API to create your API proxies by making a serial of Residual requests to Edge.
  • Deploy a Node.js awarding as a proxy. See Deploying a standalone Node.js app.

What is a policy?

Border enables yous to control API behavior without writing whatsoever code by using policies. A policy is like a module that implements a specific, express management function as role of the proxy request/response catamenia. Policies are designed to let you add common types of management capabilities to an API easily and reliably. Policies provide features similar security, rate-limiting, transformation, and mediation capabilities, saving yous from having to lawmaking and maintain this functionality on your own.

Create your commencement API proxy

Apigee provides a set of tutorials that you can employ to create your first API. Starting time with the Build your first API proxy.

A swell way to acquire well-nigh API proxies is to piece of work with the samples as described in Using the sample API proxies.

Learn more

  • API proxy configuration reference
  • Development tools
  • Deploy API proxies using the management API

Source: https://docs.apigee.com/api-platform/fundamentals/understanding-apis-and-api-proxies

Posted by: hartshornthadvan57.blogspot.com

0 Response to "How To Consume Two Restfull Services Using Apigee"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel