[Loris-dev] Instruments API

Xavier Lecours Boucher, Mr xavier.lecoursboucher at mcgill.ca
Tue Dec 4 13:19:24 EST 2018


Hello,

>From what I can see, the instrument name in the linst file is "ft"

Can you try the same script with InstrumentName=ft ?

When I send a PUT request to an non existant instrument name, I also receive a 405

Thank you

- Xavier Lecours

________________________________
From: loris-dev-bounces at bic.mni.mcgill.ca <loris-dev-bounces at bic.mni.mcgill.ca> on behalf of Ali Aarefi <aliaarefi1997 at gmail.com>
Sent: December 4, 2018 8:57 AM
To: loris-dev at bic.mni.mcgill.ca
Subject: [Loris-dev] Instruments API

Hello

Dear LORIS dev. team,

I'm trying to develop a script that automatically insert some information to specifically created instrument instance using restful API.(based on github doc<https://github.com/aces/Loris/blob/master/docs/API/LorisRESTAPI.md>, other doc<https://alisterdev.github.io/Loris/api/>)

I did use APIs of LORIS for authentication, candidate creation, time point creation and getting candidate and project information successfully. But now, I cannot use "3.3. The candidate instrument data<https://github.com/aces/Loris/blob/master/docs/API/LorisRESTAPI.md#33-the-candidate-instrument-data>" API (put request).

The related part of python script file and its outputs(within the .py file) is attached.
Also the used .linst file is attached.

Is there any solution to automatically fill an instrument form in loris?
Is it possible to write a script that reads from an Excel file and put those into LORIS previously-built instruments using API?

Best Regards,

Ali
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.bic.mni.mcgill.ca/pipermail/loris-dev/attachments/20181204/372efabc/attachment.html>


More information about the Loris-dev mailing list