Skip to content

Request body explode array #259

@josemtrg

Description

@josemtrg

I'm trying to POST an array of strings on the body content.

This is the most simple example I have

Screenshot 2019-11-28 at 12 50 25

According to the documentation the request should be formated as: "colors=red&colors=green&colors=blue", since im using style=form and explode=true.

Screenshot 2019-11-28 at 12 46 04

But the Curl request format is "colors=red,green,blue" that leads to an invalid request on my node server.

curl -X POST "http://localhost/inventory" -H "accept: /" -H "Content-Type: application/x-www-form-urlencoded" -d "colors=red%2Cgreen%2Cblue"

Am I missing something?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions