API Gateway Overview
API Gateway is an edge service and acts as single point of reference for all REST APIs available through PEM Portal and the Partner Repository. To use single context APIs and read documentation, see Deploy API Gateway.
The following are the advantages of the API Gateway service:
- Consistency with respect to how the REST APIs are made available for all PEM applications
- All APIs are exposed through a single context rest instead of multiple contexts likepemws, mrmws, and mdrws.For example, instead of:
You can use:https://<hostname>/pemws/sponsors/<sponsor_name>/partners/<partner_key> https://<hostname>/mdrws/sponsors/<sponsor_name>/partners/<partner_key> https://<hostname>/mrmws/sponsors/<sponsor_name>/partners/<partner_key>https://<hostname>/rest/sponsors/<sponsor_name>/partners/<partner_key>Note: The single context method of calling APIs is only available if API Gateway container is started. - APIs are no longer duplicated as they are merged under the same context.
- API Gateway also acts as a load balancer for the underlying application containers thereby ensuring high availability for the REST APIs.