Skip to content

Commit

Permalink
Merge branch 'hotfix/1.4.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
dgeorgiev committed Jun 25, 2024
2 parents 421609e + 6b1d3b1 commit 20676c1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ interface WeContractServiceApiFeign {
@Param("key") key: String,
): Optional<DataEntryDto>

@RequestLine("GET /contracts/{contractId}?offset={offset}&matches={matches}&limit={limit}")
@RequestLine("GET /contracts/{contractId}?limit={limit}&offset={offset}&matches={matches}")
fun contractKeys(
@Param("contractId") contractId: String,
@Param("offset") limit: Int? = null,
@Param("matches") offset: Int? = null,
@Param("limit") matches: String? = null,
@Param("limit") limit: Int? = null,
@Param("offset") offset: Int? = null,
@Param("matches") matches: String? = null,
): List<DataEntryDto>

@RequestLine("GET /contracts/info/{contractId}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ internal class WeContractServiceApiFeignTest {
fun `should get contract keys`() {
val dataEntryDtoList = weContractServiceApiFeign.contractKeys(
contractId = "8mYpzj5rVVQSp2DgsyMvoMSViHtX94dJHkPyX2xo855y",
limit = 3,
offset = 3,
matches = "any_match",
)

dataEntryDtoList.apply {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"request": {
"method": "GET",
"url": "/contracts/8mYpzj5rVVQSp2DgsyMvoMSViHtX94dJHkPyX2xo855y"
"url": "/contracts/8mYpzj5rVVQSp2DgsyMvoMSViHtX94dJHkPyX2xo855y?limit=3&offset=3&matches=any_match"
},
"response": {
"status": 200,
Expand Down

0 comments on commit 20676c1

Please sign in to comment.