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
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
Variables
Type Aliases
Type Alias
Description
ServiceProxyDecorator
Type definition for decorators returned by @serviceProxy
decorator factory