cancel
Showing results for 
Search instead for 
Did you mean: 

Problem using form editor with certain REST resources/methods

Highlighted
Occasional Contributor

Problem using form editor with certain REST resources/methods

Hi,

 

I´ve used Swaggerhubs Petstore example (https://petstore.swagger.io/) when creating a REST request example.

Problem is that form editor is not supported in several requests. It just states "Form editor is not applicable for this request".

 

One example is the POST method "addPet" where you have a payload in the body but can't get the Form editor to interpret the structure of the request. I've added an attachment to illustrate.

 

Now, we're seeing the same behaviour with our own newly developed REST APIs, i.e the form editor is not applicable.

 

Is there a way of creating the Open Api Specifikation so that ReadyAPI always can make use of the form editor?

 

Best regards

Mathias

 

P.s I notice that swagger petstore example uses swagger version 2.0 while our in-house project uses Open Api Specifikation 3.0

Mahias Eklund
3 REPLIES 3
Highlighted
Moderator

Re: Problem using form editor with certain REST resources/methods

Hi ecsmmek,

 

The Form view for requests is based on parameters. If there are no parameters, then you get the "Form editor is not applicable for this request" message. It's just a warning and should have any impact on a test execution.

 

Here is the link about the REST parameters: https://www.soapui.org/rest-testing/understanding-rest-parameters.html



Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
Highlighted
Occasional Contributor

Re: Problem using form editor with certain REST resources/methods

Hello again,

We've been using ReadyAPI for a long time with wsdl/xsd files and many of the users are very happy with the Form editor since it automatically arranges inputs filelds when using large request.

 

Now we're in a new project with similar requests but using REST instead of SOAP. Is there any way we could create/design openapi.json files in a certain way in order for ReadyApi tool to interpret them so that we could use Form Editor in the same way as with wsdl/xsd files? 

 

Or is there some improvement you can do within the ReadyAPI tool itself that would facilitate the use of Form Editor for large REST requests?

 

Manually adding parameter request is tiresome and also you loose the api structure. Also you need to switch between "Project" and "SoapUI" view when adding/removing parameters.

 

Best regards

Mathias

Mahias Eklund
Highlighted
Moderator

Re: Problem using form editor with certain REST resources/methods

ecsmmek,

 

If the values of a request should be passed in the body you shouldn't add these values to the properties in order to view them on the Form tab.

 

You can open a new feature request here: https://community.smartbear.com/t5/ReadyAPI-Feature-Requests/idb-p/ReadyAPIFeatureRequests

or create a new support case here: https://support.smartbear.com/message/?prod=ReadyAPI

 



Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
New Here?
Join us and watch the welcome video:
Announcements
TechCorner Leaderboard
Compete with community members in the TechCorner Challenge and get into the Leaderboard!

Rank Participant Points Earned
1 msiadak 12
2 nmrao 8
3 HimanshuTayal 3
Top Kudoed Authors