-
Notifications
You must be signed in to change notification settings - Fork 295
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
fix: endpoints implementation in corda plugin #1347
fix: endpoints implementation in corda plugin #1347
Conversation
@petermetz Can you take a look at this, please? I am not sure if this is that you wanted me to do. I started with a remote adapter like plugin-keychain-vault-remote-adapter.ts but later I saw that it was simpler to use those endpoints like proxies to container endpoints (as Vault.client in plugin-keychain-vault.ts) because Corda endpoints are not used when we call container endpoints. |
...gin-ledger-connector-corda/src/main/typescript/web-services/deploy-contract-jars-endpoint.ts
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## main #1347 +/- ##
==========================================
+ Coverage 68.35% 69.80% +1.44%
==========================================
Files 333 336 +3
Lines 12524 12620 +96
Branches 1507 1512 +5
==========================================
+ Hits 8561 8809 +248
+ Misses 3152 2989 -163
- Partials 811 822 +11
Continue to review full report at Codecov.
|
a14b095
to
46c8f76
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@elenaizaguirre A few questions:
- Is the remote adapter pattern not implemented in here? I couldn't find a class for it in the diff.
- Can the OpenAPI validation be done in the JVM implementation? Right now the validation only happens (I think) if you proxied the requests through the NodeJS app but if you were to hit the JVM app directly it wouldn't perform the validations.
46c8f76
to
0ae952a
Compare
9ea7cca
to
f6f0086
Compare
@petermetz |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That pattern is not implemented because I used a proxy to access the internal container.
Okay, that's fine for now but we'll have to move that to a remote adapter once we are adding support to Corda 5.x because that one will have support for RPC directly from JS code
Closes hyperledger-cacti#1346 Signed-off-by: Elena Izaguirre <[email protected]>
f6f0086
to
7314cc1
Compare
Closes #1346
Signed-off-by: Elena Izaguirre [email protected]