UNPKG

@loopback/docs

Version:
530 lines (375 loc) 12.1 kB
<!DOCTYPE html> <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title></title> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="css/bootstrap.min.css"> <link rel="stylesheet" href="css/code-themes/sl-theme.css"> <link rel="stylesheet" href="css/main.css"> </head> <body> <div class="navbar navbar-inverse navbar-static-top" role="navigation"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="/">docs.strongloop.com</a> </div> <div id="modules"></div> </div> <div class="row"> <div class="col-lg-3 column scroll-spy-target"> <ul class="nav nav-pills nav-stacked"> <div id="versions"></div> <li class="depth-3"> <a href="#ServiceProxyMetadata">Class: ServiceProxyMetadata</a> </li> <li class="depth-4"> <a href="#19">constructor()</a> </li> <li class="depth-4"> <a href="#18">dataSource</a> </li> <li class="depth-4"> <a href="#17">dataSourceName</a> </li> <li class="depth-4"> <a href="#16">decorator</a> </li> <li class="depth-3"> <a href="#ServiceProxyDecorator">Type: ServiceProxyDecorator</a> </li> <li class="depth-3"> <a href="#SERVICE_PROXY_KEY">SERVICE_PROXY_KEY</a> </li> <li class="depth-3"> <a href="#33">serviceProxy()</a> </li> <li class="depth-3"> <a href="#GenericService">Interface: GenericService</a> </li> <li class="depth-3"> <a href="#DataSourceConstructor">DataSourceConstructor</a> </li> <li class="depth-3"> <a href="#10">getService()</a> </li> </ul> </div> <div class="col-lg-9 col-lg-offset-3 column" data-spy="scroll" data-target=".scroll-spy-target" data-offset="0"> <div class="readability"> <section class="code-doc "> <a name="ServiceProxyMetadata"></a> <h3 class="code-ref">Class: serviceproxymetadata = new ServiceProxyMetadata()</h3> <!-- Used for displaying comments in Class, Interface, Properties Constructor, Function and Parameters of constructor or function. (Excludes Type alias). --> <div class="code-desc"> <p><p>Metadata for a service proxy</p> </p> <p></p> </div> </section> <section class="code-doc"> <!-- A table of members such as parameters/properties/variables --> <div class="code-arguments-hdr">Properties</div> <table class="params code-arguments"> <tr> <th class="hdr-name">Name</th> <th class="hdr-type">Type</th> <th class="hdr-default-value">Default Value</th> <th class="hdr-flags">Flags</th> <th class="hdr-desc">Description</th> </tr> <tr class="code-arg"> <td> <a name="18"></a> <strong class="code-arg-name"> dataSource </strong> </td> <td class="code-arg-types"> <code><a href="#juggler.DataSource">juggler.DataSource</a></code> </td> <td class="code-arg-default-value"> </td> <td class="code-arg-flags"> exported optional </td> <td class="code-arg-desc"> <!-- Used for displaying comments in Class, Interface, Properties Constructor, Function and Parameters of constructor or function. (Excludes Type alias). --> <div class="code-desc"> <p><p>Metadata for a service proxy</p> </p> <p></p> </div> </td> </tr> <tr class="code-arg"> <td> <a name="17"></a> <strong class="code-arg-name"> dataSourceName </strong> </td> <td class="code-arg-types"> <code>undefined | string</code> </td> <td class="code-arg-default-value"> </td> <td class="code-arg-flags"> exported optional </td> <td class="code-arg-desc"> <!-- Used for displaying comments in Class, Interface, Properties Constructor, Function and Parameters of constructor or function. (Excludes Type alias). --> <div class="code-desc"> <p><p>Metadata for a service proxy</p> </p> <p></p> </div> </td> </tr> <tr class="code-arg"> <td> <a name="16"></a> <strong class="code-arg-name"> decorator </strong> </td> <td class="code-arg-types"> <code>string</code> </td> <td class="code-arg-default-value"> "@serviceProxy" </td> <td class="code-arg-flags"> exported </td> <td class="code-arg-desc"> <!-- Used for displaying comments in Class, Interface, Properties Constructor, Function and Parameters of constructor or function. (Excludes Type alias). --> <div class="code-desc"> <p><p>Metadata for a service proxy</p> </p> <p></p> </div> </td> </tr> </table> </section> <section class="code-doc "> <a name="19"></a> <h4 class="code-ref">constructor(dataSource: string | <a href="#DataSource">DataSource</a>) : <a href="#ServiceProxyMetadata">ServiceProxyMetadata</a></h4> <!-- Used for displaying comments in Class, Interface, Properties Constructor, Function and Parameters of constructor or function. (Excludes Type alias). --> <!-- A table of members such as parameters/properties/variables --> <div class="code-arguments-hdr">Parameters</div> <table class="params code-arguments"> <tr> <th class="hdr-name">Name</th> <th class="hdr-type">Type</th> <th class="hdr-default-value">Default Value</th> <th class="hdr-flags">Flags</th> <th class="hdr-desc">Description</th> </tr> <tr class="code-arg"> <td> <a name=""></a> <strong class="code-arg-name"> dataSource </strong> </td> <td class="code-arg-types"> <code>string | <a href="#DataSource">DataSource</a></code> </td> <td class="code-arg-default-value"> </td> <td class="code-arg-flags"> </td> <td class="code-arg-desc"> <!-- Used for displaying comments in Class, Interface, Properties Constructor, Function and Parameters of constructor or function. (Excludes Type alias). --> <div class="code-desc"> <p><p>Metadata for a service proxy</p> </p> <p></p> </div> </td> </tr> </table> </section> <section class="code-doc "> <a name="SERVICE_PROXY_KEY"></a> <h3 class="code-ref">const SERVICE_PROXY_KEY = MetadataAccessor.create< string, ServiceProxyDecorator >('service.proxy')</h3> <!-- Used for displaying comments in Class, Interface, Properties Constructor, Function and Parameters of constructor or function. (Excludes Type alias). --> </section> <section class="code-doc "> <a name="33"></a> <h3 class="code-ref">Function: serviceProxy</h3> <section class="code-doc "> <a name="33"></a> <h4 class="code-ref">serviceProxy(dataSource: string | <a href="#DataSource">DataSource</a>) : <a href="#(Anonymous function)">(Anonymous function)</a></h4> <!-- Used for displaying comments in Class, Interface, Properties Constructor, Function and Parameters of constructor or function. (Excludes Type alias). --> <!-- A table of members such as parameters/properties/variables --> <div class="code-arguments-hdr">Parameters</div> <table class="params code-arguments"> <tr> <th class="hdr-name">Name</th> <th class="hdr-type">Type</th> <th class="hdr-default-value">Default Value</th> <th class="hdr-flags">Flags</th> <th class="hdr-desc">Description</th> </tr> <tr class="code-arg"> <td> <a name=""></a> <strong class="code-arg-name"> dataSource </strong> </td> <td class="code-arg-types"> <code>string | <a href="#DataSource">DataSource</a></code> </td> <td class="code-arg-default-value"> </td> <td class="code-arg-flags"> </td> <td class="code-arg-desc"> <!-- Used for displaying comments in Class, Interface, Properties Constructor, Function and Parameters of constructor or function. (Excludes Type alias). --> </td> </tr> </table> </section> </section> <section class="code-doc "> <a name="GenericService"></a> <h3 class="code-ref">Interface: GenericService</h3> <!-- Used for displaying comments in Class, Interface, Properties Constructor, Function and Parameters of constructor or function. (Excludes Type alias). --> <div class="code-desc"> <p><p>A generic service interface with any number of methods that return a promise</p> </p> <p></p> </div> </section> <section class="code-doc "> <a name="DataSourceConstructor"></a> <h3 class="code-ref">const DataSourceConstructor = jugglerModule.DataSource as typeof juggler.DataSource</h3> <!-- Used for displaying comments in Class, Interface, Properties Constructor, Function and Parameters of constructor or function. (Excludes Type alias). --> </section> <section class="code-doc "> <a name="10"></a> <h3 class="code-ref">Function: getService</h3> <section class="code-doc "> <a name="10"></a> <h4 class="code-ref">getService(ds: <a href="#DataSource">DataSource</a>) : T</h4> <!-- Used for displaying comments in Class, Interface, Properties Constructor, Function and Parameters of constructor or function. (Excludes Type alias). --> <div class="code-desc"> <p><p>Get a service proxy from a LoopBack 3.x data source backed by service-oriented connectors such as <code>rest</code>, <code>soap</code>, and <code>grpc</code>.</p> </p> <p></p> </div> <!-- A table of members such as parameters/properties/variables --> <div class="code-arguments-hdr">Parameters</div> <table class="params code-arguments"> <tr> <th class="hdr-name">Name</th> <th class="hdr-type">Type</th> <th class="hdr-default-value">Default Value</th> <th class="hdr-flags">Flags</th> <th class="hdr-desc">Description</th> </tr> <tr class="code-arg"> <td> <a name=""></a> <strong class="code-arg-name"> ds </strong> </td> <td class="code-arg-types"> <code><a href="#DataSource">DataSource</a></code> </td> <td class="code-arg-default-value"> </td> <td class="code-arg-flags"> </td> <td class="code-arg-desc"> <!-- Used for displaying comments in Class, Interface, Properties Constructor, Function and Parameters of constructor or function. (Excludes Type alias). --> <div class="code-desc"> <p></p> <p><p>A legacy data source</p> </p> </div> </td> </tr> </table> </section> </section> </div> <div class="intentionally-left-blank"></div> </div> </div> <script src="js/vendor/jquery-1.10.1.min.js"></script> <script src="js/vendor/jquery.scrollTo-1.4.3.1.js"></script> <script src="js/vendor/bootstrap.min.js"></script> <script src="js/main.js"></script> </body> </html>