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

(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/fetch/api-client.js (+4 lines)
Lines 1-19 Link Here
1
import ERMAPIClient from "./erm-api-client";
1
import ERMAPIClient from "./erm-api-client";
2
import PatronAPIClient from "./patron-api-client";
2
import PatronAPIClient from "./patron-api-client";
3
import LibraryAPIClient from "./library-api-client";
3
import AcquisitionAPIClient from "./acquisition-api-client";
4
import AcquisitionAPIClient from "./acquisition-api-client";
4
import AVAPIClient from "./authorised-values-api-client";
5
import AVAPIClient from "./authorised-values-api-client";
5
import ItemAPIClient from "./item-api-client";
6
import ItemAPIClient from "./item-api-client";
6
import RecordSourcesAPIClient from "./record-sources-api-client";
7
import RecordSourcesAPIClient from "./record-sources-api-client";
7
import SysprefAPIClient from "./system-preferences-api-client";
8
import SysprefAPIClient from "./system-preferences-api-client";
8
import PreservationAPIClient from "./preservation-api-client";
9
import PreservationAPIClient from "./preservation-api-client";
10
import CircRuleAPIClient from "./circulation-rules-api-client";
9
11
10
export const APIClient = {
12
export const APIClient = {
11
    erm: new ERMAPIClient(),
13
    erm: new ERMAPIClient(),
12
    patron: new PatronAPIClient(),
14
    patron: new PatronAPIClient(),
15
    library: new LibraryAPIClient(),
13
    acquisition: new AcquisitionAPIClient(),
16
    acquisition: new AcquisitionAPIClient(),
14
    authorised_values: new AVAPIClient(),
17
    authorised_values: new AVAPIClient(),
15
    item: new ItemAPIClient(),
18
    item: new ItemAPIClient(),
16
    sysprefs: new SysprefAPIClient(),
19
    sysprefs: new SysprefAPIClient(),
17
    preservation: new PreservationAPIClient(),
20
    preservation: new PreservationAPIClient(),
18
    record_sources: new RecordSourcesAPIClient(),
21
    record_sources: new RecordSourcesAPIClient(),
22
    circRule: new CircRuleAPIClient(),
19
};
23
};
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/fetch/library-api-client.js (-1 / +23 lines)
Line 0 Link Here
0
- 
1
import HttpClient from "./http-client";
2
3
export class LibraryAPIClient extends HttpClient {
4
    constructor() {
5
        super({
6
            baseURL: "/api/v1/",
7
        });
8
    }
9
10
    get libraries() {
11
        return {
12
            getAll: (query, params, headers) =>
13
                this.getAll({
14
                    endpoint: "libraries",
15
                    query,
16
                    params,
17
                    headers,
18
                }),
19
        };
20
    }
21
}
22
23
export default LibraryAPIClient;

Return to bug 10190