Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

From datasource config to Service REST API with no proxy/controller classes #3717

Closed
bajtos opened this issue Sep 12, 2019 · 2 comments
Closed

Comments

@bajtos
Copy link
Member

bajtos commented Sep 12, 2019

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.

See also

@bajtos 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
@dhmlau dhmlau added p3 and removed p2 labels Sep 24, 2019
@dhmlau dhmlau added 2019Q2 and removed 2020Q1 labels Nov 15, 2019
@dhmlau dhmlau added 2020Q2 and removed 2019Q2 labels Dec 5, 2019
@dhmlau dhmlau added 2020Q3 and removed 2020Q2 labels Feb 17, 2020
@dhmlau dhmlau added the p3 label Jul 28, 2020
@stale
Copy link

stale bot commented Jul 14, 2021

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.

@stale stale bot added the stale label Jul 14, 2021
@stale
Copy link

stale bot commented Aug 13, 2021

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.

@stale stale bot closed this as completed Aug 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants