Questions tagged [strongloop]

StrongLoop is an API tier for connecting enterprise data to devices and browsers. It includes LoopBackJS, StrongOps, and StrongNode.

LoopBackJS: Open Source API Server powered by Node.js. LoopBackJS is a Node.js powered, an open source API server with built-in mobile services like push and geolocation. These services can be accessed via iOS, Android, and HTML5 SDKs with a variety of connectors to datasources including Oracle, MySQL, and MongoDB.

StrongLoop Arc: A graphical UI for the StrongLoop API platform that complements the slc command line tools for developing APIs quickly and getting them connected to data. Arc also includes tools for building, profiling and monitoring Node.js applications.

Links:

1288 questions
12
votes
5 answers

How to set custom schema for custom remote methods on Strongloop

I'm newbie on Strongloop and I can't find information for how to customize my response class (model schema for a object I built) and I don't know how to show on the API explorer the object with custom data. For example, I have a custom remote…
jrltt
  • 563
  • 7
  • 19
12
votes
2 answers

Modify image obtained from loopback-component-storage

I am using loopback for storing Image to the server. I want to modify the file name of the file before getting saved to the server. Also I want to convert it to another thumbnail form before getting saved. Here is how I am doing. At client…
Robins Gupta
  • 2,973
  • 3
  • 27
  • 52
11
votes
3 answers

Implement change password with Loopback

I am trying to implement the change password feature with Loopback's built-in method, It works fine, but it doesn't update the password with hash instead it just saves a plain text in the db. I am using loopback-component-passport npm package in…
Vicky Gonsalves
  • 10,683
  • 2
  • 33
  • 54
11
votes
3 answers

Strongloop: how do you return an error if Operation Hook fails?

How do you return an error inside an operation hook? Use case is sending a push notification after saving a new model instance. I observe the 'after save' event, send the push. If this fails for whatever reason, I want to send a 500 response code.…
user798719
  • 8,591
  • 21
  • 77
  • 114
11
votes
5 answers

Loopback model CURRENT_TIMESTAMP

I have a model like this - { "name": "MakeCallTestConfiguration", "base": "PersistedModel", "idInjection": true, "properties": { "id": { "type": "number", "id": true, "generated": true }, "destination": { …
Jahid Shohel
  • 1,155
  • 4
  • 14
  • 32
11
votes
2 answers

Execute raw query on MySQL Loopback Connector

How is it possible to execute raw query and expose results through REST API with strongloop? I've read something about using hooks and dataSource.connector.query() but I cannot find any working examples.
marka.thore
  • 2,677
  • 2
  • 16
  • 34
11
votes
4 answers

Loopback discoverAndBuildModels not generating models

I'm trying to get Loopback to discover and build my first table. I've used the simple example on their page at the bottom here: http://docs.strongloop.com/display/LB/Database+discovery+API#DatabasediscoveryAPI-Exampleofbuildingmodelsviadiscovery and…
Organiccat
  • 5,555
  • 17
  • 54
  • 98
11
votes
2 answers

How to set up the ACL to allow everyone list all the Users from the REST API

Im trying to list all the Users in my loopback 2.0 app using the REST API and I'm getting the following error: { "error": { "name": "Error", "status": 401, "message": "Authorization Required", "statusCode": 401, "stack":…
jpcapdevila
  • 175
  • 2
  • 8
10
votes
4 answers

How to automigrate in Loopback

I have renamed a number of models and tables in my loopback application, however I must now migrate to this model definition. I need to run autoMigrate(). It must be run on a dataSource object but the documentation provides no help regarding…
JD.
  • 1,691
  • 4
  • 20
  • 36
10
votes
2 answers

Strongloop app does not load local datasource

I want to use different environment specific datasource configurations in a Strongloop app. I saw at https://docs.strongloop.com/display/public/LB/Environment-specific+configuration that the priority of configurations are: Environment-specific…
Sanandrea
  • 2,062
  • 1
  • 24
  • 44
10
votes
1 answer

Loopback: Embedded Model is not working in offline sync

I have followed the loopback offline sync example and create my own model with embedded document. I created a Model named Project where ProjectMembers are embedded model. Here are my model: Project.json { "name": "Project", "base":…
fyasir
  • 2,620
  • 2
  • 20
  • 34
10
votes
1 answer

Loopback testing with memory as datasource

I'm trying to use the memory-connector as a datasource when doing integration testing. But it seems to always connect to the mongodb-datasource. One major hack i have done is to change the datasource for each model to memory. But there must be a…
Are Almaas
  • 1,023
  • 12
  • 25
9
votes
3 answers

Can I use non-sequential id for loopback model?

Loopback uses sequential number for model ID. Can I use my own ID generator on server side? How do I go about doing that?
Sam
  • 1,167
  • 11
  • 20
9
votes
1 answer

Override GET or any default method on strongloop

I need to override the GET on strongloop. So when I GET foo/ it returns something different as the default one. I tried using remoteMethod with http: {path: '/', verb: 'get'} without success. How can I override any default method on strongloop?
perseus
  • 1,262
  • 1
  • 13
  • 21
9
votes
1 answer

Loopback: Passing multiple object types in a remote method

I have an issue where when I pass two object types as a remote method argument, the first argument gets overwritten by the second argument. Below is code and results. How could I go about not having the second argument not overwrite the first…
emarel
  • 271
  • 5
  • 22
1
2
3
85 86