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

(-)a/Koha/AdditionalContentsLocalization.pm (+13 lines)
Lines 189-194 sub borrowernumber { Link Here
189
    return $self->additional_content->borrowernumber(@params);
189
    return $self->additional_content->borrowernumber(@params);
190
}
190
}
191
191
192
=head3 public_read_list
193
194
This method returns the list of publicly readable database fields for both API and UI output purposes
195
196
=cut
197
198
sub public_read_list {
199
    return [
200
        'id',      'additional_content_id', 'title',
201
        'content', 'lang',                  'updated_on',
202
    ];
203
}
204
192
=head2 Class Methods
205
=head2 Class Methods
193
206
194
=cut
207
=cut
(-)a/api/v1/swagger/definitions/additional_content.yaml (+5 lines)
Lines 35-40 properties: Link Here
35
    type:
35
    type:
36
      - string
36
      - string
37
      - "null"
37
      - "null"
38
  translated_contents:
39
    description: Related additional contents translations
40
    type:
41
      - array
42
      - "null"
38
required:
43
required:
39
  - additional_content_id
44
  - additional_content_id
40
  - category
45
  - category
(-)a/api/v1/swagger/paths/additional_contents.yaml (-1 / +10 lines)
Lines 35-40 Link Here
35
      - $ref: "../swagger.yaml#/parameters/per_page"
35
      - $ref: "../swagger.yaml#/parameters/per_page"
36
      - $ref: "../swagger.yaml#/parameters/q_param"
36
      - $ref: "../swagger.yaml#/parameters/q_param"
37
      - $ref: "../swagger.yaml#/parameters/q_body"
37
      - $ref: "../swagger.yaml#/parameters/q_body"
38
      - name: x-koha-embed
39
        in: header
40
        required: false
41
        description: Embed list sent as a request header
42
        type: array
43
        items:
44
          type: string
45
          enum:
46
            - translated_contents
47
          collectionFormat: csv
38
    produces:
48
    produces:
39
      - application/json
49
      - application/json
40
    responses:
50
    responses:
41
- 

Return to bug 39900