Raw body and json issues

Hello Weweb,

I’m building a static collection using a REST API endpoint.

The endpoint is working fine but it doesn’t fetch additional object properties when I bind the json to the Raw Body placeholder (it works fine for dynamic collection).

The raw body looks like this :

{
  "with":[
    "images",
    "amenities",
    "amenities.image",
    "rooms",
    "rooms.images",
    "rooms.beds.bed_type",
    "related_properties",
    "related_properties.main_image",
    "reviews",
    "legal_entity",
    "rates_settings",
    "rates_settings.tax_class",
    "rates_settings.tax_class.taxes",
    "fees",
    "fees.fee_type",
    "location.ancestors",
    "location.images",
    "policies",
    "seo"
  ]
}

Output using Weweb.io :

Output using Talend API :

As you can see for Talend API the object contains the property ``ìmages``` which is included inside the JSON but not in Weweb output.

Works fine using : insomnia, postman and talend API.

Do you have any idea why ?

Thanks in advance,

Lighthama

Hi, could you share your settings inside Postam or Insomnia please ? Like a screenshot showing where you set the body

Edit : I misread you, if it works for dynamic collection but not static collection it must be a bug, could you report it on support.weweb.io please ? We will give a look :slight_smile:

Hello @Alexis,

Thank for your support.

It works when using dynamic collection and toggling “Make this request through a server” activated.

This option is not available using static collection, that might be the cause ?

Here is a video of the setting in Talend API :

Difference in terms of outcome : dynamic collection (first setup) VS. static collection

Edit 1 : The ticket is opened :wink:

Edit 2 : I wonder if I can just add the body as a json instead of JS