viclovsky / swagger-coverage

Tool which generates full picture of coverage of API tests based on OAS (Swagger) v2 and v3
Apache License 2.0
197 stars 37 forks source link

How to specify basePath wich differrent from swagger specification #58

Open TheXby opened 4 years ago

TheXby commented 4 years ago

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?

viclovsky commented 4 years ago

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.