Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Retrieve an instance to API Builder using the request.server property.
  2. Retrieve the Model instance using API Builder's getModel('name') method by passing it the name of the model.
  3. Invoke one of the following methods on the Model instance and pass it a callback function, which is passed an error and results object:

Example:

The Route example below retrieves all car model.

...