feat: accept description and is active fields on api service creation
This commit is contained in:
@ -67,9 +67,11 @@ func (h *AdminHandler) GetApiServices(w http.ResponseWriter, r *http.Request) {
|
|||||||
|
|
||||||
type AddServiceRequest struct {
|
type AddServiceRequest struct {
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
|
Description string `json:"description"`
|
||||||
RedirectUris []string `json:"redirect_uris"`
|
RedirectUris []string `json:"redirect_uris"`
|
||||||
Scopes []string `json:"scopes"`
|
Scopes []string `json:"scopes"`
|
||||||
GrantTypes []string `json:"grant_types"`
|
GrantTypes []string `json:"grant_types"`
|
||||||
|
IsActive bool `json:"is_active"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (h *AdminHandler) AddApiService(w http.ResponseWriter, r *http.Request) {
|
func (h *AdminHandler) AddApiService(w http.ResponseWriter, r *http.Request) {
|
||||||
|
Reference in New Issue
Block a user