Rest Json syntax

Questions and answers about Plum Fuse+

Moderators: admin, support

  • Author
  • Message
Offline

Alisa Backert

  • Posts: 3
  • Joined: Thu Sep 26, 2019 3:02 pm

Rest Json syntax

PostThu Sep 26, 2019 3:32 pm

We're attempting to use our RESTful web service which accepts a JSON object for the body parameters. One of the parameters requires an array.

We've successfully used the REST module with a request type POST with single variables, but have been unsuccessful when using an array.

Alternately, we attempted using the REST module with the request type POST RAW but have been unsuccessful even with a single variable.

Example of POST RAW:

Code: Select all
{
  "credentials": {
    "1": "sample string 2",
    "3": "sample string 4"
  },
  "election": "aded1ff2-2943-4b7d-a868-7081c8fc98fa",
  "phase": "sample string 2"
}


https://imgur.com/a/Xbtt082

Example regular POST
https://imgur.com/a/PHqmisT
Offline

support

  • Posts: 3627
  • Joined: Mon Jun 02, 2003 3:47 pm
  • Location: Boston, MA

Re: Rest Json syntax

PostFri Oct 04, 2019 6:44 am

Hi Alisa,

Thank you for your patience- we've tried looking into your account for associated logs and testing things ourselves to recreate the issue but have been unsuccessful so far. Everything appears to be working as expected - can you kindly elaborate on what you mean by unsuccessful?

Thank you,
Plum Support
Offline

Alisa Backert

  • Posts: 3
  • Joined: Thu Sep 26, 2019 3:02 pm

Re: Rest Json syntax

PostFri Oct 04, 2019 4:37 pm

Hi,

Sorry for the delay in responding. We figured it out. We just needed to set the header value to "Content-Type: application/json" and that resolved the issue.

Return to Plum Fuse+ Q&A

Who is online

Users browsing this forum: No registered users and 1 guest

cron