Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 823595
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T02:58:19+00:00 2026-05-15T02:58:19+00:00

Looking at the current version of the WADL proposal , I couldn’t quite figure

  • 0

Looking at the current version of the WADL proposal, I couldn’t quite figure out how to document POST request parameters (with application/x-www-form-urlencoded encoding).

I’ve seen something like this in the wild:

<resource path="/path1">
<!-- default is mediaType="application/x-www-form-urlencoded" -->
    <method name="POST">
        <request>
            <name="param1" style="query"/>
        </request>
    </method>
</resource>

However, for a <param style="query"> used as a child of <request>, the spec describes it as:

Specifies a URI query parameter
represented according to the rules for
the query component media type
specified by the queryType attribute.

The “URI query” bit threw me off since, to me, it suggests parameters being appended to the URI instead of being included in the body.

On the other hand, for a <param style="query"> used as a child of <representation>, the spec has:

Specifies a component of the
representation as a name value pair
formatted according to the rules of
the media type. Typically used with
media type
‘application/x-www-form-urlencoded’ or
‘multipart/form-data’.

Do I have to use a <representation> element to explicitly document parameters that will be send in encoding as part of a POST body?

<resource path="/path1">
    <method name="POST">
        <request>
            <representation mediaType="application/x-www-form-urlencoded">
                <name="param1" style="query"/>
            </representation>
        </request>
    </method>
</resource>

This looks like an overkill. I’m assuming I should be able to use the former, even though the spec makes mention of “URI query”.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T02:58:20+00:00Added an answer on May 15, 2026 at 2:58 am

    Now I see that I actually should be using the latter form. Even if it looks like an overkill for simply documenting some POST parameters, it’s better to explicitly document the fact that the parameters are part of the body == representation.

    3rd party edit

    The latter one does probably mean this one

    <resource path="/path1">
        <method name="POST">
            <request>
                <representation mediaType="application/x-www-form-urlencoded">
                    <name="param1" style="query"/>
                </representation>
            </request>
        </method>
    </resource>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my current windows application I am looking on how to give a datasource
How do I find out which version of .NET is installed? I'm looking for
I'm looking for a current (1.2), well-formatted, printable version of the jQuery documentation. I've
I've been looking for some some answers about Adobe AIR in its current version
I'm looking for the right way of communicating the current version of my Aggregate
I'm looking for schemes for application version or milestone naming . I'd like to
I'm looking for something current, iOS5 and Xcode 4.2. I'm not a fan of
Looking for a bit of advice on where to take a current webapp which
I am looking to use an IOC container in my current project which is
I'm looking for some general Optimization Correctness Extensibility advice on my current C++ Hierarchical

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.