-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
Description
Per discussion with @raymondfeng @kjdelisle,
Integration with REST / SOAP can be divided into:
- weakly typed integration
- strongly typed integration (stretch goal for GA)
Overview
Common characteristics for REST and SOAP services
- no fixed set of operations. operations are derived from the service spec (swagger / wsdl / openapi). Not the typescript implementation of the operations/interfaces
- we don't have typescript definition for the interfaces/operations
Spikes
- Weakly typed integration: [Spike] Weakly typed integration with REST/SOAP service #1069
- Strongly typed integration: [Spike] Strongly typed integration - compile-time check #1070
Additional requirement
- service information might need contextual info, e.g. security token and tracing id, which pass to the downstream. -- when you're calling one service to another. If we have this ability, then we can have the distributive tracing - part of the Cloud Native microservice experience.
- We might want to give flexibility to the developers to intercept the service invocation so that it can help to mediate request and response.
DP3 scope
- Leverage existing LoopBack 3.x connectors (soap, rest, swagger, gRPC)
- Need to figure out testability+ document it (see Make services easy to test + docs #1311)
Out of DP3 scope:
- auto-generated .d.ts definitions
- CLI tooling
arash01