Oms web service API - openmpp/openmpp.github.io GitHub Wiki

Web-service methods arguments

:model   - model digest or model name 
:lang    - language code 
:run     - model run digest, run stamp or run name, modeling task run stamp or task run name 
:set     - name of workset (input set of model parameters)
:profile - profile name
:task    - modeling task

See more details at: Arguments of web-service methods.

GET Model Metadata

GET /api/model-list
GET /api/model-list/text
GET /api/model-list/text/lang/:lang
GET /api/model/:model
GET /api/model/:model/pack
GET /api/model/:model/text
GET /api/model/:model/text/lang/:lang
GET /api/model/:model/pack/text
GET /api/model/:model/pack/text/lang/:lang
GET /api/model/:model/text-all

GET Model Extras

GET /api/model/:model/lang-list
GET /api/model/:model/word-list
GET /api/model/:model/word-list/lang/:lang
GET /api/model/:model/profile/:profile
GET /api/model/:model/profile-list

GET Model Run results metadata

GET /api/model/:model/run-list
GET /api/model/:model/run-list/text
GET /api/model/:model/run-list/text/lang/:lang
GET /api/model/:model/run/:run/status
GET /api/model/:model/run/:run/status/list
GET /api/model/:model/run/status/first
GET /api/model/:model/run/status/last
GET /api/model/:model/run/status/last-completed
GET /api/model/:model/run/:run
GET /api/model/:model/run/:run/text
GET /api/model/:model/run/:run/text/lang/:lang
GET /api/model/:model/run/:run/text-all

GET Model Workset metadata: set of input parameters

GET /api/model/:model/workset-list
GET /api/model/:model/workset-list/text
GET /api/model/:model/workset-list/text/lang/:lang
GET /api/model/:model/workset/:set/status
GET /api/model/:model/workset/:set
GET /api/model/:model/workset/status/default
GET /api/model/:model/workset/:set/text
GET /api/model/:model/workset/:set/text/lang/:lang
GET /api/model/:model/workset/:set/text-all

Read Parameters, Output Tables or Microdata values

POST /api/model/:model/workset/:set/parameter/value
POST /api/model/:model/workset/:set/parameter/value-id
POST /api/model/:model/run/:run/parameter/value
POST /api/model/:model/run/:run/parameter/value-id
POST /api/model/:model/run/:run/table/value
POST /api/model/:model/run/:run/table/value-id
POST /api/model/:model/run/:run/table/calc
POST /api/model/:model/run/:run/table/calc-id
POST /api/model/:model/run/:run/table/compare
POST /api/model/:model/run/:run/table/compare-id
POST /api/model/:model/run/:run/microdata/value
POST /api/model/:model/run/:run/microdata/value-id
POST /api/model/:model/run/:run/microdata/calc
POST /api/model/:model/run/:run/microdata/calc-id
POST /api/model/:model/run/:run/microdata/compare
POST /api/model/:model/run/:run/microdata/compare-id

GET Parameters, Output Tables or Microdata values

GET /api/model/:model/workset/:set/parameter/:name/value
GET /api/model/:model/workset/:set/parameter/:name/value/start/:start
GET /api/model/:model/workset/:set/parameter/:name/value/start/:start/count/:count
GET /api/model/:model/run/:run/parameter/:name/value
GET /api/model/:model/run/:run/parameter/:name/value/start/:start
GET /api/model/:model/run/:run/parameter/:name/value/start/:start/count/:count
GET /api/model/:model/run/:run/table/:name/expr
GET /api/model/:model/run/:run/table/:name/expr/start/:start
GET /api/model/:model/run/:run/table/:name/expr/start/:start/count/:count
GET /api/model/:model/run/:run/table/:name/calc/:calc
GET /api/model/:model/run/:run/table/:name/calc/:calc/start/:start
GET /api/model/:model/run/:run/table/:name/calc/:calc/start/:start/count/:count
GET /api/model/:model/run/:run/table/:name/compare/:compare/variant/:variant
GET /api/model/:model/run/:run/table/:name/compare/:compare/variant/:variant/start/:start
GET /api/model/:model/run/:run/table/:name/compare/:compare/variant/:variant/start/:start/count/:count
GET /api/model/:model/run/:run/table/:name/acc
GET /api/model/:model/run/:run/table/:name/acc/start/:start
GET /api/model/:model/run/:run/table/:name/acc/start/:start/count/:count
GET /api/model/:model/run/:run/table/:name/all-acc
GET /api/model/:model/run/:run/table/:name/all-acc/start/:start
GET /api/model/:model/run/:run/table/:name/all-acc/start/:start/count/:count
GET /api/model/:model/run/:run/microdata/:name/value
GET /api/model/:model/run/:run/microdata/:name/value/start/:start
GET /api/model/:model/run/:run/microdata/:name/value/start/:start/count/:count
GET /api/model/:model/run/:run/microdata/:name/group-by/:group-by/calc/:calc
GET /api/model/:model/run/:run/microdata/:name/group-by/:group-by/calc/:calc/start/:start
GET /api/model/:model/run/:run/microdata/:name/group-by/:group-by/calc/:calc/start/:start/count/:count
GET /api/model/:model/run/:run/microdata/:name/group-by/:group-by/compare/:compare/variant/:variant
GET /api/model/:model/run/:run/microdata/:name/group-by/:group-by/compare/:compare/variant/:variant/start/:start
GET /api/model/:model/run/:run/microdata/:name/group-by/:group-by/compare/:compare/variant/:variant/start/:start/count/:count

GET Parameters, Output Tables or Microdata values as CSV

GET /api/model/:model/workset/:set/parameter/:name/csv
GET /api/model/:model/workset/:set/parameter/:name/csv-bom
GET /api/model/:model/workset/:set/parameter/:name/csv-id
GET /api/model/:model/workset/:set/parameter/:name/csv-id-bom
GET /api/model/:model/run/:run/parameter/:name/csv
GET /api/model/:model/run/:run/parameter/:name/csv-bom
GET /api/model/:model/run/:run/parameter/:name/csv-id
GET /api/model/:model/run/:run/parameter/:name/csv-id-bom
GET /api/model/:model/run/:run/table/:name/expr/csv
GET /api/model/:model/run/:run/table/:name/expr/csv-bom
GET /api/model/:model/run/:run/table/:name/expr/csv-id
GET /api/model/:model/run/:run/table/:name/expr/csv-id-bom
GET /api/model/:model/run/:run/table/:name/calc/:calc/csv
GET /api/model/:model/run/:run/table/:name/calc/:calc/csv-bom
GET /api/model/:model/run/:run/table/:name/calc/:calc/csv-id
GET /api/model/:model/run/:run/table/:name/calc/:calc/csv-id-bom
GET /api/model/:model/run/:run/table/:name/compare/:compare/variant/:variant/csv
GET /api/model/:model/run/:run/table/:name/compare/:compare/variant/:variant/csv-bom
GET /api/model/:model/run/:run/table/:name/compare/:compare/variant/:variant/csv-id
GET /api/model/:model/run/:run/table/:name/compare/:compare/variant/:variant/csv-id-bom
GET /api/model/:model/run/:run/table/:name/acc/csv
GET /api/model/:model/run/:run/table/:name/acc/csv-bom
GET /api/model/:model/run/:run/table/:name/acc/csv-id
GET /api/model/:model/run/:run/table/:name/acc/csv-id-bom
GET /api/model/:model/run/:run/table/:name/all-acc/csv
GET /api/model/:model/run/:run/table/:name/all-acc/csv-bom
GET /api/model/:model/run/:run/table/:name/all-acc/csv-id
GET /api/model/:model/run/:run/table/:name/all-acc/csv-id-bom
GET /api/model/:model/run/:run/microdata/:name/csv
GET /api/model/:model/run/:run/microdata/:name/csv-bom
GET /api/model/:model/run/:run/microdata/:name/csv-id
GET /api/model/:model/run/:run/microdata/:name/csv-id-bom
GET /api/model/:model/run/:run/microdata/:name/group-by/:group-by/calc/:calc/csv
GET /api/model/:model/run/:run/microdata/:name/group-by/:group-by/calc/:calc/csv-bom
GET /api/model/:model/run/:run/microdata/:name/group-by/:group-by/calc/:calc/csv-id
GET /api/model/:model/run/:run/microdata/:name/group-by/:group-by/calc/:calc/csv-id-bom
GET /api/model/:model/run/:run/microdata/:name/group-by/:group-by/compare/:compare/variant/:variant/csv
GET /api/model/:model/run/:run/microdata/:name/group-by/:group-by/compare/:compare/variant/:variant/csv-bom
GET /api/model/:model/run/:run/microdata/:name/group-by/:group-by/compare/:compare/variant/:variant/csv-id
GET /api/model/:model/run/:run/microdata/:name/group-by/:group-by/compare/:compare/variant/:variant/csv-id-bom

GET Modeling Task metadata and task run history

GET /api/model/:model/task-list
GET /api/model/:model/task-list/text
GET /api/model/:model/task-list/text/lang/:lang
GET /api/model/:model/task/:task/sets
GET /api/model/:model/task/:task/runs
GET /api/model/:model/task/:task/run-status/run/:run
GET /api/model/:model/task/:task/run-status/list/:run
GET /api/model/:model/task/:task/run-status/first
GET /api/model/:model/task/:task/run-status/last
GET /api/model/:model/task/:task/run-status/last-completed
GET /api/model/:model/task/:task/text
GET /api/model/:model/task/:task/text/lang/:lang
GET /api/model/:model/task/:task/text-all

Update Model Profile: set of key-value options

PATCH /api/model/:model/profile
DELETE /api/model/:model/profile/:profile
POST /api/model/:model/profile/:profile/key/:key/value/:value
DELETE /api/model/:model/profile/:profile/key/:key

Update Model Workset: set of input parameters

POST /api/model/:model/workset/:set/readonly/:readonly
PUT  /api/workset-create
PUT /api/workset-replace
PATCH /api/workset-merge
DELETE /api/model/:model/workset/:set
POST /api/model/:model/delete-worksets
DELETE /api/model/:model/workset/:set/parameter/:name
PATCH /api/model/:model/workset/:set/parameter/:name/new/value
PATCH /api/model/:model/workset/:set/parameter/:name/new/value-id
PATCH /api/model/:model/workset/:set/parameter-text
PUT /api/model/:model/workset/:set/copy/parameter/:name/from-run/:run
PATCH /api/model/:model/workset/:set/merge/parameter/:name/from-run/:run
PUT /api/model/:model/workset/:set/copy/parameter/:name/from-workset/:from-set
PATCH /api/model/:model/workset/:set/merge/parameter/:name/from-workset/:from-set

Update Model Runs

PATCH /api/run/text
DELETE /api/model/:model/run/:run
POST /api/model/:model/delete-runs
PATCH /api/model/:model/run/:run/parameter-text

Update Modeling Tasks

PUT  /api/task-new
PATCH /api/task
DELETE /api/model/:model/task/:task

Run Models: run models and monitor progress

POST /api/run
GET /api/run/log/model/:model/stamp/:stamp
GET /api/run/log/model/:model/stamp/:stamp/start/:start/count/:count
PUT /api/run/stop/model/:model/stamp/:stamp

Download model, model run results or input parameters

GET /api/download/log/file/:name
GET /api/download/log/model/:model
GET /api/download/log-all
GET /api/download/file-tree/:folder
POST /api/download/model/:model
POST /api/download/model/:model/run/:run
POST /api/download/model/:model/workset/:set
DELETE /api/download/delete/:folder
DELETE /api/download/start/delete/:folder
DELETE /api/download/delete-all
DELETE /api/download/start/delete-all

Upload model runs or worksets

GET /api/upload/log/file/:name
GET /api/upload/log/model/:model
GET /api/upload/log-all
GET /api/upload/file-tree/:folder
POST /api/upload/model/:model/run
POST /api/upload/model/:model/run/:run
POST /api/upload/model/:model/workset
POST /api/upload/model/:model/workset/:set
DELETE /api/upload/delete/:folder
DELETE /api/upload/start/delete/:folder
DELETE /api/upload/delete-all
DELETE /api/upload/start/delete-all

User: manage user settings and data

GET /api/user/view/model/:model
PUT /api/user/view/model/:model
DELETE /api/user/view/model/:model

Model run jobs and service state

GET /api/service/config
GET /api/service/state
GET /api/service/disk-use
POST /api/service/disk-use/refersh
GET /api/service/job/active/:job
GET /api/service/job/queue/:job
GET /api/service/job/history/:job
PUT /api/service/job/move/:pos/:job
DELETE /api/service/job/delete/history/:job
DELETE /api/service/job/delete/history-all-success
DELETE /api/service/job/delete/history-all-not-success

Administrative: manage web-service state

POST /api/admin/all-models/refresh
POST /api/admin/all-models/close
POST /api/admin/model/:model/close
POST /api/admin/db-file-open/:path
POST /api/admin/db-cleanup/:path
POST /api/admin/db-cleanup/:path/name/:name
POST /api/admin/db-cleanup/:path/name/:name/digest/:digest
GET /api/admin/db-cleanup/log-all
GET /api/admin/db-cleanup/log/:name
POST /api/admin/jobs-pause/:pause
POST /api/admin-all/jobs-pause/:pause
PUT /shutdown
⚠️ **GitHub.com Fallback** ⚠️