View | Details | Raw Unified | Return to bug 36627
Collapse All | Expand All

(-)a/Koha/ERM/EUsage/CounterLog.pm (+12 lines)
Lines 31-36 Koha::ERM::EUsage::CounterLog - Koha ErmCounterLog Object class Link Here
31
31
32
=cut
32
=cut
33
33
34
=head3 to_api_mapping
35
36
This method returns the mapping for representing a Koha::ERM::EUsage::CounterLog
37
on the API.
38
39
=cut
40
41
sub to_api_mapping {
42
    return {
43
        borrowernumber => 'patron_id',
44
    };
45
}
34
46
35
=head3 patron
47
=head3 patron
36
48
(-)a/api/v1/swagger/definitions/erm_counter_log.yaml (-4 / +3 lines)
Lines 10-17 properties: Link Here
10
    type:
10
    type:
11
    - integer
11
    - integer
12
    - "null"
12
    - "null"
13
  borrowernumber:
13
  patron_id:
14
    description: borrowernumber of the counter log
14
    description: patron_id of the counter log
15
    type:
15
    type:
16
    - integer
16
    - integer
17
    - "null"
17
    - "null"
Lines 43-47 properties: Link Here
43
additionalProperties: false
43
additionalProperties: false
44
required:
44
required:
45
  - filename
45
  - filename
46
  - borrowernumber
46
  - patron_id
47
  - counter_files_id
47
  - counter_files_id
48
- 

Return to bug 36627