Bug 34587: API swagger paths and definitions
[koha.git] / api / v1 / swagger / definitions / erm_counter_file.yaml
1 ---
2 type: object
3 properties:
4   erm_counter_files_id:
5     type: integer
6     description: internally assigned counter_files identifier
7     readOnly: true
8   usage_data_provider_id:
9     description: usage_data_provider_id of the counter_files
10     type: integer
11   type:
12     description: type of the counter_files
13     type: 
14     - string
15     - "null"
16   filename:
17     description: filename
18     type: string
19   file_content:
20     description: file_content
21     type: string
22   date_uploaded:
23     type: string
24     format: date-time
25     description: Timestamp for the date of upload
26   counter_logs:
27     type: array
28     description: counter logs
29     items:
30       $ref: erm_counter_log.yaml
31
32 additionalProperties: false
33 required:
34   - usage_data_provider_id
35   - filename
36   - file_content