0

I am new to REST APIs and JSON and I've got a beginner question. The API that I am trying to use is asking for parameters according to the following schema:

<GetAppts xmlns="<Removed>" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:urn1="<Removed>">
<!--idtype occurs:0,1-->
<Patient xsi:nil="false">
<!--string occurs:0,1-->
<urn1:ID xsi:nil="false">Z42991</urn1:ID>
<!--string occurs:0,1-->
<urn1:Type xsi:nil="false">External</urn1:Type>
</Patient>
</GetAppts>

Example request parameters would be:

{"Patient":{"ID":"E1234","Type":"MRN"}}

However, when I am attempting to use SoapUI and Postman to test this API, I only see Key-Value pairs for the parameters, and I have no idea how to nest the ID and Type inside a Patient Object:

SoapUI Parameters

Postman Parameters

2
  • Hi caburse. Could you be more specific on how to do this exactly? Commented May 10, 2018 at 17:04
  • In postman try switching to body raw and you can add the json text Commented May 10, 2018 at 17:11

1 Answer 1

1

Try adding the Json Text. Click Body then the raw radio button. Post Man

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.