Add a new API to get info about a single swap via its hash.
- endpoint:
/getswap
- method:
POST (needed to pass the parameter in a request body)
- request body:
GetSwapRequest { payment_hash: String } (the hash of the swap to get the info for)
- response body:
GetSwapResponse { swap: Swap } (Swap structure already exists)
- documentation: add to
README.md and openapi.yaml
- hint: check the implementation of
/listswaps and /getpayment
Add a new API to get info about a single swap via its hash.
/getswapPOST(needed to pass the parameter in a request body)GetSwapRequest { payment_hash: String }(the hash of the swap to get the info for)GetSwapResponse { swap: Swap }(Swapstructure already exists)README.mdandopenapi.yaml/listswapsand/getpayment