edit: field Shortcode dan expire duration

This commit is contained in:
mario
2025-05-17 09:38:40 +07:00
parent ed3feb77d2
commit 3aa155dfbc
7 changed files with 56 additions and 19 deletions

View File

@@ -1,5 +1,5 @@
### Local OHIF Proxy Test File
@token = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiMSIsImVtYWlsIjoiYWRtaW5AZXhhbXBsZS5jb20iLCJyb2xlIjoiYWRtaW4iLCJ1c2VyX25hbWUiOiJBZG1pbiBVc2VyIiwidG9rZW5fdHlwZSI6ImFjY2VzcyIsImhvbWVfdXJsIjoiLyIsInN0dWR5X2xpc3QiOiJlbmFibGVkIiwiZXhwIjoxNzQ3Mzg0MDE2LCJpYXQiOjE3NDcyOTc2MTZ9.Ak1DECP1MXzQAPyU-AJM6Tsu6-sw04UtWYvY37-SaT4
@token = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiMSIsImVtYWlsIjoiYWRtaW5AZXhhbXBsZS5jb20iLCJyb2xlIjoiYWRtaW4iLCJ1c2VyX25hbWUiOiJBZG1pbiBVc2VyIiwidG9rZW5fdHlwZSI6ImFjY2VzcyIsImhvbWVfdXJsIjoiLyIsInN0dWR5X2xpc3QiOiJlbmFibGVkIiwiZXhwIjoxNzQ3NDcyMTE5LCJpYXQiOjE3NDczODU3MTl9.rLB8q2Wwt2aL813lf-GwuS14dO5WlJPPS3sP5OGJdO0
@baseUrl = http://localhost:5555
# @baseUrl = http://devone.aplikasi.web.id:5555
@@ -76,4 +76,12 @@ Accept: image/jpeg
####
GET {{baseUrl}}/dicomWeb/studies?limit=101&offset=0&fuzzymatching=true&includefield=00081030,00080060&StudyInstanceUID=1.2.826.0.1.3680043.9.7307.1.202503196393.01
### 13. DELETE Study
# Deletes a specific study
DELETE {{baseUrl}}/dicomWeb/studies/1.2.826.0.1.3680043.0.1252.1.20250516.144411.1639014.3
Authorization: Bearer {{token}}
###
curl -X DELETE \
-H "Authorization: Bearer $(gcloud auth print-access-token)" \
"https://healthcare.googleapis.com/v1/projects/ohifproxy/locations/asia-southeast2/datasets/sas-storage/dicomStores/store-1/dicomWeb/studies/1.2.826.0.1.3680043.0.1252.1.20250516.144411.1639014.3"

View File

@@ -7,7 +7,7 @@ POST {{baseUrl}}/auth/login
Content-Type: application/json
{
"email": "doctor@example.com",
"email": "admin@example.com",
"password": "password123"
}

View File

@@ -5,7 +5,7 @@
@pydicomApiKey=2f0ff447b2c3aeef2004e83a750ded97e29ba8c0ccc70053d5e26f5d715e42ff
### Test the PYDICOM upload endpoint
POST {{baseUrl}}/uploaded_dicom
POST {{baseUrl}}/uploaded-dicom
X-PYDICOM-API-KEY: {{pydicomApiKey}}
Content-Type: application/json
@@ -35,4 +35,28 @@ Content-Type: application/json
# "full_url": "http://localhost:3333/short-auth?short=LDYZX",
# "expires_at": "2025-05-18T02:04:46Z",
# "is_existing": true
# }
# }
POST {{baseUrl}}/uploaded_dicom
X-PYDICOM-API-KEY: {{pydicomApiKey}}
Content-Type: application/json
{
"email": "randomuser@example.com",
"password": "securepassword456",
"name": "John Doe",
"role": "patient",
"patient": {
"patient_id": "MR00000789",
"patient_name": "John Doe",
"date_of_birth": "1990-07-15"
},
"studies": [
{
"study_instance_uid": "1.2.826.0.1.3680043.9.1234.1.202507151234.01",
"accession_number": "CR.150720.1234.01",
"study_date": "2025-07-15",
"study_description": "CT Scan"
}
]
}