File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
src/Authentication/Authentication/Models Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
1
[submodule "autorest.powershell "]
2
2
path = autorest.powershell
3
3
url = https://github.com/microsoftgraph/autorest.powershell
4
- branch = powershell-v2
4
+ branch = external-docs-support
Original file line number Diff line number Diff line change @@ -73,6 +73,10 @@ public class GraphCommand : IGraphCommand
73
73
/// </summary>
74
74
public string OutputType { get ; set ; }
75
75
/// <summary>
76
+ /// The response type of the command.
77
+ /// </summary>
78
+ public string ApiReferenceLink { get ; set ; }
79
+ /// <summary>
76
80
/// The parameter sets of the command.
77
81
/// </summary>
78
82
public string [ ] Variants { get ; set ; }
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ $CommandPathMapping = [ordered]@{}
35
35
36
36
# Regex patterns.
37
37
$OpenApiTagPattern = ' \[OpenAPI\].s*(.*)=>(.*):\"(.*)\"'
38
+ $ExternalDocsPattern = ' https://learn.microsoft.com/graph/api/(.*?(graph-rest-1.0|graph-rest-beta))'
38
39
$ActionFunctionFQNPattern = " \/Microsoft.Graph.(.*)$"
39
40
$PermissionsUrl = " https://graphexplorerapi.azurewebsites.net/permissions"
40
41
@@ -51,7 +52,6 @@ $ApiVersion | ForEach-Object {
51
52
if ($_.DirectoryName -match " \\src\\(.*?.)\\" ) {
52
53
$ModuleName = ($CurrentApiVersion -eq " beta" ) ? " Beta.$ ( $Matches.1 ) " : $Matches.1
53
54
}
54
-
55
55
$RawFileContent = (Get-Content - Path $_.FullName - Raw)
56
56
if ($RawFileContent -match $OpenApiTagPattern ) {
57
57
$Method = $Matches.2
@@ -81,6 +81,7 @@ $ApiVersion | ForEach-Object {
81
81
ApiVersion = $CurrentApiVersion
82
82
OutputType = ($RawFileContent -match $OutputTypePattern ) ? $Matches.1 : $null
83
83
Module = $ModuleName
84
+ ApiReferenceLink = ($RawFileContent -match $ExternalDocsPattern ) ? $Matches.0 : $null
84
85
Permissions = @ ()
85
86
}
86
87
You can’t perform that action at this time.
0 commit comments