From c418ea359ec83e84bf92e9514ac87e8a29c5bcb4 Mon Sep 17 00:00:00 2001 From: fedorHub Date: Wed, 27 Aug 2025 10:22:47 +0200 Subject: [PATCH] fix: add display name to the api --- internal/app/api/v1/models/models_provisioning.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/app/api/v1/models/models_provisioning.go b/internal/app/api/v1/models/models_provisioning.go index 88bd0eb..4c91efd 100644 --- a/internal/app/api/v1/models/models_provisioning.go +++ b/internal/app/api/v1/models/models_provisioning.go @@ -67,7 +67,8 @@ type ProvisioningRequest struct { // UserIdentifier is the identifier of the user the peer should be linked to. // If no user identifier is set, the authenticated user is used. UserIdentifier string `json:"UserIdentifier" example:"uid-1234567"` - + // DisplayName is an optional user-defined description of the peer. + DisplayName string `json:"DisplayName" example:"TestUser" binding:"omitempty"` // PublicKey is the optional public key of the peer. If no public key is set, a new key pair is generated. PublicKey string `json:"PublicKey" example:"xTIBA5rboUvnH4htodjb6e697QjLERt1NAB4mZqp8Dg=" binding:"omitempty,len=44"` // PresharedKey is the optional pre-shared key of the peer. If no pre-shared key is set, a new key is generated.