Hi everyone, I have quick question for you. If I w...
# help
m
Hi everyone, I have quick question for you. If I want to have a different response depending on if a query param is present or not can it be done on the same mapping builder or should I separate them? This does not seem to work
Copy code
MappingBuilder mappingBuilder = get(urlPathEqualTo(
            createUrl("/api/some/endpoint/" + uuid)));

mappingBuilder
        .withQueryParam("status", equalTo("Active"))
        .willReturn(responseWithHeader()
        .withBody(RESPONSE_404));

mappingBuilder
    .willReturn(responseWithHeader()
    .withBody(RESPONSE_200));
l
I think I would keep them separate