Fix is simply to include the query parameters in the request line, e.g.
object GovernanceRoutes {
const val GOV_V3 = "${BaseRoutes.V3_BASE}/gov"
const val ALL = "$GOV_V3/proposals?count={count}&page={page}"
}
@RequestLine("GET ${GovernanceRoutes.ALL}")
fun allProposals(
@Param("count") count: Int = 10,
@Param("page") page: Int = 1
): PagedResults<GovProposalDetail>
Summary of Bug
The feign clients in the
api-client
module reject calls that include query parameters because they are not included in the@RequestLine
Version
5.4.0
Steps to Reproduce
Call the client:
Response is:
Solution
Fix is simply to include the query parameters in the request line, e.g.
https://github.com/provenance-io/explorer-service/blob/main/api-client/src/main/kotlin/io/provenance/explorer/client/GovernanceClient.kt
For Admin Use