Page Contents

Home > @loopback/service-proxy

service-proxy package

A common set of interfaces for interacting with service oriented backends such as REST APIs, SOAP Web Services, and gRPC microservices.

Classes

Class Description
ServiceMixinDoc A dummy class created to generate the tsdoc for the members in service mixin. Please don’t use it.The members are implemented in function ServiceMixin
ServiceProxyMetadata Metadata for a service proxy

Functions

Function Description
getService(ds) Get a service proxy from a LoopBack 3.x data source backed by service-oriented connectors such as rest, soap, and grpc.
ServiceMixin(superClass) A mixin class for Application that creates a .serviceProvider() function to register a service automatically. Also overrides component function to allow it to register repositories automatically.
serviceProxy(dataSource)  

Interfaces

Interface Description
ApplicationWithServices Interface for an Application mixed in with ServiceMixin
Class Interface for classes with new operator.
GenericService A generic service interface with any number of methods that return a promise

Namespaces

Namespace Description
juggler  

Variables

Variable Description
SERVICE_PROXY_KEY  

Type Aliases

Type Alias Description
ServiceProxyDecorator Type definition for decorators returned by @serviceProxy decorator factory