0

If I have a resource handler method receiving an object list as parameter (int list, string list or any object type list), i.e.:

 public class TasksCollecionHandler 
    { 
        public TaskCollection GetTasksByEngineer(List<int> engineerIds) 
        { 
            .... 
        } 
        public TaskCollecion GetTasksByEngineer(List<Engineer> engineers) 
        { 
           .... 
        } 
    } 
  1. Is OpenRasta supporting this kind of arguments?
  2. How the HTTP request including values for kind of arguments should look like?
Curtis
  • 101,612
  • 66
  • 270
  • 352

1 Answers1

0

Depends on the codec. Using json or xml data contracts it'd be whatever format the datacontract mapping follows.

If you use forms and html, the format would be

engineers:0.FirstName=john&engineers:0.LastName=doe&engineers:1.FirstName=other
SerialSeb
  • 6,701
  • 24
  • 28
  • If we take the sample of List can it be put in a singe GET request string? – user1137909 Jan 24 '12 at 19:05
  • I haven't written any code to cover that scenario, so not out of the box no. You can always provide your own binder on the attribute to parse the string yourself i'd think. – SerialSeb Jan 25 '12 at 16:12