!string.IsNullOrEmpty(s)).ToArray(); if (segments.Length >= 2) { string typeSegment = segments[segments.Length - 2]; string typeSingular = typeSegment; if (typeSegment == "products") { typeSingular = "product"; } if (typeSegment == "apis") { typeSingular = "api"; } scopeDisplay = typeSingular + "/" + segments[segments.Length - 1]; } else if (segments.Length == 1) { // 예: "/apis" (전체 API 대상) 처럼 이름이 없는 경우 scopeDisplay = segments[0]; } } var newProps = new JObject(); foreach (var p in props.Properties()) { if (p.Name == "ownerId") { continue; } if (p.Name == "scope") { newProps["scope"] = scopeDisplay; continue; } newProps[p.Name] = p.Value; } var newItem = new JObject(); newItem["name"] = item["name"]; newItem["properties"] = newProps; normalizedList.Add(newItem); } if (isList) { var result = new JObject(); result["value"] = normalizedList; if (raw["nextLink"] != null) { result["nextLink"] = raw["nextLink"]; } return result; } else { return (JObject)normalizedList[0]; } }" />