You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: composer.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
{
2
2
"name": "aces/loris-php-api-client",
3
3
"version": "0.0.4-dev",
4
-
"description": "LORIS REST API and Module endpoints. ## Server Configuration This schema has TWO types of endpoints with different base URLs: | Type | Base URL | Endpoints | |------|----------|-----------| | REST API (versioned) | `{baseUrl}/api/{version}` | /login, /candidates, /projects, /sites | | Module (non-versioned) | `{baseUrl}` (root) | /instrument_manager, /instrument_manager/instrument_data | **InstrumentManager endpoints use path-level server overrides** to specify the non-versioned base URL. When using `InstrumentManagerApi`, configure with base URL only (no `/api/{version}`).",
4
+
"description": "LORIS REST API and Module endpoints. ## Server Configuration | Type | Configuration | Endpoints | |------|---------------|-----------| | REST API | `setHost(\"{$baseUrl}/api/{$version}\")` | /login, /candidates, /projects, /sites | | Module | `setHost($baseUrl)` | /instrument_manager/_* |",
Copy file name to clipboardExpand all lines: docs/Api/InstrumentManagerApi.md
+13-76Lines changed: 13 additions & 76 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
# LORISClient\InstrumentManagerApi
2
2
3
-
**Module endpoints (non-versioned)** These endpoints do NOT use the `/api/{version}` prefix. Configure client with base URL only. ```php // For InstrumentManager, use base URL without /api/{version} $moduleConfig->setHost('https://your-loris.ca'); ```
3
+
Instrument installation and bulk data upload. Configure: `$config->setHost($baseUrl)` (no `/api/{version}`)
4
4
5
-
All URIs are relative to https://demo.loris.ca/api/v0.0.4-dev, except if the operation defines another base path.
5
+
All URIs are relative to http://http:, except if the operation defines another base path.
6
6
7
7
| Method | HTTP request | Description |
8
8
| ------------- | ------------- | ------------- |
@@ -16,22 +16,9 @@ All URIs are relative to https://demo.loris.ca/api/v0.0.4-dev, except if the ope
Get expected CSV headers for instrument data upload
32
21
33
-
Returns a CSV template with expected headers for the specified instrument(s). Use either `instrument` (single) or `instruments` (comma-separated), not both. **Note**: This is a module endpoint. Configure client with base URL only.
34
-
35
22
### Example
36
23
37
24
```php
@@ -49,18 +36,12 @@ $apiInstance = new LORISClient\Api\InstrumentManagerApi(
49
36
new GuzzleHttp\Client(),
50
37
$config
51
38
);
52
-
$action = 'action_example'; // string | - CREATE_SESSIONS: Headers for creating new candidates/sessions - VALIDATE_SESSIONS: Headers for existing candidates/sessions only
53
-
$instrument = 'instrument_example'; // string | Single instrument name
|**action**|**string**| - CREATE_SESSIONS: Headers for creating new candidates/sessions - VALIDATE_SESSIONS: Headers for existing candidates/sessions only ||
75
-
|**instrument**|**string**| Single instrument name |[optional]|
Install instrument from LINST file or REDCap data dictionary
115
83
116
-
Installs a new instrument in LORIS from either: - A LINST file (.linst) - A CSV file with REDCap data dictionary format **Note**: This is a module endpoint. Configure client with base URL only, not `/api/{version}`.
117
-
118
84
### Example
119
85
120
86
```php
@@ -134,14 +100,8 @@ $apiInstance = new LORISClient\Api\InstrumentManagerApi(
134
100
);
135
101
$installFile = '/path/to/file.txt'; // \SplFileObject | LINST file or REDCap CSV to install
Uploads CSV data for one or more instruments. **Actions**: - `CREATE_SESSIONS`: Creates candidates/sessions if they don't exist - `VALIDATE_SESSIONS`: Fails if any candidate/session is missing **CSV Requirements**: - Must include `PSCID` and `Visit_label` columns - For single instrument: include instrument field columns - For multi-instrument: set `multi-instrument=true` and include `Instrument` column **Note**: This is a module endpoint. Configure client with base URL only.
196
-
197
142
### Example
198
143
199
144
```php
@@ -213,17 +158,11 @@ $apiInstance = new LORISClient\Api\InstrumentManagerApi(
213
158
);
214
159
$action = 'action_example'; // string
215
160
$dataFile = '/path/to/file.txt'; // \SplFileObject | CSV file with instrument data
216
-
$instrument = 'instrument_example'; // string | Single instrument name (omit for multi-instrument)
161
+
$instrument = 'instrument_example'; // string | Single instrument name
217
162
$multiInstrument = 'multiInstrument_example'; // string | Set to \\\"true\\\" for multi-instrument CSV
0 commit comments