From 2100b856b0ab45db50c3f6476f20b59547445398 Mon Sep 17 00:00:00 2001 From: Jocelyn Fiat Date: Wed, 2 Apr 2014 01:52:31 -0700 Subject: [PATCH] Updated Documentation__Request (markdown) --- Documentation__Request.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Documentation__Request.md b/Documentation__Request.md index b7d4cdda..65bf60b5 100644 --- a/Documentation__Request.md +++ b/Documentation__Request.md @@ -2,9 +2,9 @@ See WSF_REQUEST Note that by default there is a smart computation for the query/post/... parameters: for instance -- `?q=a&q=b` : will create a **WSF_MULTIPLE_STRING** parameter with name **q** and value `[a,b]` -- `?tab[a]=ewf&tab[b]=demo` : will create a **WSF_TABLE** parameter with name **tab** and value `{ "a": "ewf", "b": "demo"}` -- `?tab[]=ewf&tab[]=demo` : will create a **WSF_TABLE** parameter with name **tab** and value `{ "1": "ewf", "2": "demo"}` -- `?tab[foo]=foo&tab[foo]=bar` : will create a **WSF_TABLE** parameter with name **tab** and value `{ "foo": "bar"}` **WARNING: only the last `tab[foo]` is kept**. +- `q=a&q=b` : will create a **WSF_MULTIPLE_STRING** parameter with name **q** and value `[a,b]` +- `tab[a]=ewf&tab[b]=demo` : will create a **WSF_TABLE** parameter with name **tab** and value `{ "a": "ewf", "b": "demo"}` +- `tab[]=ewf&tab[]=demo` : will create a **WSF_TABLE** parameter with name **tab** and value `{ "1": "ewf", "2": "demo"}` +- `tab[foo]=foo&tab[foo]=bar` : will create a **WSF_TABLE** parameter with name **tab** and value `{ "foo": "bar"}` **WARNING: only the last `tab[foo]` is kept**. Those rules are applied to query, post, path, .... parameters. \ No newline at end of file