Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
rjbrache committed Jun 17, 2024
1 parent 9ef87b3 commit 8e6d92b
Show file tree
Hide file tree
Showing 6 changed files with 742 additions and 24 deletions.
258 changes: 252 additions & 6 deletions docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,9 @@ const docTemplate = `{
},
"500": {
"description": "Internal Server Error",
"schema": {}
"schema": {
"$ref": "#/definitions/internal_controller_http_v1.response"
}
}
}
},
Expand All @@ -349,7 +351,9 @@ const docTemplate = `{
},
"500": {
"description": "Internal Server Error",
"schema": {}
"schema": {
"$ref": "#/definitions/internal_controller_http_v1.response"
}
}
}
},
Expand All @@ -375,7 +379,9 @@ const docTemplate = `{
},
"500": {
"description": "Internal Server Error",
"schema": {}
"schema": {
"$ref": "#/definitions/internal_controller_http_v1.response"
}
}
}
}
Expand Down Expand Up @@ -403,7 +409,9 @@ const docTemplate = `{
},
"500": {
"description": "Internal Server Error",
"schema": {}
"schema": {
"$ref": "#/definitions/internal_controller_http_v1.response"
}
}
}
},
Expand All @@ -426,7 +434,9 @@ const docTemplate = `{
},
"500": {
"description": "Internal Server Error",
"schema": {}
"schema": {
"$ref": "#/definitions/internal_controller_http_v1.response"
}
}
}
}
Expand Down Expand Up @@ -572,6 +582,147 @@ const docTemplate = `{
}
}
},
"/api/v1/admin/wireless/": {
"get": {
"description": "Retrieves all of the Wireless configuration profiles from the database. Will not return the password field to protect the privacy of this asset.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"wireless"
],
"summary": "Get All Wireless Configs",
"operationId": "getWifiConfigs",
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/github_com_open-amt-cloud-toolkit_console_internal_entity_dto.WirelessConfigCountResponse"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/internal_controller_http_v1.response"
}
}
}
},
"post": {
"description": "Creates a new Wireless configuration profile. The PSK passphrase is stored in a secrets manager and is only used during configuration to set the Wi-Fi credentials in the AMT device.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"wireless"
],
"summary": "Create a Wireless Config",
"operationId": "addWifiConfig",
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/github_com_open-amt-cloud-toolkit_console_internal_entity_dto.WirelessConfig"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/internal_controller_http_v1.response"
}
}
}
},
"patch": {
"description": "Edits an existing Wireless configuration profile.\n\nThe profileName can not be changed.\n\nVersion must be provided to ensure the correct profile is edited.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"wireless"
],
"summary": "Edit a Wireless Config",
"operationId": "editWifiConfig",
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/github_com_open-amt-cloud-toolkit_console_internal_entity_dto.WirelessConfig"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/internal_controller_http_v1.response"
}
}
}
}
},
"/api/v1/admin/wireless/:profileName": {
"get": {
"description": "Retrieves the specific Wireless configuration profile from the database. Will not return the password field to protect the privacy of this asset.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"wireless"
],
"summary": "Get a Wireless Config",
"operationId": "getWifiConfig",
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/github_com_open-amt-cloud-toolkit_console_internal_entity_dto.WirelessConfig"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/internal_controller_http_v1.response"
}
}
}
},
"delete": {
"description": "Removes the specific Wireless configuration profile from the database.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"wireless"
],
"summary": "Remove a Wireless Config",
"operationId": "deleteWifiConfig",
"responses": {
"200": {
"description": "OK"
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/internal_controller_http_v1.response"
}
}
}
}
},
"/api/v1/amt/alarmOccurrences/:guid": {
"get": {
"description": "Retrieves all of the current Alarm Clock occurences for the device",
Expand Down Expand Up @@ -1019,7 +1170,7 @@ const docTemplate = `{
"200": {
"description": "OK",
"schema": {
"type": "object"
"$ref": "#/definitions/optin.SendOptInCode_OUTPUT"
}
},
"500": {
Expand Down Expand Up @@ -1360,6 +1511,14 @@ const docTemplate = `{
}
}
},
"encoding_xml.Name": {
"type": "object",
"properties": {
"space": {
"type": "string"
}
}
},
"github_com_open-amt-cloud-toolkit_console_internal_entity_dto.AuditLog": {
"type": "object",
"required": [
Expand Down Expand Up @@ -1898,6 +2057,82 @@ const docTemplate = `{
}
}
},
"github_com_open-amt-cloud-toolkit_console_internal_entity_dto.WirelessConfig": {
"type": "object",
"properties": {
"authenticationMethod": {
"type": "integer",
"enum": [
4,
5,
6,
7
],
"example": 1
},
"encryptionMethod": {
"type": "integer",
"enum": [
3,
4
],
"example": 2
},
"ieee8021xProfileName": {
"type": "string",
"example": "My Profile"
},
"ieee8021xProfileObject": {
"$ref": "#/definitions/github_com_open-amt-cloud-toolkit_console_internal_entity_dto.IEEE8021xConfig"
},
"linkPolicy": {
"type": "array",
"items": {
"type": "integer"
}
},
"profileName": {
"type": "string",
"example": "My Profile"
},
"pskPassphrase": {
"type": "string",
"maxLength": 32,
"minLength": 8,
"example": "abc"
},
"pskValue": {
"type": "integer",
"example": 3
},
"ssid": {
"type": "string",
"maxLength": 32,
"example": "abc"
},
"tenantId": {
"type": "string",
"example": "abc123"
},
"version": {
"type": "string"
}
}
},
"github_com_open-amt-cloud-toolkit_console_internal_entity_dto.WirelessConfigCountResponse": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/definitions/github_com_open-amt-cloud-toolkit_console_internal_entity_dto.WirelessConfig"
}
},
"totalCount": {
"type": "integer"
}
}
},
"internal_controller_http_v1.CIRAConfigCountResponse": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -1977,6 +2212,17 @@ const docTemplate = `{
}
}
},
"optin.SendOptInCode_OUTPUT": {
"type": "object",
"properties": {
"returnValue": {
"type": "integer"
},
"xmlname": {
"$ref": "#/definitions/encoding_xml.Name"
}
}
},
"power.PowerActionResponse": {
"type": "object",
"properties": {
Expand Down
Loading

0 comments on commit 8e6d92b

Please sign in to comment.