Ask a Question

API Test entering complax body

SOLVED
VictorZ
Occasional Contributor

API Test entering complax body

I am trying to post a complex object. The form data input can only have maximum 7 rows in my browser. No scroll bar shown. And I don't what the format is for the RAW mode. I did not find anything in the document.

1 ACCEPTED SOLUTION

Accepted Solutions
AlexKaras
Community Hero

Re: API Test entering complex body

@VictorZ :

how to enter the address?

Just an idea: have you tried to enter

 

{ "Address1": "1234 5th ave.", "PostalCode": "22222"}

 

as a value for the Address field?

Does it work? If you use Fiddler or any other recording proxy, does the above result in a correct expected request body?

 

@MPunsky :

Thank you for the link and video.

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================

View solution in original post

8 REPLIES 8
AlexKaras
Community Hero

Re: API Test entering complax body

Hi,

 

Is this about LoadNinja or ReadyAPI Test?

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
VictorZ
Occasional Contributor

Re: API Test entering complax body

It is for LoadNinja not RealApi.

AlexKaras
Community Hero

Re: API Test entering complax body

Hm-m-m... I did not use LoadNinja for a long time but do not remember where one was able to craft API request manually.

Can you post a screenshot to make things more clear?

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
MPunsky
Staff

Re: API Test entering complex body

VictorZ
Occasional Contributor

Re: API Test entering complex body

VictorZ_0-1628788186452.png

I am trying to enter nested object to a post

VictorZ
Occasional Contributor

Re: API Test entering complex body

Thank you for the video but It did not address my problem. I knew where to enter the request for an API step. I posted an image of the UI for POST request. There seemed no way to enter complex request like { Name: "John", "Email": "John@somewhere.com", "Address" : { "Address1": "1234 5th ave.", "PostalCode": "22222"}. I can enter Name, Email with no problem. But how to enter the address?

 

Thank you for helping.

AlexKaras
Community Hero

Re: API Test entering complex body

@VictorZ :

how to enter the address?

Just an idea: have you tried to enter

 

{ "Address1": "1234 5th ave.", "PostalCode": "22222"}

 

as a value for the Address field?

Does it work? If you use Fiddler or any other recording proxy, does the above result in a correct expected request body?

 

@MPunsky :

Thank you for the link and video.

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================

View solution in original post

sonya_m
Community Manager

Re: API Test entering complex body

Hi @VictorZ ! Please note that you replied straight to the email notification, this way your reply won't reach this thread. 

You wrote that some advice didn't help, however, I see this thread is solved, I hope that you managed to resolve this issue indeed with the most recent comment from Alex.


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
cancel
Showing results for 
Search instead for 
Did you mean: