feat: accept description and is active fields on api service creation

This commit is contained in:
2025-05-31 16:18:36 +02:00
parent 4a112318bd
commit 413a11ee63

View File

@ -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) {