KIDA-BfR / App-Development

Overview of Apps/Services that are currently developed or maintained by 4SZ
GNU General Public License v3.0
0 stars 0 forks source link

Testing: Endpoint FSKX Model Execution API #31

Open schuelet opened 3 months ago

schuelet commented 3 months ago

Codebase: https://github.com/KIDA-BfR/PoC-for-FSKX-API-server/blob/feature/fskx_create/fskxserver/fskxserver/fskxserver.py

Write a script that tests if all the registered models can be successfully executed. Models from RAKIP Model Repository (not all are from there) also need to run using user-defined simulation parameters.

Script should follow (and improve on) this KNIME workflow (need to be unzipped before importing to KNIME): model_execution_tests.zip

Be aware: This model will take 20 minutes, so maybe leave it out of the automatic process: { "modelId": "543d0022-a5eb-4f05-bb82-edef34ec7807", "modelName": "Listeriosis gQMRA for French population" }

schuelet commented 3 months ago

Example code: ` import requests

url = "https://apiserver.risk-ai-cloud.com/get-models"

payload = {} headers = { 'Authorization': '••••••' }

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text) `