Implementation for PUT trustedInvokers endpoint
[nonrtric/plt/sme.git] / capifcore / internal / publishserviceapi / typeaccess.go
index 32c1a7a..c8a7afc 100644 (file)
@@ -28,3 +28,14 @@ func (sd ServiceAPIDescription) GetAefIds() []string {
        }
        return allIds
 }
+
+func (sd ServiceAPIDescription) GetAefProfileById(id *string) *AefProfile {
+       if sd.AefProfiles != nil {
+               for _, aefProfile := range *sd.AefProfiles {
+                       if aefProfile.AefId == *id {
+                               return &aefProfile
+                       }
+               }
+       }
+       return nil
+}