Page Contents

Synopsis

Adds a new remote method to an existing application.

lb remote-method [options] [<modelName>] [<methodName>]

With API Connect developer toolkit:

apic loopback:remote-method [options]

With legacy StrongLoop tools:

slc loopback:remote-method [options] [<modelName>] [<methodName>]

Options

-h, --help
ツールのオプションと使い方を表示します。
--skip-cache
質問の回答を記憶しません。既定値は false です。
--skip-install
依存関係を自動的にインストールしません。既定値は false です。

Arguments

All arguments are optional.

Argument Description Type
modelName Name of the model String
methodName Name of the remote method String

Interactive Prompts

The tool will prompt you for:

  • Name of the model to which to add the remote method.
  • Name of the remote method.
  • Whether the method is static (or an instance method).
  • Description of the method.
  • One or more HTTP endpoints, with corresponding accept and return arguments and their types.