The new XAPI REST calls in XNAT 1.7 are documented with Swagger, so they’re fairly easy to discover. This is any call that starts with “/xapi”. You can find them on a 1.7 instance at the URL:
http://server/xapi/swagger-ui.html
That said, most of the DICOM import and retrieve REST API functions are in our older format, which has no discovery mechanism other than “looking at the code and figuring out the mapping”, which is difficult to automate with node. We’ll be working over the next months to get much of the REST API moved into the new framework and/or provide some way to discover the existing REST API, but until then any code addressing that REST API needs to be written manually.
--
Rick Herrick
Sr. Programmer/Analyst
Neuroinformatics Research Group
Washington University School of Medicine
--
You received this message because you are subscribed to the Google Groups "xnat_discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
xnat_discussi...@googlegroups.com.
To post to this group, send email to
xnat_di...@googlegroups.com.
Visit this group at https://groups.google.com/group/xnat_discussion.
For more options, visit https://groups.google.com/d/optout.
The materials in this message are private and may contain Protected Healthcare Information or other information of a sensitive nature. If you are not the intended recipient, be advised that any unauthorized use, disclosure, copying or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this email in error, please immediately notify the sender via telephone or return mail.
Have a look at the code in this class:
That has most of the REST calls mapped in a form like this:
attachArchiveURI(router, "/projects/{PROJECT_ID}/experiments", ProjSubExptList.class);
That class does also include some classes from this folder:
Classes in there have an @XnatRestlet annotation that declare their own URL, e.g.:
@XnatRestlet({"/services/dicomscp", "/services/dicomscp/{ACTION}"})
--
Rick Herrick
Sr. Programmer/Analyst
Neuroinformatics Research Group
Washington University School of Medicine
From: "xnat_di...@googlegroups.com" <xnat_di...@googlegroups.com> on behalf of Juan Carlos Prieto <juanp...@gmail.com>
Reply-To: "xnat_di...@googlegroups.com" <xnat_di...@googlegroups.com>
Date: Thursday, October 13, 2016 at 10:58 AM
To: "xnat_di...@googlegroups.com" <xnat_di...@googlegroups.com>
--
You received this message because you are subscribed to the Google Groups "xnat_discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
xnat_discussi...@googlegroups.com.
To post to this group, send email to
xnat_di...@googlegroups.com.
Visit this group at https://groups.google.com/group/xnat_discussion.
For more options, visit https://groups.google.com/d/optout.