[DOCU-2786] Update the Rest Calls - body section at the Rest client module page Created: 25/Jul/23  Updated: 27/Jul/23  Resolved: 27/Jul/23

Status: In Review
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Neutral
Reporter: Carlos Cantalapiedra Assignee: Laura Podkoritnik
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
Template:
Acceptance criteria:
Empty
Task DoR:
Empty

 Description   

At our Rest client module doc entry, we have a section which explains how to send data through the body attribute.

We have:

WARNING: If you intend to send a list of values in the body, you need to convert the list to a string. To send this:

body:
  userId: 1
  title: aTitle

you need to convert it to and send this:

body: '{"userId": 1, "title": "aTitle"}'

But it is not correct, the correct way to send multiple values is:

body: 'userId={userId}& title ={title}' 

Please, update the docs so other costumers don't face issues while trying to send forms with multiple values.


Generated at Mon Feb 12 01:30:16 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.