Action: FindEvent
FindEvent should be used for all event data queries. Searching and browsing are available depending on which arguments are supplied.
(All arguments are optional, so if no arguments are passed, nothing is returned.)
- display
- Comma-separated list of fields to return (for each event). If none are specified, no event data will be returned. You can also specify "all" if you'd like everything to be returned.
- Example: FindEvent?display=name,description,cost,sponsor
- Possible values are column names from the Event model, found on the Model_Spec page.
- order_by
- Comma-separated list of values. These should be column names, and the results of the query will be sorted in the order you specify.
- Same possible values as display, see Model_Spec
- By default (if order_by isn't specified) the results are returned in order of the event id, ascending. You can specify "desc" if you want them reversed. For example: "FindEvent?order_by=cost%20desc" (%20 is a space)
- search_string
- This argument should contain the user's search query as a string. Only used when search_field is specified. To search all fields, specify "all" as the search_field (below).
- search_field
- This should contain the name of the field (database column) to search. Again, these possible values are the columns of the Event model on the Model_Spec page.
- To search all fields, specify "all" as the search_field. This is not working yet
- If search_field is empty (or not included), search_string (above) will be ignored.
- Note: search_field depends on search_string being included. However, if search_string is unspecified, search_field is ignored.
