Skip to content

Instantly share code, notes, and snippets.

@thomasmartin-whoz
Last active May 5, 2023 07:10
Show Gist options
  • Save thomasmartin-whoz/09115897c0951a3b40e3fc7be5fe4d91 to your computer and use it in GitHub Desktop.
Save thomasmartin-whoz/09115897c0951a3b40e3fc7be5fe4d91 to your computer and use it in GitHub Desktop.
interface VersionTransformer {
fun sourceVersionNumber(): ApiVersion
fun accept(exchange: ServerWebExchange): Boolean
fun transformRequestQueryParam(queryParams: MultiValueMap<String, String>): MultiValueMap<String, String> = queryParams
fun transformResponseObjectNode(responseBody: ObjectNode): ObjectNode
fun transformRequestObjectNode(requestBody: ObjectNode): ObjectNode
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment