dmwm / WMCore

Core workflow management components for CMS.
Apache License 2.0
46 stars 107 forks source link

Document the WebRequestSchema REST calls on the twiki #864

Closed sfoulkes closed 12 years ago

sfoulkes commented 13 years ago

I don't see it with the rest of the REST calls...

DMWMBot commented 13 years ago

rickw: It's not a REST service. It's just a web page, with one exposed index(), and one exposed handler.

sfoulkes commented 13 years ago

sfoulkes: We need to support people injecting requests into the ReqMgr using a REST interface. DataOps will occasionally receive requests with O(1000) workflows in them, which would be tedious to enter into the WebRequestSchema by hand. The current exposed handler is fine for this, we just need to document it.

DMWMBot commented 13 years ago

rickw: Oh. The command line interface. It hasn't been updated in a long time, or even included in this release, but it should be easy to dust it off and start using it again.

http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/COMP/REQMGR/src/python/ReqMgr/RequestInterface/CommandLine/

sfoulkes commented 13 years ago

sfoulkes: I don't think we need a command line interface. There will be external services that will want to create requests in the ReqMgr (GenDB) and all we really need to do for them is document the interfaces for creating requests.

DMWMBot commented 13 years ago

rickw: I think you just want to use the ReqMgrRESTModel's PUT request, like in

https://svnweb.cern.ch/trac/CMSDMWM/browser/WMCore/trunk/test/python/WMCore_t/RequestManager_t/ReqMgr_t.py

self.jsonSender.put('/reqMgr/request/'+requestName, requestSchema)

where requestSchema is an instance of ReRecoSchema, MonteCarloSchema, etc.

I'll update https://twiki.cern.ch/twiki/bin/viewauth/CMS/ReqMgrSystemDesign

DMWMBot commented 13 years ago

rickw: Added Steve's technique of sending the schema directly to the HTTP handler that he posted to the wave to the wiki.