-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathapi.http
More file actions
89 lines (71 loc) · 1.64 KB
/
Copy pathapi.http
File metadata and controls
89 lines (71 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
@host = http://127.0.0.1:8000
@apiPrefix = /api/v1/
# Replace with your local DICOM folder
@dicomFolder = D:/testDicom/test
### Health check
GET {{host}}/health
Accept: application/json
###
GET https://dicomvisionserver.onrender.com/health
Content-Type: application/json
Accept: application/json
###
POST https://dicomvisionserver.onrender.com/api/v1/dicom/loadSample
Content-Type: application/json
Accept: application/json
### Load DICOM folder
POST {{host}}{{apiPrefix}}/dicom/loadFolder
Content-Type: application/json
Accept: application/json
{
"folderPath": "{{dicomFolder}}"
}
> {%
const body = response.body;
const seriesId = body.seriesId || (body.seriesList && body.seriesList[0] && body.seriesList[0].seriesId);
if (seriesId) {
client.global.set("seriesId", seriesId);
}
%}
### Create Stack view
POST {{host}}{{apiPrefix}}/view/create
Content-Type: application/json
Accept: application/json
{
"seriesId": "{{seriesId}}",
"viewType": "Stack"
}
> {%
const body = response.body;
if (body.viewId) {
client.global.set("viewId", body.viewId);
}
%}
### Set viewport size and fetch first image
POST {{host}}{{apiPrefix}}/view/setSize
Content-Type: application/json
Accept: application/json
{
"opType": "setSize",
"size": {
"width": 512,
"height": 512
},
"viewId": "{{viewId}}"
}
### Optional: create MPR view
POST {{host}}{{apiPrefix}}/view/create
Content-Type: application/json
Accept: application/json
{
"seriesId": "{{seriesId}}",
"viewType": "MPR"
}
### Optional: create 3D view
POST {{host}}{{apiPrefix}}/view/create
Content-Type: application/json
Accept: application/json
{
"seriesId": "{{seriesId}}",
"viewType": "3D"
}