Change the default request name
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Change the default request name
Hi all,
Not sure I am in the right section...
Let's say I use the Swagger definition of Swagger Petsore here : https://petstore.swagger.io/v2/swagger.json
If I import these definitions in ReadyApi, I get something that will look like this :
I was wondering if there is any way to define specific names for the requests in Swagger to avoid having default request names, something that would result in this for example :
I know it is possible to rename these requests directly in ReadyApi but if I do that, next time I perform an API definition update from ReadyApi, the tool won't match the manually renamed request with the existing request, which means I will end up with something like this :
Please let me know if my question is not clear, english is not my mother tongue and I can be a bit unclear sometimes 🙂
Thanks
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What if you don't keep those requests at all as they anyway not belongs to any test case nor executed.
Regards,
Rao.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Rao,
Thanks for your reply. I am not sure what you mean, I showed the API part but that does not mean these requests are not used in any test case (they actually are).
Have I misunderstood something ?
Regards
Olivier
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
A little "up" with the hope that someone will be able to help 🙂
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @_Oliver_
If I understood you correctly, when you've imported the swagger in ReadyAPI and you create a testsuite, the popupwindow is asking you if you want the method to be inserted. Correct? If you say yes, then the methods that were preconfigured in the swagger, will show up here. Thus, if you want, each time when you update/refactor your api's, that you have the same names, you should update your swagger.
That is, if I understood you correctly. 🙂
Kind regards,
AAB
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@_Oliver_ well, I'm not a developper, but I've looked arround a bit and I came accross these:
https://docs.swagger.io/spec.html#523-operation-object
https://stackoverflow.com/questions/9569270/custom-method-names-in-asp-net-web-api
Have look in there, maybe this can help?
Kind regards,
AAB
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for helping, Community!
@_Oliver_ were you able to solve your issue using the advice from the Community?
Sonya Mihaljova
Community and Education Specialist
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
