Skip to content

[19.0][DOC] endpoint: document request parameter handling - #202

Open
dreispt wants to merge 1 commit into
19.0from
19.0-endpoint-readme-request-params
Open

dreispt wants to merge 1 commit into
19.0from
19.0-endpoint-readme-request-params

Conversation

@dreispt

@dreispt dreispt commented Nov 10, 2026

Copy link
Copy Markdown
Member

Summary

Documents how endpoint code snippets can read request parameters, following the discussion in #114 where @simahawk suggested documenting the existing capability instead of adding a querystring_params feature.

  • New readme/USAGE.md fragment (+ regenerated-style README.rst section) explaining:
    • request.params: flat dict populated by the dispatcher (query string + form/files + path args for http routes; parsed JSON body + path args for json routes); repeated keys collapse
    • request.httprequest.args: query-string-only Werkzeug MultiDict, including getlist() for repeated keys like ?tag=a&tag=b
    • request.httprequest.form for form bodies and request.get_json_data() for JSON bodies on http routes

Docs-only change; no code touched.

Test plan

  • Verified behavior against Odoo's HttpRequest.dispatch/JsonRequest.dispatch (request.params composition) and endpoint.route.handler route types
  • Rendered README check by reviewer

Assisted-by: Devin:SWE-2 Flash Medium

Explain how code snippets can read query string parameters, contrasting
request.params (flat dict merging query string, body and path args)
with request.httprequest.args (query-string-only MultiDict supporting
getlist() for repeated keys), as discussed in #114.

Assisted-by: Devin:SWE-2 Flash Medium
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hi @simahawk,
some modules you are maintaining are being modified, check this out!

@simahawk simahawk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@dreispt dreispt changed the title [DOC] endpoint: document request parameter handling [19.0][DOC] endpoint: document request parameter handling Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants