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

Change example requests in IOUApi #19

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ class IOUApi(val rpcOps: CordaRPCOps) {

/**
* Initiates a flow to agree an IOU between two parties.
* Example request:
* curl -X PUT 'http://localhost:10007/api/iou/issue-iou?amount=99&currency=GBP&party=O=ParticipantC,L=New%20York,C=US'
*/
// @GET
// @Path("issue-iou")
Expand Down Expand Up @@ -159,7 +161,7 @@ class IOUApi(val rpcOps: CordaRPCOps) {
/**
* Settles an IOU. Requires cash in the right currency to be able to settle.
* Example request:
* curl -X PUT 'http://localhost:10007/api/iou/issue-iou?amount=99&currency=GBP&party=O=ParticipantC,L=New%20York,C=US
* curl -X PUT 'http://localhost:10007/api/iou/settle-iou?amount=99&currency=GBP&id=08d9542c-cb24-4bfa-893f-94c8dcec00ef'
*/
@GET
@Path("settle-iou")
Expand Down Expand Up @@ -201,4 +203,4 @@ class IOUApi(val rpcOps: CordaRPCOps) {
.build()
}
}
}
}