mirror of
https://github.com/fosrl/pangolin.git
synced 2026-01-28 22:00:51 +00:00
add back the blueprints api - draft
This commit is contained in:
committed by
Owen Schwartz
parent
fea4d43920
commit
9bd66fa306
@@ -1053,6 +1053,8 @@
|
||||
"actionGetSite": "Get Site",
|
||||
"actionListSites": "List Sites",
|
||||
"actionApplyBlueprint": "Apply Blueprint",
|
||||
"actionListBlueprints": "List Blueprints",
|
||||
"actionGetBlueprint": "Get Blueprint",
|
||||
"setupToken": "Setup Token",
|
||||
"setupTokenDescription": "Enter the setup token from the server console.",
|
||||
"setupTokenRequired": "Setup token is required",
|
||||
|
||||
@@ -1022,6 +1022,8 @@
|
||||
"actionGetSite": "獲取站點",
|
||||
"actionListSites": "站點列表",
|
||||
"actionApplyBlueprint": "應用藍圖",
|
||||
"actionListBlueprints": "藍圖列表",
|
||||
"actionGetBlueprint": "獲取藍圖",
|
||||
"setupToken": "設置令牌",
|
||||
"setupTokenDescription": "從伺服器控制台輸入設定令牌。",
|
||||
"setupTokenRequired": "需要設置令牌",
|
||||
|
||||
@@ -858,6 +858,22 @@ authenticated.put(
|
||||
blueprints.applyJSONBlueprint
|
||||
);
|
||||
|
||||
|
||||
authenticated.get(
|
||||
"/org/:orgId/blueprint/:blueprintId",
|
||||
verifyApiKeyOrgAccess,
|
||||
verifyApiKeyHasAction(ActionsEnum.getBlueprint),
|
||||
blueprints.getBlueprint
|
||||
);
|
||||
|
||||
|
||||
authenticated.get(
|
||||
"/org/:orgId/blueprints",
|
||||
verifyApiKeyOrgAccess,
|
||||
verifyApiKeyHasAction(ActionsEnum.listBlueprints),
|
||||
blueprints.listBlueprints
|
||||
);
|
||||
|
||||
authenticated.get(
|
||||
"/org/:orgId/logs/request",
|
||||
verifyApiKeyOrgAccess,
|
||||
|
||||
@@ -34,7 +34,9 @@ function getActionsCategories(root: boolean) {
|
||||
[t("actionListOrgDomains")]: "listOrgDomains",
|
||||
[t("updateOrgUser")]: "updateOrgUser",
|
||||
[t("createOrgUser")]: "createOrgUser",
|
||||
[t("actionApplyBlueprint")]: "applyBlueprint"
|
||||
[t("actionApplyBlueprint")]: "applyBlueprint",
|
||||
[t("actionListBlueprints")]: "listBlueprints",
|
||||
[t("actionGetBlueprint")]: "getBlueprint"
|
||||
},
|
||||
|
||||
Site: {
|
||||
|
||||
Reference in New Issue
Block a user