Skip to content

ReqMgr2 MicroService APIs

Valentin Kuznetsov edited this page Nov 14, 2017 · 20 revisions

ReqMgr2 MicroService APIs

The MicroService is a data-service which provides set of APIs to perform certain actions. Its general architecture is shown below: MicroServiceArchitecture

In particular the WMCore MicroService provides an interface to perform Unified actions, such as fetch requests from ReqMgr2 data-services, obtain necessary informations for data placement and place requests of assigned workflows into data placement system PhEDEx.

Available APIs

GET APIs

  • /microservice/data provides basic information about MicroService. It returns the following information:
{"result": [
 {"microservice": "UnifiedTransferorManager", "request": {}, "results": {"status": {}}}
]}
  • /microservice/data/status provides detailed information about requests in MicroService. It returns the following information:
{"result": [
 {"microservice": "UnifiedTransferorManager", "request": {}, "results": {"status": {}}}
]}

POST APIs

  • /microservice/data allows to send specific request to MicroService

post request to process some state

curl -X POST -H "Content-type: application/json" -d '{"request":{"process":"assignment-approved"}}' http://localhost:8822/microservice/data

obtain results about specific workflow

curl -X POST -H "Content-type: application/json" -d '{"request":{"task":"sryu_TaskChain_MCRecyc_reqmgr2_170902_033703_5339"}}' http://localhost:8822/microservice/data
Clone this wiki locally