From eb55b91c2f84e6462de3b1f04ef308c4fc1125aa Mon Sep 17 00:00:00 2001 From: Christophe Haen Date: Thu, 26 Oct 2017 13:15:10 +0200 Subject: [PATCH] Add doc and add missing import --- ConfigurationSystem/Client/Helpers/RESTConf.py | 1 + README.rst | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 README.rst diff --git a/ConfigurationSystem/Client/Helpers/RESTConf.py b/ConfigurationSystem/Client/Helpers/RESTConf.py index fa064c5..0ea4849 100644 --- a/ConfigurationSystem/Client/Helpers/RESTConf.py +++ b/ConfigurationSystem/Client/Helpers/RESTConf.py @@ -5,6 +5,7 @@ from DIRAC import S_OK, S_ERROR, rootPath from DIRAC.ConfigurationSystem.Client.Config import gConfig from DIRAC.Core.Security import Locations, X509Chain +import tempfile gBaseSection = "/REST" diff --git a/README.rst b/README.rst new file mode 100644 index 0000000..fad6f45 --- /dev/null +++ b/README.rst @@ -0,0 +1,11 @@ +You need to: + +* add `REST` to the list of Extensions `/DIRAC/Extensions` +* Create a new section `REST` in which you add `CodeAuthURL=Something` +* In `/DIRAC/Setups/`, add a config for `REST` +* In the `Systems` section, add a `REST` section in which you put what is in the `RESTDIRAC/RESTSystem/ConfigTemplate.cfg` file, and define the OATokenDB + +Even if you do not want to use OAuth, it is all mandatory. + +Start the server with `python RESTDIRAC/RESTSystem/scripts/dirac-rest-server.py`. +By default it listens to port 9910