{"id":147,"date":"2023-10-26T13:05:14","date_gmt":"2023-10-26T13:05:14","guid":{"rendered":"https:\/\/xnat-repository.icr.ac.uk\/?page_id=147"},"modified":"2023-12-07T14:01:17","modified_gmt":"2023-12-07T14:01:17","slug":"our-technology","status":"publish","type":"page","link":"https:\/\/xnat-repository.icr.ac.uk\/?page_id=147","title":{"rendered":"REST interface"},"content":{"rendered":"<div class=\"n2_clear\"><ss3-force-full-width data-overflow-x=\"body\" data-horizontal-selector=\"body\"><div class=\"n2-section-smartslider fitvidsignore  n2_clear\" data-ssid=\"4\"><div id=\"n2-ss-4-align\" class=\"n2-ss-align\"><div class=\"n2-padding\"><div id=\"n2-ss-4\" data-creator=\"Smart Slider 3\" data-responsive=\"fullwidth\" class=\"n2-ss-slider n2-ow n2-has-hover n2notransition  \">\n        <div class=\"n2-ss-slider-1 n2-ow\">\n            <div class=\"n2-ss-slider-2 n2-ow\">\n                <div class=\"n2-ss-slide-backgrounds n2-ow-all\"><div class=\"n2-ss-slide-background\" data-public-id=\"1\" data-mode=\"fill\"><div class=\"n2-ss-slide-background-image\" data-blur=\"0\" data-opacity=\"100\" data-x=\"50\" data-y=\"50\" data-alt=\"XNAT-OHIF viewer\" data-title=\"\"><picture class=\"skip-lazy\" data-skip-lazy=\"1\"><img decoding=\"async\" src=\"\/\/xnat-repository.icr.ac.uk\/wp-content\/uploads\/2023\/10\/viewer_multimodal_1900x600.png\" alt=\"XNAT-OHIF viewer\" title=\"\" loading=\"lazy\" class=\"skip-lazy\" data-skip-lazy=\"1\"><\/picture><\/div><div data-color=\"RGBA(255,255,255,0)\" style=\"background-color: RGBA(255,255,255,0);\" class=\"n2-ss-slide-background-color\"><\/div><\/div><\/div>                <div class=\"n2-ss-slider-3 n2-ow\">\n                    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 1900 600\" data-related-device=\"desktopPortrait\" class=\"n2-ow n2-ss-preserve-size n2-ss-preserve-size--slider n2-ss-slide-limiter\"><\/svg><div data-first=\"1\" data-slide-duration=\"0\" data-id=\"28\" data-slide-public-id=\"1\" data-title=\"viewer_multimodal_1900x600\" class=\"n2-ss-slide n2-ow  n2-ss-slide-28\"><div role=\"note\" class=\"n2-ss-slide--focus\" tabindex=\"-1\">viewer_multimodal_1900x600<\/div><div class=\"n2-ss-layers-container n2-ss-slide-limiter n2-ow\"><div class=\"n2-ss-layer n2-ow n-uc-QNdIH15tGneR\" data-sstype=\"slide\" data-pm=\"default\"><\/div><\/div><\/div>                <\/div>\n                            <\/div>\n        <\/div>\n        <\/div><ss3-loader><\/ss3-loader><\/div><\/div><div class=\"n2_clear\"><\/div><\/div><\/ss3-force-full-width><\/div>\n\n\n<div style=\"height:27px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Our technology: REST interface<\/h2>\n\n\n\n<p>XNAT is an advanced management system for research images. It uses multiple technologies to provide researchers with the tools they need to process data and view data. The ICR has been at the forefront of developing new capabilities for XNAT, in particular, the ICR-XNAT-OHIF viewer (see <a href=\"https:\/\/www.mdpi.com\/2379-139X\/8\/1\/40\">Doran et al. <em>Tomography<\/em>&nbsp;8.1 (2022<\/a>). This section describes an important component of the technology we use to interact with XNAT and is used extensively in the viewer. <\/p>\n\n\n\n<div class=\"wp-block-media-text has-media-on-the-right is-stacked-on-mobile\" style=\"grid-template-columns:auto 46%\"><div class=\"wp-block-media-text__content\">\n<p>Representational State Transfer (REST) is a method of sending messages to an internet-accessible service like XNAT. With REST, we can:<\/p>\n\n\n\n<p>access data located on a server (GET method)<\/p>\n\n\n\n<p>transfer data to a server (PUT method)<\/p>\n\n\n\n<p>remove data (DELETE method)<\/p>\n\n\n\n<p>trigger other activity on a server, i.e., send a command to the server to do something (POST method)<\/p>\n\n\n\n<p>REST is the basis for programmatic access to XNAT and toolkits like XNATpy exist to make life easy with flexible APIs and it transforms our ability to curate datasets to high standards, as exemplified in our <a href=\"https:\/\/xnat-repository.icr.ac.uk\/?page_id=300\">featured research on the MALIMAR project<\/a>.<\/p>\n\n\n\n<p>For further details about using the XNAT REST interface, see the <a href=\"https:\/\/wiki.xnat.org\/xnat-api\/xnat-rest-api-directory\" target=\"_blank\" rel=\"noreferrer noopener\">extensive documentation<\/a> produced by the core XNAT development team at Flywheel and Washington University.<\/p>\n<\/div><figure class=\"wp-block-media-text__media\"><img loading=\"lazy\" decoding=\"async\" width=\"688\" height=\"794\" src=\"https:\/\/xnat-repository.icr.ac.uk\/wp-content\/uploads\/2023\/10\/REST_API.png\" alt=\"\" class=\"wp-image-145 size-full\" srcset=\"https:\/\/xnat-repository.icr.ac.uk\/wp-content\/uploads\/2023\/10\/REST_API.png 688w, https:\/\/xnat-repository.icr.ac.uk\/wp-content\/uploads\/2023\/10\/REST_API-347x400.png 347w\" sizes=\"auto, (max-width: 688px) 100vw, 688px\" \/><\/figure><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Our technology: REST interface XNAT is an advanced management system for research images. It uses multiple technologies to provide researchers with the tools they need to process data and view data. The ICR has been at the forefront of developing new capabilities for XNAT, in particular, the ICR-XNAT-OHIF viewer (see Doran et al. Tomography&nbsp;8.1 (2022). [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":94,"menu_order":7,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-147","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/xnat-repository.icr.ac.uk\/index.php?rest_route=\/wp\/v2\/pages\/147","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xnat-repository.icr.ac.uk\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/xnat-repository.icr.ac.uk\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/xnat-repository.icr.ac.uk\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/xnat-repository.icr.ac.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=147"}],"version-history":[{"count":8,"href":"https:\/\/xnat-repository.icr.ac.uk\/index.php?rest_route=\/wp\/v2\/pages\/147\/revisions"}],"predecessor-version":[{"id":774,"href":"https:\/\/xnat-repository.icr.ac.uk\/index.php?rest_route=\/wp\/v2\/pages\/147\/revisions\/774"}],"up":[{"embeddable":true,"href":"https:\/\/xnat-repository.icr.ac.uk\/index.php?rest_route=\/wp\/v2\/pages\/94"}],"wp:attachment":[{"href":"https:\/\/xnat-repository.icr.ac.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}