From 87550bdc7cfc2bad53fafc9bc0a16d71ae9497d6 Mon Sep 17 00:00:00 2001 From: Ornithologist Coder Date: Tue, 9 May 2017 14:14:33 +0200 Subject: [PATCH] Changes on ruby arrays as parameters (#226) --- Using-the-API/API.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Using-the-API/API.md b/Using-the-API/API.md index 7eb8ffc..10edcc9 100644 --- a/Using-the-API/API.md +++ b/Using-the-API/API.md @@ -74,8 +74,7 @@ ___ ### Parameter types When an array parameter is mentioned, the Rails convention of specifying array parameters in query strings is meant. -For example, a ruby array like `foo = [1, 2, 3]` can be encoded in the params as `foo[]=1&foo[]=2&foo[]=3`. -Square brackets can be indexed but can also be empty. +For example, a ruby array like `foo = [1, 2, 3]` should be encoded in the params as `foo[]=1&foo[]=2&foo[]=3`, with empty square brackets. When a file parameter is mentioned, a form-encoded upload is expected.