Skip to content

Commit 4d2a095

Browse files
committed
Add doc and add missing import
1 parent 9f3eaf1 commit 4d2a095

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

ConfigurationSystem/Client/Helpers/RESTConf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from DIRAC import S_OK, S_ERROR, rootPath
66
from DIRAC.ConfigurationSystem.Client.Config import gConfig
77
from DIRAC.Core.Security import Locations, X509Chain
8+
import tempfile
89

910
gBaseSection = "/REST"
1011

docs/poorsManDoc.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
You need to:
2+
3+
* add `REST` to the list of Extensions `/DIRAC/Extensions`
4+
* Create a new section `REST` in which you add `CodeAuthURL=Something`
5+
* In `/DIRAC/Setups/<yoursetup>`, add a config for `REST`
6+
* 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
7+
8+
Even if you do not want to use OAuth, it is all mandatory.
9+
10+
Start the server with `python RESTDIRAC/RESTSystem/scripts/dirac-rest-server.py`.
11+
By default it listen to port 9910

0 commit comments

Comments
 (0)