swagger-coverage icon indicating copy to clipboard operation
swagger-coverage copied to clipboard

How to specify basePath wich differrent from swagger specification

Open TheXby opened this issue 5 years ago • 1 comments

Hello, Our swagger shows endoints path as "/api/v1/hotels" But in my tests i specified "/api/v1/hotels" as RestAssured basePath and make requests as: get() or get("/{hotelId}"). Your tool cant recognize it in a proper way and cant find these requests. Is it possible to configure it?

TheXby avatar Jul 07 '20 14:07 TheXby

Hi, @TheXby Not it's not possible to configure. You can write your own filter for rest-assured or try to fix current.

I think the best solution will be to have a proxy, but it hasn't been implemented yet.

viclovsky avatar Jul 08 '20 13:07 viclovsky