You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In LoopBack 3, it was very easy to get a fully-featured CRUD REST API with very little code: a datasource configuration for a 3rd party webservice (REST, SOAP, etc.) and an empty model attached to that datasource.
Let's provide the same simplicity to LB4 users too and build on top of the mechanism implemented for models in #2036.
User creates a datasource using a web-service connector like REST or SOAP. (No change here.)
User declaratively defines how to expose this service via REST API. At minimum, we need a model name or URL path where to mount the service API.
@loopback/boot processes this configuration and registers appropriate service proxies & controllers with the app.
Note: having config for multiple services in a single JSON file can quickly become a maintenance nightmare, see strongloop/loopback#1316. It will be better to have one config file per service, e.g. public-services/geocoder.json.
provide a set of extensions in order to keep the simplicity of LB3, without the needed to creat e repository, controller for default CRUD actions (only if we need custom actions) ?
bajtos
changed the title
[EPIC] From datasource config to Service REST API with no proxy/controller classes
From datasource config to Service REST API with no proxy/controller classes
Sep 12, 2019
This issue has been marked stale because it has not seen activity within six months. If you believe this to be in error, please contact one of the code owners, listed in the CODEOWNERS file at the top-level of this repository. This issue will be closed within 30 days of being stale.
This issue has been closed due to continued inactivity. Thank you for your understanding. If you believe this to be in error, please contact one of the code owners, listed in the CODEOWNERS file at the top-level of this repository.
In LoopBack 3, it was very easy to get a fully-featured CRUD REST API with very little code: a datasource configuration for a 3rd party webservice (REST, SOAP, etc.) and an empty model attached to that datasource.
Let's provide the same simplicity to LB4 users too and build on top of the mechanism implemented for models in #2036.
@loopback/boot
processes this configuration and registers appropriate service proxies & controllers with the app.Note: having config for multiple services in a single JSON file can quickly become a maintenance nightmare, see strongloop/loopback#1316. It will be better to have one config file per service, e.g.
public-services/geocoder.json
.See also
The text was updated successfully, but these errors were encountered: