MapperService

interface MapperService

Service to map responses. This service is responsible for mapping the original response to a new response based on the mapping rules.

Functions

Link copied to clipboard
abstract fun mapResponse(mappingRules: String, originalResponse: OriginalResponse): MappedResponse

Maps the original response to a mapped response.

Link copied to clipboard
abstract fun responseJsonPreview(mappingRules: String, originalResponseBody: String): String

Generates a preview of the JSON mapped response.

Link copied to clipboard
abstract fun validateMappingRules(mappingRules: String): Boolean

Validates the mapping rules.