=== modified file 'src/docbkx/en/dhis2_user_man_web_api.xml' --- src/docbkx/en/dhis2_user_man_web_api.xml 2014-07-07 09:14:05 +0000 +++ src/docbkx/en/dhis2_user_man_web_api.xml 2014-07-09 08:10:45 +0000 @@ -5028,6 +5028,37 @@ Example 3: Get JSON schema for a specific class:GET /api/schemas/dataElement.json
+ UI Customization + To customize the UI of the DHIS 2 application you can insert custom Javascript and CSS + styles through the files resource. The Javascript and CSS + content inserted through this resource will be loaded by the DHIS 2 web application. This can + be particularly useful in certain situations: + + + Overriding the CSS styles of the DHIS 2 application, such as the login page or main + page. + + + Defining Javascript functions which are common to several custom data entry forms and + HTML-based reports. + + + Including CSS styles which are used in custom data entry forms and HTML-based + reports. + + + To insert Javascript from a file called script.js you + can interact with the files/script resource: + curl -d @script.js "localhost/api/files/script" -H "Content-Type:application/javascript" -u system:System123 -v + You can fetch the Javascript content with a GET-request: + localhost/api/files/script + To insert CSS from a file called style.css you can + interact with the files/style resource: + curl -d @style.css "localhost/api/files/style" -H "Content-Type:text/css" -u system:System123 -v + You can fetch the CSS content with a GET-request: + localhost/api/files/style +
+
FRED API DHIS 2 from version 2.11 implements support for the current draft of the FRED API version 1.0. The project defines itself as open standard for sharing and updating