| Required role: | super-admin |
| POST | /app-configs/{Section} |
|---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports tvpl.api.ServiceModel
Imports tvpl.data.Constant
Imports tvpl.data.Models
Namespace Global
Namespace tvpl.api.ServiceModel
Public Partial Class UpdateAppConfigsBySection
Public Sub New()
Items = New List(Of AppConfigItem)
End Sub
Public Overridable Property Section As AppConfigSection
Public Overridable Property Items As List(Of AppConfigItem)
End Class
End Namespace
Namespace tvpl.data.Constant
Public Enum AppConfigSection
AppInfo
Smtp
Keycloak
End Enum
End Namespace
Namespace tvpl.data.Models
Public Partial Class AppConfigItem
Public Overridable Property Key As String
Public Overridable Property Value As String
Public Overridable Property Description As String
End Class
End Namespace
End Namespace
VB.NET UpdateAppConfigsBySection DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /app-configs/{Section} HTTP/1.1
Host: etc-api.vsmlab.vn
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"section":"AppInfo","items":[{"key":"String","value":"String","description":"String"}]}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{}