tw4l / bulk-reviewer

DEPRECATED. Replaced with Electron desktop application: https://github.com/bulk-reviewer/bulk-reviewer
GNU Affero General Public License v3.0
13 stars 1 forks source link

Add API endpoint for count of features per file per feature type #29

Open tw4l opened 5 years ago

tw4l commented 5 years ago

API endpoint: /api/session/UUID/features_by_file/

Example of possible JSON to return:

{
  type: "pii.txt",
  count: 320,
  files: [
    {
      filename: "Doc/sample.txt",
      count: 6
    },
    {
      filename: "Doc/MyDocs/sample2.txt",
      count: 1
    },
    ...
  ]
}
tw4l commented 5 years ago

Or - configurable API endpoint - /api/session/UUID/features/FEATURE_TYPE ?