Closed tschaffter closed 3 years ago
Pros:
Cons:
Decision: The pros seems to overweight the cons.
Pros:
Cons:
Decision: Not as good as the Angular client library
Pros:
Cons:
Others:
Decision: The Angular client library includes all the benefits of the RxJS library without the cons.
Still need to decide between:
One element in favor of Option 1 is if the client relies on API services generated from different OpenAPI documents. The Angular library client are nicely bundled and the documentation in the README describe how to integrate multiple Angular library clients into an Angular app. The cost of maintaining the library client could be made very small if all it takes is to rerun the generator fed with the new version of the OpenAPI document. This could even be automated using GH workflow by configuring the creation of a PR when a new API version is released (see docker-elk update.yml workflow).
@vpchung I created the client library Sage-Bionetworks/rocc-angular. Both the interfaces and services created look great!
Test with one of the NLP Sandbox microservice (e.g. date annotator). If the client library is intuitive to use, this could become a component of the ROCC Angular app.
https://github.com/OpenAPITools/openapi-generator#overview