diff --git a/README.md b/README.md index 83b2872..927e6b2 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,34 @@ To start the containers: Choose the command that matches your container runtime. We recommend using `podman compose up` for most setups. +## Setting up + +* create bot user in REMS +``` +POST /api/users/create +x-rems-api-key: existing-api-key +x-rems-user-id: owner-id +Content-Type: application/json + +{ + "userid": "", + "name": "", + "email": "" +} + +* add a new api-key for this user +``` +xxxxxxx:/rems# java -Dconfig.rems=config/config.edn -jar rems.jar grant-role owner +xxxxxxx:/rems# java -Dconfig.rems=config/config.edn -jar rems.jar api-key add +xxxxxxx:/rems# java -Dconfig.rems=config/config.edn -jar rems.jar api-key set-users +xxxxxxx:/rems# java -Dconfig.rems=config/config.edn -jar rems.jar api-key allow any '/api/organizations.*' +xxxxxxx:/rems# java -Dconfig.rems=config/config.edn -jar rems.jar api-key allow any '/api/forms.*' +xxxxxxx:/rems# java -Dconfig.rems=config/config.edn -jar rems.jar api-key allow any '/api/workflows.*' +xxxxxxx:/rems# java -Dconfig.rems=config/config.edn -jar rems.jar api-key allow any '/api/resources.*' +xxxxxxx:/rems# java -Dconfig.rems=config/config.edn -jar rems.jar api-key allow any '/api/catalogue-items.*' +xxxxxxx:/rems# java -Dconfig.rems=config/config.edn -jar rems.jar api-key allow any '/api/licenses.*' +``` + ## License - All original source code is licensed under [Apache-2.0](./LICENSES/Apache-2.0.txt).