Skip to content

Instantly share code, notes, and snippets.

@thomasmartin-whoz
Last active June 28, 2023 20:14
Show Gist options
  • Save thomasmartin-whoz/f6b0d0ae79032fd72b78de975857f0fd to your computer and use it in GitHub Desktop.
Save thomasmartin-whoz/f6b0d0ae79032fd72b78de975857f0fd to your computer and use it in GitHub Desktop.
override fun transformRequestObjectNode(
requestBody: ObjectNode
): ObjectNode = requestBody.renameProperty("era","periods")
override fun transformResponseObjectNode(
responseBody: ObjectNode
): ObjectNode = responseBody.renameProperty("periods","era")
override fun transformRequestQueryParam(
queryParams: MultiValueMap<String, String>
): MultiValueMap<String, String> = queryParams.renameProperty("era","periods")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment