title: How to get a "params object[]" value from WebApi call?
body: <p>I want to give an undetermined number of parameters on a rest api call like:
  <a href="http://localhost/api/SomeController/a/b/c/d" rel="nofollow">http://localhost/api/SomeController/a/b/c/d</a></p>
  
  <p>but I can't get it working. I'm getting only "keys" array with only one element with value "a/b/c/d"</p>
  
  <p>Here is my Api method:</p>
  
  <pre><code>// GET: api/Base/5
      //[Route("{prms}")]
      [ResponseType(typeof(IHttpActionResult))]
      public virtual IHttpActionResult Get([FromUri]params object[] keys)
      {
          IHttpActionResult result = null;
          try
          {
              //var arrayKeys = keys.Split('/');
              using (var ctx = new MegaContext())
              {
                  TEntity entidad = Repository&lt;TEntity&gt;.Find(context: ctx, prms: keys);
  
                  if (entidad == null)
                  {
                      result = NotFound();
                  }
                  else
                  {
                      result = Ok(entidad.Map());
                  }
              }
          }
          catch (Exception ex)
          {
              result = InternalServerError(Helpers.ExceptionHelper.ProccessException(ex));
          }
  
          return result;
      }
  </code></pre>