Forum Discussion

luca's avatar
luca
New Contributor
5 years ago

Webservice that allows any POST argument

Hello,

I have a POST webservice that actually allows the user to send any kind of argument, in the form key1=value1&key2=value2&key3=value3...  where key1,key2, key3 are not known before.

I would like to know if this is supported by Swagger specification protocol.

 

If this matters, the webserver is developed with Java EE (JAX-RS), with Swagger 1.5.21.

 

 

4 Replies

  • Are you talking about query parameter or parameters in the payload (form data)?

    • luca's avatar
      luca
      New Contributor

      I'm talking about the payload (POST data).

      • RonRatovsky's avatar
        RonRatovsky
        Moderator

        Just leave the schema of the request body empty. That would mean 'any' value.