NHMDenmark / DaSSCo-Integration

This Repo will include integration of dassco storage from northtec
0 stars 0 forks source link

HPC cluster to integration server api json data structure #16

Open Baeist opened 7 months ago

Baeist commented 7 months ago

@ThomasAlscher1991 POST /api/v1/update_asset { "guid": {guid}, "job": {job name}, "status": {job status}, "data": { {field with new data}: {new data}, {field with new data}: {new data}, etc } } example: { "guid":"7e8-1-08-08-29-07-0-000-00-000-03158e-00000", "job":"label", "status":"DONE", "data":{ "collection": "mosquito", "funding": "musk" } }

POST /api/v1/queue_job { "guid": {guid}, "job_name": {job name}, "job_id": {job id}, "timestamp": {datetime} } example: { "guid":"7e8-1-08-08-29-07-0-000-00-000-03158e-00000", "job_name": "label", "job_id":"403085259", "timestamp": 2024-02-26T08:32:23.548+00:00 }

Baeist commented 6 months ago

@ThomasAlscher1991 POST /api/v1/update_asset { "guid": {guid}, "job": {job name}, "status": {job status}, "data": { {field with new data}: {new data}, {field with new data}: {new data}, etc } } example: { "guid":"7e8-1-08-08-29-07-0-000-00-000-03158e-00000", "job":"label", "status":"DONE", "data":{ "collection": "mosquito", "funding": "musk" } }

POST /api/v1/queue_job { "guid": {guid}, "job_name": {job name}, "job_id": {job id}, "timestamp": {datetime} } example: { "guid":"7e8-1-08-08-29-07-0-000-00-000-03158e-00000", "job_name": "label", "job_id":"403085259", "timestamp": 2024-02-26T08:32:23.548+00:00 }

POST /api/v1/start_job { "guid": {guid}, "job_name": {job name}, "job_id": {job id}, "timestamp": {datetime} } example: { "guid":"7e8-1-08-08-29-07-0-000-00-000-03158e-00000", "job_name": "label", "job_id":"403085259", "timestamp": 2024-02-26T08:32:23.548+00:00 }

Baeist commented 6 months ago

@ThomasAlscher1991 Added "barcode" call.

Edit: add MSO field to barcode avoid confusion.

POST /api/v1/update_asset { "guid": {guid}, "job": {job name}, "status": {job status}, "data": { {field with new data}: {new data}, {field with new data}: {new data}, etc } } example: { "guid":"7e8-1-08-08-29-07-0-000-00-000-03158e-00000", "job":"label", "status":"DONE", "data":{ "collection": "mosquito", "funding": "musk" } }

POST /api/v1/barcode { "guid": {guid}, "job": {job name}, "status": {job status}, "barcodes":{list of barcodes}, "asset_subject":{asset_subject}, "MSO":{bool is mso} "MOS":{bool is mos}, "label":{bool is label}, "disposable":{disposable barcode or null} } example: { "guid":"7e8-1-08-08-29-07-0-000-00-000-03158e-00000", "job": "MOSConnector", "status": "DONE", "barcodes":["123-213-444-xy"], "asset_subject":"specimen", "MSO:false, "MOS":true, "label":false, "disposable":"Disposable-1" }

POST /api/v1/queue_job { "guid": {guid}, "job_name": {job name}, "job_id": {job id}, "timestamp": {datetime} } example: { "guid":"7e8-1-08-08-29-07-0-000-00-000-03158e-00000", "job_name": "label", "job_id":"403085259", "timestamp": 2024-02-26T08:32:23.548+00:00 }

POST /api/v1/start_job { "guid": {guid}, "job_name": {job name}, "job_id": {job id}, "timestamp": {datetime} } example: { "guid":"7e8-1-08-08-29-07-0-000-00-000-03158e-00000", "job_name": "label", "job_id":"403085259", "timestamp": 2024-02-26T08:32:23.548+00:00 }