This article is for LoopBack 2.x, which is no longer supported. Please see the corresponding article for 3.x.

Application REST API

Edit this page
Page Contents

Note: You can use the StrongLoop API Explorer to quickly construct and make requests to a LoopBack app running on the server. If a LoopBack app is running on localhost at port 3000, then by default API Explorer is available at http://localhost:3000/explorer/.

All of the endpoints in the Application REST API are inherited from the PersistedModel REST API. The reference is provided here for convenience.

Quick reference

URI Pattern

HTTP Verb Default Permission Description Arguments

/applications

POST Allow

Add application instance and persist to data source.

JSON object (in request body)
/applications GET Deny Find instances of applications that match specified filter.

One or more filters in query parameters:

  • where
  • include
  • order
  • limit
  • skip / offset
  • fields
/applications PUT Deny Update / insert application instance and persist to data source. JSON object (in request body)
/applications/id GET Deny Find application by ID: Return data for the specified application instance ID. id, the application instance ID (in URI path)
/applications/id PUT Deny Update attributes for specified application ID and persist.

Query parameters:

  • data - An object containing property name/value pairs
  • id - The model id
/applications/id DELETE Deny Delete application with specified instance ID. id, application ID(in URI path)
/applications/id/exists GET Deny

Check instance existence: Return true if specified application ID exists.

URI path:

  • id - Model instance ID
/applications/count GET Deny

Return the number of application instances that matches specified where clause.

Where filter specified in query parameter
/applications/findOne GET Deny

Find first application instance that matches specified filter.

Same as Find matching instances.
Tags: models

AltStyle によって変換されたページ (->オリジナル) /