Reputation: 23
How to send the following request with the body of a Postman request?
{
Consumer:
{
ConsumerId:
}
PersonUnderCare
{
Age: integer
Gender: string
RelationId: integer
RelationOther: string
ProductInUseId: integer
ProductInUseOther: string
Condition:
ConditionOther: string
}
}
Upvotes: 0
Views: 1747
Reputation: 201
you can use a JSON validator to make sure you have valid json, then put it in the body with the "raw" option. Select "body", "raw", and then instead of plain text, select JSON from the drop down menu.
I took some liberties with the code you provided, but I believe the correct JSON format would look something like this
{
"Consumer": {
"ConsumerId": {
"PersonUnderCare": [{
"Age": 9,
"Gender": "gender",
"RelationId": "id",
"RelationOther": "string",
"ProductInUseId": 9,
"ProductInUseOther": "string",
"Condition": "string",
"ConditionOther": "string"
}]
}
}
}
I used JSONLint to validate the JSON
Upvotes: 2