-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
statistics: add resource StatConfiguration
* Adds REST configuration. * Adds specific permissions. Co-Authored-by: Valeria Granata <[email protected]> Co-Authored-by: Renaud Michotte [email protected] Co-Authored-by: Johnny Mariéthoz <[email protected]> Co-Authored-by: Bertrand Zuchuat <[email protected]>
- Loading branch information
1 parent
b1fce89
commit d4eb5dd
Showing
26 changed files
with
2,240 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,232 @@ | ||
[ | ||
{ | ||
"pid": "1", | ||
"name": "organisation 1, no distributions", | ||
"description": "Statistics configuration with no distributions", | ||
"category": { | ||
"type": "catalogue", | ||
"indicator": { | ||
"type": "number_of_documents" | ||
} | ||
}, | ||
"organisation": { | ||
"$ref": "https://bib.rero.ch/api/organisations/1" | ||
}, | ||
"frequency": "month", | ||
"is_active": true | ||
}, | ||
{ | ||
"pid": "2", | ||
"name": "organisation 1, circulation, number of checkouts, time range month", | ||
"description": "Statistics configuration with 1 distribution", | ||
"category": { | ||
"type": "circulation", | ||
"indicator": { | ||
"type": "number_of_checkouts", | ||
"distributions": [ | ||
"time_range_month" | ||
] | ||
} | ||
}, | ||
"organisation": { | ||
"$ref": "https://bib.rero.ch/api/organisations/1" | ||
}, | ||
"frequency": "month", | ||
"is_active": true | ||
}, | ||
{ | ||
"pid": "3", | ||
"name": "organisation 1, number of checkouts, library", | ||
"description": "Statistics configuration with 1 distribution", | ||
"category": { | ||
"type": "circulation", | ||
"indicator": { | ||
"type": "number_of_checkouts", | ||
"distributions": [ | ||
"library" | ||
] | ||
} | ||
}, | ||
"organisation": { | ||
"$ref": "https://bib.rero.ch/api/organisations/1" | ||
}, | ||
"frequency": "month", | ||
"is_active": true | ||
}, | ||
{ | ||
"pid": "4", | ||
"name": "organisation 1, 2 distributions", | ||
"description": "Statistics configuration with 2 distributions", | ||
"category": { | ||
"type": "circulation", | ||
"indicator": { | ||
"type": "number_of_checkins", | ||
"distributions": [ | ||
"document_type", | ||
"transaction_channel" | ||
] | ||
} | ||
}, | ||
"organisation": { | ||
"$ref": "https://bib.rero.ch/api/organisations/1" | ||
}, | ||
"frequency": "month", | ||
"is_active": true | ||
}, | ||
{ | ||
"pid": "5", | ||
"name": "organisation 1, 2 distributions, period 1 year", | ||
"description": "Statistics configuration with 2 distributions", | ||
"category": { | ||
"type": "circulation", | ||
"indicator": { | ||
"type": "number_of_checkins", | ||
"distributions": [ | ||
"document_type", | ||
"transaction_channel" | ||
], | ||
"period": "year" | ||
} | ||
}, | ||
"organisation": { | ||
"$ref": "https://bib.rero.ch/api/organisations/1" | ||
}, | ||
"frequency": "month", | ||
"is_active": true | ||
}, | ||
{ | ||
"pid": "6", | ||
"name": "organisation 1, 2 distributions, status disabled", | ||
"description": "Statistics configuration with 2 distributions", | ||
"category": { | ||
"type": "circulation", | ||
"indicator": { | ||
"type": "number_of_checkins", | ||
"distributions": [ | ||
"document_type", | ||
"transaction_channel" | ||
] | ||
} | ||
}, | ||
"organisation": { | ||
"$ref": "https://bib.rero.ch/api/organisations/1" | ||
}, | ||
"frequency": "month", | ||
"is_active": false | ||
}, | ||
{ | ||
"pid": "7", | ||
"name": "organisation 2, no distributions", | ||
"description": "Statistics configuration with no distributions", | ||
"category": { | ||
"type": "catalogue", | ||
"indicator": { | ||
"type": "number_of_documents" | ||
} | ||
}, | ||
"organisation": { | ||
"$ref": "https://bib.rero.ch/api/organisations/2" | ||
}, | ||
"frequency": "month", | ||
"is_active": true | ||
}, | ||
{ | ||
"pid": "8", | ||
"name": "organisation 2, 1 distribution", | ||
"description": "Statistics configuration with 1 distribution", | ||
"category": { | ||
"type": "circulation", | ||
"indicator": { | ||
"type": "number_of_checkouts", | ||
"distributions": [ | ||
"time_range_month" | ||
] | ||
} | ||
}, | ||
"organisation": { | ||
"$ref": "https://bib.rero.ch/api/organisations/2" | ||
}, | ||
"frequency": "month", | ||
"is_active": true | ||
}, | ||
{ | ||
"pid": "9", | ||
"name": "organisation 2, 1 distribution", | ||
"description": "Statistics configuration with 1 distribution", | ||
"category": { | ||
"type": "circulation", | ||
"indicator": { | ||
"type": "number_of_checkouts", | ||
"distributions": [ | ||
"library" | ||
] | ||
} | ||
}, | ||
"organisation": { | ||
"$ref": "https://bib.rero.ch/api/organisations/2" | ||
}, | ||
"frequency": "month", | ||
"is_active": true | ||
}, | ||
{ | ||
"pid": "10", | ||
"name": "organisation 2, 2 distributions", | ||
"description": "Statistics configuration with 2 distributions", | ||
"category": { | ||
"type": "circulation", | ||
"indicator": { | ||
"type": "number_of_checkins", | ||
"distributions": [ | ||
"document_type", | ||
"transaction_channel" | ||
] | ||
} | ||
}, | ||
"organisation": { | ||
"$ref": "https://bib.rero.ch/api/organisations/2" | ||
}, | ||
"frequency": "month", | ||
"is_active": true | ||
}, | ||
{ | ||
"pid": "11", | ||
"name": "organisation 2, 2 distributions, period 1 year", | ||
"description": "Statistics configuration with 2 distributions", | ||
"category": { | ||
"type": "circulation", | ||
"indicator": { | ||
"type": "number_of_checkins", | ||
"distributions": [ | ||
"document_type", | ||
"transaction_channel" | ||
], | ||
"period": "year" | ||
} | ||
}, | ||
"organisation": { | ||
"$ref": "https://bib.rero.ch/api/organisations/2" | ||
}, | ||
"frequency": "month", | ||
"is_active": true | ||
}, | ||
{ | ||
"pid": "12", | ||
"name": "organisation 2, 2 distributions, status disabled", | ||
"description": "Statistics configuration with 1 distribution", | ||
"category": { | ||
"type": "circulation", | ||
"indicator": { | ||
"type": "number_of_checkins", | ||
"distributions": [ | ||
"document_type", | ||
"transaction_channel" | ||
] | ||
} | ||
}, | ||
"organisation": { | ||
"$ref": "https://bib.rero.ch/api/organisations/2" | ||
}, | ||
"frequency": "month", | ||
"is_active": false | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.