coralproject / pillar

Deprecated: Service layer for the Coral ecosystem
Other
4 stars 1 forks source link

API support for sorting/filtering/searching submissions #155

Closed kgardnr closed 8 years ago

kgardnr commented 8 years ago

Form Submissions

and the response having

Submission counts:

This completes: https://github.com/coralproject/cay/issues/435

gabelula commented 8 years ago

We are going to return the total count of submissions for all the flags. plus the total of submissions in the system plus the count for the specific search. //cc @impronunciable @jde

{
   submissions: [ formSubmissions ],
  count: {
    total_search : X
    total_submissions: X
    total_per_flag: {
       "flag": X
       ....
     }
  }
}
gabelula commented 8 years ago

"counts" instead of "count"

the total_per_flag is for the search so we are changing it to "search_by_flag"