feat: expose application name via Appearance API (#9886)

This commit is contained in:
Marcin Tojek
2023-09-27 17:02:18 +02:00
committed by GitHub
parent 68738771b9
commit cb5f8df4c2
18 changed files with 212 additions and 21 deletions
+3
View File
@@ -19,6 +19,7 @@ curl -X GET http://coder-server:8080/api/v2/appearance \
```json
{
"application_name": "string",
"logo_url": "string",
"service_banner": {
"background_color": "string",
@@ -61,6 +62,7 @@ curl -X PUT http://coder-server:8080/api/v2/appearance \
```json
{
"application_name": "string",
"logo_url": "string",
"service_banner": {
"background_color": "string",
@@ -82,6 +84,7 @@ curl -X PUT http://coder-server:8080/api/v2/appearance \
```json
{
"application_name": "string",
"logo_url": "string",
"service_banner": {
"background_color": "string",
+13 -9
View File
@@ -952,6 +952,7 @@ _None_
```json
{
"application_name": "string",
"logo_url": "string",
"service_banner": {
"background_color": "string",
@@ -970,11 +971,12 @@ _None_
### Properties
| Name | Type | Required | Restrictions | Description |
| ---------------- | ------------------------------------------------------------ | -------- | ------------ | ----------- |
| `logo_url` | string | false | | |
| `service_banner` | [codersdk.ServiceBannerConfig](#codersdkservicebannerconfig) | false | | |
| `support_links` | array of [codersdk.LinkConfig](#codersdklinkconfig) | false | | |
| Name | Type | Required | Restrictions | Description |
| ------------------ | ------------------------------------------------------------ | -------- | ------------ | ----------- |
| `application_name` | string | false | | |
| `logo_url` | string | false | | |
| `service_banner` | [codersdk.ServiceBannerConfig](#codersdkservicebannerconfig) | false | | |
| `support_links` | array of [codersdk.LinkConfig](#codersdklinkconfig) | false | | |
## codersdk.AssignableRoles
@@ -4950,6 +4952,7 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
```json
{
"application_name": "string",
"logo_url": "string",
"service_banner": {
"background_color": "string",
@@ -4961,10 +4964,11 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
### Properties
| Name | Type | Required | Restrictions | Description |
| ---------------- | ------------------------------------------------------------ | -------- | ------------ | ----------- |
| `logo_url` | string | false | | |
| `service_banner` | [codersdk.ServiceBannerConfig](#codersdkservicebannerconfig) | false | | |
| Name | Type | Required | Restrictions | Description |
| ------------------ | ------------------------------------------------------------ | -------- | ------------ | ----------- |
| `application_name` | string | false | | |
| `logo_url` | string | false | | |
| `service_banner` | [codersdk.ServiceBannerConfig](#codersdkservicebannerconfig) | false | | |
## codersdk.UpdateCheckResponse