mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 04:10:20 +08:00
Update system info API swagger
This commit is contained in:
@ -2058,22 +2058,13 @@
|
||||
"tags": [
|
||||
"System API"
|
||||
],
|
||||
"description": "get user's system info",
|
||||
"description": "get system info like CPU and memory usage",
|
||||
"operationId": "ApiController.GetSystemInfo",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "query",
|
||||
"name": "id",
|
||||
"description": "The id ( owner/name ) of the user",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "The Response object",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/object.SystemInfo"
|
||||
"$ref": "#/definitions/util.SystemInfo"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -2323,11 +2314,14 @@
|
||||
"tags": [
|
||||
"System API"
|
||||
],
|
||||
"description": "get local git repo's latest release version info",
|
||||
"description": "get version info like Casdoor release version and commit ID",
|
||||
"operationId": "ApiController.GetVersionInfo",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{string} local latest version hash of Casdoor"
|
||||
"description": "The Response object",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/util.VersionInfo"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -3494,6 +3488,23 @@
|
||||
"operationId": "ApiController.UploadResource"
|
||||
}
|
||||
},
|
||||
"/api/user": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Account API"
|
||||
],
|
||||
"description": "return Laravel compatible user information according to OAuth 2.0",
|
||||
"operationId": "ApiController.UserInfo2",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "The Response object",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/LaravelResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/userinfo": {
|
||||
"get": {
|
||||
"tags": [
|
||||
@ -3627,14 +3638,18 @@
|
||||
}
|
||||
},
|
||||
"definitions": {
|
||||
"2268.0xc000528cf0.false": {
|
||||
"2306.0xc0000a7410.false": {
|
||||
"title": "false",
|
||||
"type": "object"
|
||||
},
|
||||
"2302.0xc000528d20.false": {
|
||||
"2340.0xc0000a7440.false": {
|
||||
"title": "false",
|
||||
"type": "object"
|
||||
},
|
||||
"LaravelResponse": {
|
||||
"title": "LaravelResponse",
|
||||
"type": "object"
|
||||
},
|
||||
"Response": {
|
||||
"title": "Response",
|
||||
"type": "object"
|
||||
@ -3682,6 +3697,9 @@
|
||||
"captchaType": {
|
||||
"type": "string"
|
||||
},
|
||||
"clientId": {
|
||||
"type": "string"
|
||||
},
|
||||
"clientSecret": {
|
||||
"type": "string"
|
||||
},
|
||||
@ -3758,10 +3776,10 @@
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"data": {
|
||||
"$ref": "#/definitions/2268.0xc000528cf0.false"
|
||||
"$ref": "#/definitions/2306.0xc0000a7410.false"
|
||||
},
|
||||
"data2": {
|
||||
"$ref": "#/definitions/2302.0xc000528d20.false"
|
||||
"$ref": "#/definitions/2340.0xc0000a7440.false"
|
||||
},
|
||||
"msg": {
|
||||
"type": "string"
|
||||
@ -4830,10 +4848,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"object.SystemInfo": {
|
||||
"title": "SystemInfo",
|
||||
"type": "object"
|
||||
},
|
||||
"object.TableColumn": {
|
||||
"title": "TableColumn",
|
||||
"type": "object",
|
||||
@ -5475,6 +5489,43 @@
|
||||
"title": "CredentialCreationResponse",
|
||||
"type": "object"
|
||||
},
|
||||
"util.SystemInfo": {
|
||||
"title": "SystemInfo",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"cpuUsage": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "number",
|
||||
"format": "double"
|
||||
}
|
||||
},
|
||||
"memoryTotal": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
"memoryUsed": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
}
|
||||
}
|
||||
},
|
||||
"util.VersionInfo": {
|
||||
"title": "VersionInfo",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"commitId": {
|
||||
"type": "string"
|
||||
},
|
||||
"commitOffset": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
"version": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"webauthn.Credential": {
|
||||
"title": "Credential",
|
||||
"type": "object"
|
||||
|
Reference in New Issue
Block a user