-
Notifications
You must be signed in to change notification settings - Fork 1
API Docs
yuenmichelle1 edited this page Jul 24, 2023
·
15 revisions
/comments/classifications/classifications/:user_id/classifications/:user_group_id
The following are all allowable params for /comments (we also allow combinations of params in order for our users/clients to view more detailed responses depending on what they query). Callout examples and responses can be found here
-
/comments: will returntotal_countof comments of all time -
/comments?start_date=__&end_date=__: returnstotal_countof comments between that date range (you can also query by just start_date or by just end_date) -
/comments?period=day: will returntotal_countof comments of all time and the breakdown of comment counts bucketed by theperiod(this breakdown lives indataattribute of response).-
periodcan either be:dayweekmonthyear
-
-
/comments?project_id=__: will returntotal_countof comments for givenproject_id/s. We can search by multiple projects.
(Eg./comments?project_id=1,2. Note thatproject_ids are separated by ,.)
NOTE: that when searching by multiple projects, ERAS will not break up counts by project, but rather total it up. (Same thing withuser_id/s for counting comments andworkflow_id/s for counting classifications) -
/comments?user_id=: will returntotal_countof comments for givenuser_id/s. Similar to?project_idbut with users.
NOTE: this callout byuser_iddoes not require any authorizations. Reasoning behind this is that all comments are viewable in Talk anyway. In this way, we get a simpler implementation.
-
/classifications=> will returntotal_countof classifications of all time -
/classifications?start_date=&end_date==> returnstotal_countof classifications between that date range (you can also just havestart_dateor just haveend_date -
/classifications?period=day=> will returntotal_countof classifications of all time and breakdown of classification count bucketed byperiod. Period only allowsday,week,month,yearas allowed buckets. -
/classifications?workflow_id==> will returntotal_countof classifications for given workflow_id/workflow_ids. Can search by multiple workflows.
(Eg./classifications?workflow_id=1,2workflow_ids separated by,.)
-
But note that when searching by multiple workflows, ERAS will not break up counts by workflow but rather total it up..
- For simplicity sake, we do not allow search by BOTH
workflow_idandproject_id, mainly to save a check to Panoptes to see if workflow/s belong to project/s (i.e. a callout to/classifications?workflow_id=1,2&project_id=3is NOT valid. Either search byworkflow_idorproject_id)
-
But note that when searching by multiple workflows, ERAS will not break up counts by workflow but rather total it up..
-
/classifications?project_id==> will returntotal_countof classifications for givenproject_id/s. Similar to ?workflow_id but this time with projects.
Are you... Ready for it?
Home
User Groups Stats Visibility Levels
Data Tables
Mappings from Source Tables to ERAS
Continuous Aggregates
Decisions Around Session Time Caps