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

(-)a/installer/data/mysql/atomicupdate/bug_22061_public_api.perl (+14 lines)
Line 0 Link Here
1
$DBversion = 'XXX';  # will be replaced by the RM
2
if( CheckVersion( $DBversion ) ) {
3
4
    $dbh->do(q{
5
        INSERT IGNORE INTO systempreferences
6
            ( variable, value, options, explanation, type )
7
        VALUES
8
            ('RESTPublicAPI','1',NULL,'If enabled, the REST API will expose the /public endpoints.','YesNo')
9
    });
10
11
    # Always end with this (adjust the bug info)
12
    SetVersion( $DBversion );
13
    print "Upgrade to $DBversion done (Bug 22061 - Add a /public namespace that can be switched on/off)\n";
14
}
(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 485-490 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
485
('ReservesNeedReturns','1','','If ON, a hold placed on an item available in this library must be checked-in, otherwise, a hold on a specific item, that is in the library & available is considered available','YesNo'),
485
('ReservesNeedReturns','1','','If ON, a hold placed on an item available in this library must be checked-in, otherwise, a hold on a specific item, that is in the library & available is considered available','YesNo'),
486
('RESTdefaultPageSize','20','','Default page size for endpoints listing objects','Integer'),
486
('RESTdefaultPageSize','20','','Default page size for endpoints listing objects','Integer'),
487
('RESTOAuth2ClientCredentials','0',NULL,'If enabled, the OAuth2 client credentials flow is enabled for the REST API.','YesNo'),
487
('RESTOAuth2ClientCredentials','0',NULL,'If enabled, the OAuth2 client credentials flow is enabled for the REST API.','YesNo'),
488
('RESTPublicAPI','1',NULL,'If enabled, the REST API will expose the /public endpoints.','YesNo'),
488
('RestrictedPageLocalIPs','',NULL,'Beginning of IP addresses considered as local (comma separated ex: "127.0.0,127.0.2")','Free'),
489
('RestrictedPageLocalIPs','',NULL,'Beginning of IP addresses considered as local (comma separated ex: "127.0.0,127.0.2")','Free'),
489
('RestrictedPageContent','',NULL,'HTML content of the restricted page','TextArea'),
490
('RestrictedPageContent','',NULL,'HTML content of the restricted page','TextArea'),
490
('RestrictedPageTitle','',NULL,'Title of the restricted page (breadcrumb and header)','Free'),
491
('RestrictedPageTitle','',NULL,'Title of the restricted page (breadcrumb and header)','Free'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/web_services.pref (-1 / +6 lines)
Lines 11-16 Web services: Link Here
11
                  yes: Enable
11
                  yes: Enable
12
                  no: "Disable"
12
                  no: "Disable"
13
            - "the OAuth2 client credentials grant for the REST API. Requires Net::OAuth2::AuthorizationServer installed. [EXPERIMENTAL]"
13
            - "the OAuth2 client credentials grant for the REST API. Requires Net::OAuth2::AuthorizationServer installed. [EXPERIMENTAL]"
14
        -
15
            - pref: RESTPublicAPI
16
              choices:
17
                  yes: Enable
18
                  no: "Disable"
19
            - "the /public namespace of the API."
14
    OAI-PMH:
20
    OAI-PMH:
15
        -
21
        -
16
            - pref: OAI-PMH
22
            - pref: OAI-PMH
17
- 

Return to bug 22061