From 413a11ee63b6cacd8e779681bb0a123a58ada8b6 Mon Sep 17 00:00:00 2001 From: LandaMm Date: Sat, 31 May 2025 16:18:36 +0200 Subject: [PATCH] feat: accept description and is active fields on api service creation --- internal/admin/routes.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/admin/routes.go b/internal/admin/routes.go index bf8bb44..fc2e117 100644 --- a/internal/admin/routes.go +++ b/internal/admin/routes.go @@ -67,9 +67,11 @@ func (h *AdminHandler) GetApiServices(w http.ResponseWriter, r *http.Request) { type AddServiceRequest struct { Name string `json:"name"` + Description string `json:"description"` RedirectUris []string `json:"redirect_uris"` Scopes []string `json:"scopes"` GrantTypes []string `json:"grant_types"` + IsActive bool `json:"is_active"` } func (h *AdminHandler) AddApiService(w http.ResponseWriter, r *http.Request) {