-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add cds-dk * better way to say yes * require service in package json * add custom role to example cap server * take care of weird behavior where cds.env is modified between activate and loaded * cleanup features.yaml for example cap server * cleanup feature enum * better order for demo * better cloc * use implicit service impl path
- Loading branch information
1 parent
54448f5
commit c305a02
Showing
12 changed files
with
64 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,6 @@ node_modules/ | |
|
||
# temp | ||
temp/ | ||
|
||
# cds | ||
gen/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
package-lock=false | ||
yes=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
package-lock=false | ||
yes=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,59 +2,69 @@ | |
GET {{base_url}}/rest/feature/state | ||
Authorization: Basic system system | ||
|
||
### redis_update | check 1 | ||
### redis_update | memory 1 | ||
POST {{base_url}}/rest/feature/redisUpdate | ||
Authorization: Basic system system | ||
Content-Type: application/json | ||
|
||
{ | ||
"key": "/check/priority", | ||
"value": 1 | ||
"key": "/memory/logInterval", | ||
"value": 1000 | ||
} | ||
|
||
### redis_update | check 2 | ||
### redis_update | memory 2 | ||
POST {{base_url}}/rest/feature/redisUpdate | ||
Authorization: Basic system system | ||
Content-Type: application/json | ||
|
||
{ | ||
"key": "/check/priority", | ||
"value": 10, | ||
"scope": { "tenant": "people" } | ||
"key": "/memory/logInterval", | ||
"value": 100 | ||
} | ||
|
||
### redis_update | check 3 | ||
### redis_update | memory off | ||
POST {{base_url}}/rest/feature/redisUpdate | ||
Authorization: Basic system system | ||
Content-Type: application/json | ||
|
||
{ | ||
"key": "/check/priority", | ||
"value": 100, | ||
"scope": { "user": "[email protected]", "tenant": "people" } | ||
"key": "/memory/logInterval", | ||
"value": null | ||
} | ||
|
||
### redis_update | check 1 | ||
POST {{base_url}}/rest/feature/redisUpdate | ||
Authorization: Basic system system | ||
Content-Type: application/json | ||
|
||
{ | ||
"key": "/check/priority", | ||
"value": 1 | ||
} | ||
|
||
### redis_update | memory 1 | ||
### redis_update | check 2 | ||
POST {{base_url}}/rest/feature/redisUpdate | ||
Authorization: Basic system system | ||
Content-Type: application/json | ||
|
||
{ | ||
"key": "/memory/logInterval", | ||
"value": 1000 | ||
"key": "/check/priority", | ||
"value": 10, | ||
"scope": { "tenant": "people" } | ||
} | ||
|
||
### redis_update | memory 2 | ||
### redis_update | check 3 | ||
POST {{base_url}}/rest/feature/redisUpdate | ||
Authorization: Basic system system | ||
Content-Type: application/json | ||
|
||
{ | ||
"key": "/memory/logInterval", | ||
"value": 100 | ||
"key": "/check/priority", | ||
"value": 100, | ||
"scope": { "user": "[email protected]" } | ||
} | ||
|
||
|
||
### redis_update | reset | ||
POST {{base_url}}/rest/feature/redisUpdate | ||
Authorization: Basic system system | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,7 @@ | ||
"use strict"; | ||
|
||
const pathlib = require("path"); | ||
|
||
const FEATURES_FILEPATH = pathlib.join(__dirname, "features.yaml"); | ||
|
||
const FEATURE = Object.freeze({ | ||
module.exports = Object.freeze({ | ||
CHECK_API_PRIORITY: "/check/priority", | ||
|
||
MEM_STAT_LOG_INTERVAL: "/memory/logInterval", | ||
}); | ||
|
||
module.exports = { | ||
FEATURES_FILEPATH, | ||
FEATURE, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,5 +53,12 @@ | |
"cloud-foundry" | ||
], | ||
"author": "Richard Lindner <[email protected]>", | ||
"license": "Apache-2.0" | ||
"license": "Apache-2.0", | ||
"cds": { | ||
"requires": { | ||
"FeatureService": { | ||
"model": "@cap-js-community/feature-toggle-library" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters