Closed okondrashin closed 6 years ago
@chornyi Any thoughts?
For me, the idea that we will have a possibility to override parameters from the request using URL - sounds good. But on another hand, we may increase the complexity of using body-transformer and bug finding for regular users.
@KRoLer @tranhungt What are you think about variants? (a, b)
I agree with @KRoLer that allowing parameters to be overridden by one method over another can be complex and bug prone.
To my understanding, API calls do not use more than one specification to transfer data in RESTful API's. For example, JSON body is used in a PUT/POST, whereas query params are used in GET.
Is there a common practice where a JSON body request will also include query params to specify its data content?
@tranhungt @KRoLer You are right. Usually api calls use one specification to transfer data) I think this issue can be closed)
Thanks @okondrashin
The current behaviour of wire mock-body-transformer is:
This behaviour is not supports to use query parameters with request body look like json,xml,key/value from the box (without using urlRegex parameters).
What you think about to change the behaviour? Which variant is better?
Variant a)
Variant b)
The variant a will save backward compatibility if someone uses query parameters with body with same field names. But I think the variant b is more logical for setting priorities for the names of fields.
I can create pr :)