SmartBear / readyapi-swagger-plugin

Ready! API Plugin for importing Swagger definitions as REST Services
36 stars 27 forks source link

Adding possibility to overwrite the service endpoint while importing … #46

Closed prakashmrec closed 8 years ago

prakashmrec commented 8 years ago

…Swagger definition into a Ready! API project

olensmar commented 8 years ago

Does the Swagger2Importer have to do this? Can't the client using it simply update the endpoint after importing?

prakashmrec commented 8 years ago

Yes, client can also do it, but then client will have to iterate over all the requests and set endpoint for each one of them. This was simpler :) Also, we can allow users to overwrite endpoint in Ready! API as well if we want to. But I can do it in client if you insist :)

olensmar commented 8 years ago

hehe - I think the SetEndpointAction in R!A actually has code that does this but I don't think it can be reused from here. Sorry - but I'm going to be a pain and ask you to move this the client - perhaps you can create a util class with a "setEndpointOnRequests" method!?

prakashmrec commented 8 years ago

That's ok. I will close this PR and do it in client then. Thanks.