add: /uploaded_dicom for pydicom-google-upload to get shortlink
This commit is contained in:
38
test/http/pydicom-upload.http
Normal file
38
test/http/pydicom-upload.http
Normal file
@@ -0,0 +1,38 @@
|
||||
# pydicom-upload.http
|
||||
# This file can be used with REST Client extension in VS Code to test the PYDICOM upload endpoint
|
||||
|
||||
@baseUrl = http://localhost:5555
|
||||
@pydicomApiKey=2f0ff447b2c3aeef2004e83a750ded97e29ba8c0ccc70053d5e26f5d715e42ff
|
||||
|
||||
### Test the PYDICOM upload endpoint
|
||||
POST {{baseUrl}}/uploaded_dicom
|
||||
X-PYDICOM-API-KEY: {{pydicomApiKey}}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"email": "patient2@example.com",
|
||||
"password": "password123",
|
||||
"name": "Bobon Santoso",
|
||||
"role": "patient",
|
||||
"patient": {
|
||||
"patient_id": "MR00000359",
|
||||
"patient_name": "Bobon Santoso",
|
||||
"date_of_birth": "1985-01-01"
|
||||
},
|
||||
"studies": [
|
||||
{
|
||||
"study_instance_uid": "1.2.826.0.1.3680043.9.7307.1.202503196393.01",
|
||||
"accession_number": "CR.250319.6393.01",
|
||||
"study_date": "2025-03-19",
|
||||
"study_description": "MRI Scan"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
### Expected Response:
|
||||
# {
|
||||
# "short_token": "LDYZX",
|
||||
# "full_url": "http://localhost:3333/short-auth?short=LDYZX",
|
||||
# "expires_at": "2025-05-18T02:04:46Z",
|
||||
# "is_existing": true
|
||||
# }
|
||||
Reference in New Issue
Block a user