@@ -26,6 +26,8 @@ public ExtractCommand()
26
26
if ( ! apiManagementName . HasValue ( ) ) throw new Exception ( "Missing parameter <apimname>." ) ;
27
27
if ( ! resourceGroupName . HasValue ( ) ) throw new Exception ( "Missing parameter <resourceGroup>." ) ;
28
28
29
+ // TemplateCreator templateCreator = new TemplateCreator();
30
+
29
31
string resourceGroup = resourceGroupName . Values [ 0 ] . ToString ( ) ;
30
32
string apimname = apiManagementName . Values [ 0 ] . ToString ( ) ;
31
33
Api api = new Api ( ) ;
@@ -35,7 +37,6 @@ public ExtractCommand()
35
37
36
38
ConsoleColor lastColor = Console . ForegroundColor ;
37
39
Console . ForegroundColor = ConsoleColor . Green ;
38
-
39
40
Console . WriteLine ( "{0} API's found!" , count ) ;
40
41
Console . ForegroundColor = lastColor ;
41
42
@@ -46,6 +47,10 @@ public ExtractCommand()
46
47
Console . WriteLine ( oApis ) ;
47
48
string apiname = ( string ) oApis [ "value" ] [ i ] [ "name" ] ;
48
49
ColoredConsole . WriteLine ( apiname ) ;
50
+
51
+ ReadFile ( ) ;
52
+
53
+
49
54
ColoredConsole . WriteLine ( api . GetAPIOperations ( apimname , resourceGroup , apiname ) . Result ) ;
50
55
}
51
56
Console . ReadKey ( ) ;
@@ -58,7 +63,6 @@ private static string FormatJSON(string json)
58
63
dynamic parsedJson = JsonConvert . DeserializeObject ( json ) ;
59
64
return JsonConvert . SerializeObject ( parsedJson , Formatting . Indented ) ;
60
65
}
61
-
62
66
public static void DownloadFile ( string sourceURL , string destinationPath )
63
67
{
64
68
long fileSize = 0 ;
0 commit comments