This commit is contained in:
2026-11-26 19:37:36 +03:30
parent b3d6967d90
commit e77a68b3c8
10 changed files with 3721 additions and 8 deletions
+138 -5
View File
@@ -5180,6 +5180,95 @@
}
}
},
"/Authorization/Roles/{id}": {
"get": {
"tags": [
"Authorization"
],
"summary": "Retrieve Specified Role By Id ...",
"parameters": [
{
"name": "id",
"in": "path",
"description": "",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
}
},
{
"name": "X-PoweredBy",
"in": "header",
"description": "a Basic Authorization Filter",
"schema": {
"type": "String",
"default": "SaherElmITCenter"
}
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/XRoleDefinitionDto"
}
}
}
}
}
}
},
"/Authorization/Test/Hi": {
"get": {
"tags": [
"Authorization"
],
"summary": "Check the Controller Up and Running",
"parameters": [
{
"name": "X-PoweredBy",
"in": "header",
"description": "a Basic Authorization Filter",
"schema": {
"type": "String",
"default": "SaherElmITCenter"
}
}
],
"responses": {
"200": {
"description": "Success"
}
}
}
},
"/Authorization/Test/PassRequireXPowered": {
"get": {
"tags": [
"Authorization"
],
"summary": "Check Controller ByPass XPowered Filter",
"parameters": [
{
"name": "X-PoweredBy",
"in": "header",
"description": "a Basic Authorization Filter",
"schema": {
"type": "String",
"default": "SaherElmITCenter"
}
}
],
"responses": {
"200": {
"description": "Success"
}
}
}
},
"/": {
"get": {
"tags": [
@@ -6364,17 +6453,17 @@
"memberType": {
"$ref": "#/components/schemas/MemberTypes"
},
"name": {
"type": "string",
"nullable": true,
"readOnly": true
},
"declaringType": {
"$ref": "#/components/schemas/Type"
},
"reflectedType": {
"$ref": "#/components/schemas/Type"
},
"name": {
"type": "string",
"nullable": true,
"readOnly": true
},
"module": {
"$ref": "#/components/schemas/Module"
},
@@ -8934,6 +9023,50 @@
},
"additionalProperties": false
},
"XRoleDefinitionDto": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"description": "Entity Id",
"format": "int32"
},
"deleted": {
"type": "boolean",
"description": "Provided Soft Delete Behaviour ..."
},
"name": {
"type": "string",
"description": "Unique Normalized Role Name, e.g. chief_clerk ...",
"nullable": true
},
"displayName": {
"type": "string",
"description": "Persian Display Name, e.g. سر دبیر ...",
"nullable": true
},
"weight": {
"type": "integer",
"description": "Role Weight, same as XUserRole enum (user=0 ... admin=10) ...",
"format": "int32"
},
"parentRoleName": {
"type": "string",
"description": "Optional Parent Role for Inheritance ...",
"nullable": true
},
"isEnabled": {
"type": "boolean",
"description": "Is Enabled ..."
},
"isSystem": {
"type": "boolean",
"description": "Seeded from Constants, cannot be removed ..."
}
},
"additionalProperties": false,
"description": "a Role Definition Model (mirror of ASP.NET IdentityRole + Weight) ..."
},
"XRotateApiKeyRequest": {
"type": "object",
"properties": {