mirror of
https://github.com/Qortal/qortal.git
synced 2025-04-23 19:37:51 +00:00
HTLC redeem/refund APIs switched from GET to POST.
This commit is contained in:
parent
ebc3db8aed
commit
78373f3746
@ -11,6 +11,7 @@ import java.util.List;
|
|||||||
|
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import javax.ws.rs.GET;
|
import javax.ws.rs.GET;
|
||||||
|
import javax.ws.rs.POST;
|
||||||
import javax.ws.rs.Path;
|
import javax.ws.rs.Path;
|
||||||
import javax.ws.rs.PathParam;
|
import javax.ws.rs.PathParam;
|
||||||
import javax.ws.rs.core.Context;
|
import javax.ws.rs.core.Context;
|
||||||
@ -173,7 +174,7 @@ public class CrossChainHtlcResource {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@GET
|
@POST
|
||||||
@Path("/redeem/{ataddress}")
|
@Path("/redeem/{ataddress}")
|
||||||
@Operation(
|
@Operation(
|
||||||
summary = "Redeems HTLC associated with supplied AT",
|
summary = "Redeems HTLC associated with supplied AT",
|
||||||
@ -231,7 +232,7 @@ public class CrossChainHtlcResource {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@GET
|
@POST
|
||||||
@Path("/redeemAll")
|
@Path("/redeemAll")
|
||||||
@Operation(
|
@Operation(
|
||||||
summary = "Redeems HTLC for all applicable ATs in tradebot data",
|
summary = "Redeems HTLC for all applicable ATs in tradebot data",
|
||||||
@ -415,7 +416,7 @@ public class CrossChainHtlcResource {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@GET
|
@POST
|
||||||
@Path("/refund/{ataddress}")
|
@Path("/refund/{ataddress}")
|
||||||
@Operation(
|
@Operation(
|
||||||
summary = "Refunds HTLC associated with supplied AT",
|
summary = "Refunds HTLC associated with supplied AT",
|
||||||
@ -463,7 +464,7 @@ public class CrossChainHtlcResource {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@GET
|
@POST
|
||||||
@Path("/refundAll")
|
@Path("/refundAll")
|
||||||
@Operation(
|
@Operation(
|
||||||
summary = "Refunds HTLC for all applicable ATs in tradebot data",
|
summary = "Refunds HTLC for all applicable ATs in tradebot data",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user