-
Notifications
You must be signed in to change notification settings - Fork 27
prefer the 'summary' for naming methods #50
Comments
The summary is in the Swagger definition specified at the operation level so one can have different summaries for GET/POST/PUT/etc methods under the same resource; these correspond to methods in SoapUI - which are all under a single resource - so I'm not sure what summary we would use to name the resource itself. (PostMan "flattens" this structure instead of maintaining the path/method hierarchy). Currently each created method is named using the operationId - but we can improve it to fall back to the summary if no operationId is provided - and we can name the resource with the summary if it only contains one operation? Thoughts? |
At my client we are going through upgrading our stuff from Swagger 1 to 2. I was tasked with verifying that everything looks "acceptable". I tried importing our Swagger into both Postman and SoapUI. I could provide the Swagger resource, but not in a public forum. Send me a mail if you'd like. We worked together on the API Testing Dojo. ;) |
Thanks! I guess this depends on how your Swagger definition was created during the conversion from 1.2 - Currently the Swagger importer will create:
Since the summary in Swagger is at the operation level that would correspond to the method level in SoapUI - not the resource level (which can contain multiple methods/operations) - so I don't see how we would use the summary to name the resource in the situation where the resource has multiple methods... I really appreciate your input - how should we handle this? |
I am not familiar enough with the Swagger (standard?) to know what all can be done in it. I think the "grouping" algorithm in Postman is little better. It appears that Postman groups the methods by the first part of the path. Whereas in SoapUI, I did not see any attempt at grouping things. |
When importing Swagger, currently each resource is named using the path. Further, the path is already displayed in SoapUI following the resource name in square brackets.
It would be better to use use the "summary" from the Swagger to name each resource.
This would be the same behaviour as what Postman does, which ends up with a little cleaner project.
The text was updated successfully, but these errors were encountered: