Oms API POST open database file - openmpp/openmpp.github.io GitHub Wiki
User can open a connection to database file in models/bin
directory or sub-directories.
There is also a method to open all database files in models/bin
tree: POST a request to refresh models catalog.
Method:
POST /api/admin/db-file-open/:path
Arguments:
:path - (required) path to model database file
Path must be relative to models/bin
folder.
If there any subfolders in the path then /
slashes must be replaced with *
stars.
Call examples:
curl -v -X POST http://localhost:4040/api/admin/db-file-open/RiskPaths.sqlite
curl -v -X POST http://localhost:4040/api/admin/db-file-open/OncoSimX*v3.6.5.2*OncoSimX-allcancers.sqlite
For example:
curl -v -X POST http://localhost:4040/api/admin/db-file-open/RiskPaths.sqlite
* Trying [::1]:4040...
* Connected to localhost (::1) port 4040
> POST /api/admin/db-file-open/RiskPaths.sqlite HTTP/1.1
> Host: localhost:4040
> User-Agent: curl/8.4.0
> Accept: */*
>
< HTTP/1.1 200 OK
< Content-Location: /api/admin/db-file-open/RiskPaths.sqlite
< Content-Type: text/plain
< Date: Sat, 09 Mar 2024 05:01:54 GMT
< Content-Length: 0
<
* Connection #0 to host localhost left intact