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

(-)a/api/v1/swagger/definitions/vendor.yaml (+5 lines)
Lines 114-119 properties: Link Here
114
      - string
114
      - string
115
      - "null"
115
      - "null"
116
    description: External id
116
    description: External id
117
  aliases:
118
    type: array
119
    description: List of aliases
120
    items:
121
      $ref: "vendor_alias.yaml"
117
additionalProperties: false
122
additionalProperties: false
118
required:
123
required:
119
  - name
124
  - name
(-)a/api/v1/swagger/definitions/vendor_alias.yaml (+15 lines)
Line 0 Link Here
1
---
2
type: object
3
properties:
4
  id:
5
    description: Internal ID for the extended attribute
6
    type: integer
7
  vendor_id:
8
    description: ID of the vendor
9
    type: integer
10
  alias:
11
    description: The alias
12
    type: string
13
additionalProperties: false
14
required:
15
  - alias
(-)a/api/v1/swagger/paths/acquisitions_vendors.yaml (+10 lines)
Lines 27-32 Link Here
27
      - $ref: "../swagger.yaml#/parameters/q_body"
27
      - $ref: "../swagger.yaml#/parameters/q_body"
28
      - $ref: "../swagger.yaml#/parameters/q_header"
28
      - $ref: "../swagger.yaml#/parameters/q_header"
29
      - $ref: "../swagger.yaml#/parameters/request_id_header"
29
      - $ref: "../swagger.yaml#/parameters/request_id_header"
30
      - name: x-koha-embed
31
        in: header
32
        required: false
33
        description: Embed list sent as a request header
34
        type: array
35
        items:
36
          type: string
37
          enum:
38
            - aliases
39
        collectionFormat: csv
30
    responses:
40
    responses:
31
      "200":
41
      "200":
32
        description: A list of vendors
42
        description: A list of vendors
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/fetch/acquisition-api-client.js (-1 / +3 lines)
Lines 12-17 export class AcquisitionAPIClient extends HttpClient { Link Here
12
            getAll: (query) =>
12
            getAll: (query) =>
13
                this.get({
13
                this.get({
14
                    endpoint: "vendors?" + (query || "_per_page=-1"),
14
                    endpoint: "vendors?" + (query || "_per_page=-1"),
15
                    headers: {
16
                        "x-koha-embed": "aliases",
17
                    },
15
                }),
18
                }),
16
        };
19
        };
17
    }
20
    }
18
- 

Return to bug 33103