HodorNV / ALOps

ALOps
59 stars 24 forks source link

ALOps OpenAPI outputs incomplete URI to API bound actions #690

Closed ninjaniels closed 9 months ago

ninjaniels commented 1 year ago

Describe the bug We have just implemented ALOps OpenAPI, a great feature in ALOps for auto-generating the Open API Specification file to all our API endpoints. However the URI for bound actions on API pages is incorrect. The URI is missing /Microsoft.NAV..

Perhaps this is outside your control if all of the magic happens through other services back-end, but it's make it or break it for us if we can use this feature or not.

the used yaml please provide the yaml that you used. It helps you put the yaml like this:

#Your build pipeline references an undefined variable named ‘ALOPS_DOCKER_HOSTNAME’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See https://go.microsoft.com/fwlink/?linkid=865972
#Your build pipeline references an undefined variable named ‘ALOPS_DOCKER_NAVSERVERINSTANCE’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See https://go.microsoft.com/fwlink/?linkid=865972
#Your build pipeline references an undefined variable named ‘ALOPS_DOCKER_ADMINUSER’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See https://go.microsoft.com/fwlink/?linkid=865972
#Your build pipeline references an undefined variable named ‘ALOPS_DOCKER_ADMINPASSWORD’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See https://go.microsoft.com/fwlink/?linkid=865972

steps:
- task: Hodor.hodor-alops.ALOpsOpenAPI.ALOpsOpenAPI@1
  displayName: 'ALOps OpenAPI'
  inputs:
    usedocker: true
    api_endpoint: 'https://$(ALOPS_DOCKER_HOSTNAME):7048/$(ALOPS_DOCKER_NAVSERVERINSTANCE)'
    authentication: usernamepassword
    username: '$(ALOPS_DOCKER_ADMINUSER)'
    password: '$(ALOPS_DOCKER_ADMINPASSWORD)'
  continueOnError: true

the output Also the complete output is necessary for us to see what is going on. Also use backtics:

2023-10-23T12:42:45.7190697Z ##[section]Starting: ALOps OpenAPI
2023-10-23T12:42:45.7884843Z ==============================================================================
2023-10-23T12:42:45.7885350Z Task         : ALOps OpenAPI
2023-10-23T12:42:45.7885547Z Description  : Generate OpenAPI descriptions from Business Central API's
2023-10-23T12:42:45.7885859Z Version      : 1.459.5009
2023-10-23T12:42:45.7886041Z Author       : Hodor
2023-10-23T12:42:45.7886247Z Help         : Generate OpenAPI descriptions from Business Central API's.
2023-10-23T12:42:45.7886523Z ==============================================================================
2023-10-23T12:42:47.1491190Z *** Validate configuration
2023-10-23T12:42:47.2542330Z *** Task Inputs:
2023-10-23T12:42:47.2605726Z 
2023-10-23T12:42:47.2743096Z name                                                         value
2023-10-23T12:42:47.2746639Z ----                                                         -----
2023-10-23T12:42:47.2748578Z usedocker                                                     True
2023-10-23T12:42:47.2751264Z fixed_tag                                                         
2023-10-23T12:42:47.2754173Z api_endpoint                          https://655b3e4eb7bf:7048/BC
2023-10-23T12:42:47.2756695Z authentication                                    usernamepassword
2023-10-23T12:42:47.2759602Z azure_tenant_id                                                   
2023-10-23T12:42:47.2762294Z azure_app_client_id                                               
2023-10-23T12:42:47.2764973Z azure_app_client_secret                                           
2023-10-23T12:42:47.2767509Z azure_app_client_certificate                                      
2023-10-23T12:42:47.2770242Z azure_app_client_certificate_password                             
2023-10-23T12:42:47.2772853Z username                                                     admin
2023-10-23T12:42:47.2775437Z password                                                  Hixi2127
2023-10-23T12:42:47.2779085Z publish_artifacts                                             True
2023-10-23T12:42:47.2780807Z discover                                                      True
2023-10-23T12:42:47.2783947Z api_routes                                                        
2023-10-23T12:42:47.2788046Z api_exclude_routes                                                
2023-10-23T12:42:47.2792950Z inspect_paths                                                False
2023-10-23T12:42:47.2795529Z api_servers                                                       
2023-10-23T12:42:47.2798833Z export_edmx                                                  False
2023-10-23T12:42:47.2802703Z export_yaml                                                   True
2023-10-23T12:42:47.2807248Z export_json                                                  False
2023-10-23T12:42:47.2810394Z exclude_company_paths                                        False
2023-10-23T12:42:47.2811078Z 
2023-10-23T12:42:47.2842552Z 
2023-10-23T12:42:47.2856528Z 
2023-10-23T12:42:47.3063374Z *** For documentation, please visit   : https://www.alops.be/documentation
2023-10-23T12:42:47.3067790Z 
2023-10-23T12:42:47.7331404Z *** ALOps License:
2023-10-23T12:42:47.7367604Z   * Licensed To: Armada Dynamics AS (Organization License)
2023-10-23T12:42:47.7373314Z 
2023-10-23T12:42:47.7520037Z *** Imported required PS-Functions
2023-10-23T12:42:48.0332991Z *** Parse Task Parameters
2023-10-23T12:42:48.3485619Z *** Initiate Docker Session
2023-10-23T12:42:48.8931167Z *** Set Docker Container ErrorActionPreference = Stop
2023-10-23T12:42:50.5406053Z *** Creating API Connector with endpoint [https://655b3e4eb7bf:7048/BC]
2023-10-23T12:42:50.5713133Z *** API Authentication: Using Username/Password Authentication [admin]
2023-10-23T12:42:50.5895622Z *** List Companies
2023-10-23T12:42:50.6057494Z ##[command]Invoke-RestMethod -Method Get -Uri 'https://655b3e4eb7bf:7048/bc/api/microsoft/automation/v1.0/companies'
2023-10-23T12:42:51.5603497Z 
2023-10-23T12:42:51.5862687Z id                                   name                      displayName
2023-10-23T12:42:51.5866415Z --                                   ----                      -----------
2023-10-23T12:42:51.5869743Z 8d0560c1-9061-ee11-8df5-6045bde9ccca CRONUS International Ltd.            
2023-10-23T12:42:51.5869851Z 
2023-10-23T12:42:51.5873192Z 
2023-10-23T12:42:51.5948804Z *** Selected Company: CRONUS International Ltd. [8d0560c1-9061-ee11-8df5-6045bde9ccca]
2023-10-23T12:42:51.6889625Z *** Download [https://www.nuget.org/api/v2/package/Microsoft.OpenApi.OData/1.0.8]
2023-10-23T12:42:53.4628709Z *** Download [https://www.nuget.org/api/v2/package/microsoft.openapi/1.2.2]
2023-10-23T12:42:54.4346705Z *** Download [https://www.nuget.org/api/v2/package/microsoft.odata.edm/7.6.1]
2023-10-23T12:42:56.4222172Z *** Loading Assemblies:
2023-10-23T12:42:56.4226220Z   * Microsoft.OData.Edm, Version=7.6.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
2023-10-23T12:42:56.4230809Z   * Microsoft.OpenApi, Version=1.2.2.0, Culture=neutral, PublicKeyToken=3f5743946376f042
2023-10-23T12:42:56.4237034Z   * Microsoft.OpenApi.OData.Reader, Version=1.0.8.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
2023-10-23T12:42:56.4240746Z *** Discover Routes
2023-10-23T12:42:56.4244983Z *** Exclude Routes
2023-10-23T12:42:56.4250130Z *** Routes to Convert:
2023-10-23T12:42:56.4253380Z 
2023-10-23T12:42:56.4287727Z Endpoint                         Route                           
2023-10-23T12:42:56.4291371Z --------                         -----                           
2023-10-23T12:42:56.4293312Z https://655b3e4eb7bf:7048/bc/api beta                            
2023-10-23T12:42:56.4295603Z https://655b3e4eb7bf:7048/bc/api v1.0                            
2023-10-23T12:42:56.4297901Z https://655b3e4eb7bf:7048/bc/api v2.0                            
2023-10-23T12:42:56.4300412Z https://655b3e4eb7bf:7048/bc/api armadadynamics/eqm/v2.0         
2023-10-23T12:42:56.4302999Z https://655b3e4eb7bf:7048/bc/api microsoft/admin/beta            
2023-10-23T12:42:56.4306529Z https://655b3e4eb7bf:7048/bc/api microsoft/automate/v1.0         
2023-10-23T12:42:56.4309240Z https://655b3e4eb7bf:7048/bc/api microsoft/automation/beta       
2023-10-23T12:42:56.4311580Z https://655b3e4eb7bf:7048/bc/api microsoft/automation/v1.0       
2023-10-23T12:42:56.4313945Z https://655b3e4eb7bf:7048/bc/api microsoft/automation/v2.0       
2023-10-23T12:42:56.4316253Z https://655b3e4eb7bf:7048/bc/api microsoft/dataverse/v1.0        
2023-10-23T12:42:56.4318644Z https://655b3e4eb7bf:7048/bc/api microsoft/performancToolkit/v1.0
2023-10-23T12:42:56.4320973Z https://655b3e4eb7bf:7048/bc/api microsoft/powerbi/v2.0          
2023-10-23T12:42:56.4323394Z https://655b3e4eb7bf:7048/bc/api microsoft/reportsFinance/beta   
2023-10-23T12:42:56.4325750Z https://655b3e4eb7bf:7048/bc/api microsoft/runtime/beta          
2023-10-23T12:42:56.4328893Z https://655b3e4eb7bf:7048/bc/api microsoft/vatGroup/v1.0         
2023-10-23T12:42:56.4329283Z 
2023-10-23T12:42:56.4331314Z 
2023-10-23T12:42:56.4336594Z *** Convert Route: beta
2023-10-23T12:42:56.4341958Z ##[command]Invoke-RestMethod -Method Get -Uri 'https://655b3e4eb7bf:7048/bc/api/beta/$metadata?$schemaversion=2.0'
2023-10-23T12:42:56.4346305Z *** Parse EDMX Content
2023-10-23T12:42:56.4350871Z *** Convert To OpenAPI
2023-10-23T12:42:56.4355331Z *** Set Servers:
2023-10-23T12:42:56.4360000Z   * 
2023-10-23T12:42:56.4364989Z   * Cleanup OpenAPI Paths
2023-10-23T12:42:56.4369355Z   * Cleanup OpenAPI Operations
2023-10-23T12:42:56.4373669Z   * Set OpenAPI Path names
2023-10-23T12:42:56.4378674Z   * OpenAPI correct Quoted parameters
2023-10-23T12:42:56.4383052Z   * Correct ActionNamespace
2023-10-23T12:42:56.4387752Z   * Remove X-MS-Doc extensions
2023-10-23T12:42:56.4391832Z   * Setup OpenAPI.Tags
2023-10-23T12:42:56.4397902Z   * Generate OpenAPI YAML definition
2023-10-23T12:42:56.4402075Z   * Duration: 1.2812532 seconds
2023-10-23T12:42:56.4402381Z 
2023-10-23T12:42:56.4406446Z *** Convert Route: v1.0
2023-10-23T12:42:56.4412017Z ##[command]Invoke-RestMethod -Method Get -Uri 'https://655b3e4eb7bf:7048/bc/api/v1.0/$metadata?$schemaversion=2.0'
2023-10-23T12:42:58.8285949Z *** Parse EDMX Content
2023-10-23T12:42:58.8465019Z *** Convert To OpenAPI
2023-10-23T12:42:58.9498032Z *** Set Servers:
2023-10-23T12:42:58.9508406Z   * 
2023-10-23T12:42:58.9529356Z   * Cleanup OpenAPI Paths
2023-10-23T12:42:59.1147131Z   * Cleanup OpenAPI Operations
2023-10-23T12:42:59.1225866Z   * Set OpenAPI Path names
2023-10-23T12:42:59.1266747Z   * OpenAPI correct Quoted parameters
2023-10-23T12:42:59.5226654Z   * Correct ActionNamespace
2023-10-23T12:42:59.6158012Z   * Remove X-MS-Doc extensions
2023-10-23T12:42:59.6183189Z   * Setup OpenAPI.Tags
2023-10-23T12:42:59.7712539Z   * Generate OpenAPI YAML definition
2023-10-23T12:43:00.2375653Z   * Duration: 4.5467597 seconds
2023-10-23T12:43:00.2376639Z 
2023-10-23T12:43:00.2391583Z *** Convert Route: v2.0
2023-10-23T12:43:00.2404836Z ##[command]Invoke-RestMethod -Method Get -Uri 'https://655b3e4eb7bf:7048/bc/api/v2.0/$metadata?$schemaversion=2.0'
2023-10-23T12:43:03.7500753Z *** Parse EDMX Content
2023-10-23T12:43:03.7798560Z *** Convert To OpenAPI
2023-10-23T12:43:03.8779313Z *** Set Servers:
2023-10-23T12:43:03.8791243Z   * 
2023-10-23T12:43:03.8809191Z   * Cleanup OpenAPI Paths
2023-10-23T12:43:04.2774733Z   * Cleanup OpenAPI Operations
2023-10-23T12:43:04.2889320Z   * Set OpenAPI Path names
2023-10-23T12:43:04.2968577Z   * OpenAPI correct Quoted parameters
2023-10-23T12:43:05.0324964Z   * Correct ActionNamespace
2023-10-23T12:43:05.1815062Z   * Remove X-MS-Doc extensions
2023-10-23T12:43:05.1843978Z   * Setup OpenAPI.Tags
2023-10-23T12:43:05.4133544Z   * Generate OpenAPI YAML definition
2023-10-23T12:43:06.4501643Z   * Duration: 6.2201987 seconds
2023-10-23T12:43:06.4502145Z 
2023-10-23T12:43:06.4517040Z *** Convert Route: armadadynamics/eqm/v2.0
2023-10-23T12:43:06.4547416Z ##[command]Invoke-RestMethod -Method Get -Uri 'https://655b3e4eb7bf:7048/bc/api/armadadynamics/eqm/v2.0/$metadata?$schemaversion=2.0'
2023-10-23T12:43:06.6020137Z *** Parse EDMX Content
2023-10-23T12:43:06.6286574Z *** Convert To OpenAPI
2023-10-23T12:43:06.7032901Z *** Set Servers:
2023-10-23T12:43:06.7044125Z   * 
2023-10-23T12:43:06.7058628Z   * Cleanup OpenAPI Paths
2023-10-23T12:43:06.8452064Z   * Cleanup OpenAPI Operations
2023-10-23T12:43:06.8606226Z   * Set OpenAPI Path names
2023-10-23T12:43:06.8698296Z   * OpenAPI correct Quoted parameters
2023-10-23T12:43:07.2324422Z   * Correct ActionNamespace
2023-10-23T12:43:07.2958534Z   * Remove X-MS-Doc extensions
2023-10-23T12:43:07.2979439Z   * Setup OpenAPI.Tags
2023-10-23T12:43:07.3612658Z   * Generate OpenAPI YAML definition
2023-10-23T12:43:07.8785410Z   * Duration: 1.4219172 seconds
2023-10-23T12:43:07.8791728Z 
2023-10-23T12:43:07.8822393Z *** Convert Route: microsoft/admin/beta
2023-10-23T12:43:07.8847074Z ##[command]Invoke-RestMethod -Method Get -Uri 'https://655b3e4eb7bf:7048/bc/api/microsoft/admin/beta/$metadata?$schemaversion=2.0'
2023-10-23T12:43:08.0557602Z *** Parse EDMX Content
2023-10-23T12:43:08.0579932Z *** Convert To OpenAPI
2023-10-23T12:43:08.0754467Z *** Set Servers:
2023-10-23T12:43:08.0767536Z   * 
2023-10-23T12:43:08.0795629Z   * Cleanup OpenAPI Paths
2023-10-23T12:43:08.0819463Z   * Cleanup OpenAPI Operations
2023-10-23T12:43:08.0842164Z   * Set OpenAPI Path names
2023-10-23T12:43:08.0857011Z   * OpenAPI correct Quoted parameters
2023-10-23T12:43:08.0997766Z   * Correct ActionNamespace
2023-10-23T12:43:08.1026874Z   * Remove X-MS-Doc extensions
2023-10-23T12:43:08.1039484Z   * Setup OpenAPI.Tags
2023-10-23T12:43:08.1055099Z   * Generate OpenAPI YAML definition
2023-10-23T12:43:08.1276917Z   * Duration: 0.2499481 seconds
2023-10-23T12:43:08.1278861Z 
2023-10-23T12:43:08.1294395Z *** Convert Route: microsoft/automate/v1.0
2023-10-23T12:43:08.1312994Z ##[command]Invoke-RestMethod -Method Get -Uri 'https://655b3e4eb7bf:7048/bc/api/microsoft/automate/v1.0/$metadata?$schemaversion=2.0'
2023-10-23T12:43:08.3110699Z *** Parse EDMX Content
2023-10-23T12:43:08.3132905Z *** Convert To OpenAPI
2023-10-23T12:43:08.3188704Z *** Set Servers:
2023-10-23T12:43:08.3194498Z   * 
2023-10-23T12:43:08.3248501Z   * Cleanup OpenAPI Paths
2023-10-23T12:43:08.3282074Z   * Cleanup OpenAPI Operations
2023-10-23T12:43:08.3299910Z   * Set OpenAPI Path names
2023-10-23T12:43:08.3319235Z   * OpenAPI correct Quoted parameters
2023-10-23T12:43:08.3453612Z   * Correct ActionNamespace
2023-10-23T12:43:08.3489894Z   * Remove X-MS-Doc extensions
2023-10-23T12:43:08.3502354Z   * Setup OpenAPI.Tags
2023-10-23T12:43:08.3523433Z   * Generate OpenAPI YAML definition
2023-10-23T12:43:08.3911475Z   * Duration: 0.2659493 seconds
2023-10-23T12:43:08.3919774Z 
2023-10-23T12:43:08.3950678Z *** Convert Route: microsoft/automation/beta
2023-10-23T12:43:08.3986483Z ##[command]Invoke-RestMethod -Method Get -Uri 'https://655b3e4eb7bf:7048/bc/api/microsoft/automation/beta/$metadata?$schemaversion=2.0'
2023-10-23T12:43:08.5415578Z *** Parse EDMX Content
2023-10-23T12:43:08.5432366Z *** Convert To OpenAPI
2023-10-23T12:43:08.5479784Z *** Set Servers:
2023-10-23T12:43:08.5488411Z   * 
2023-10-23T12:43:08.5510903Z   * Cleanup OpenAPI Paths
2023-10-23T12:43:08.5531163Z   * Cleanup OpenAPI Operations
2023-10-23T12:43:08.5544867Z   * Set OpenAPI Path names
2023-10-23T12:43:08.5556493Z   * OpenAPI correct Quoted parameters
2023-10-23T12:43:08.5723305Z   * Correct ActionNamespace
2023-10-23T12:43:08.5770098Z   * Remove X-MS-Doc extensions
2023-10-23T12:43:08.5784727Z   * Setup OpenAPI.Tags
2023-10-23T12:43:08.5805436Z   * Generate OpenAPI YAML definition
2023-10-23T12:43:08.6065599Z   * Duration: 0.2187479 seconds
2023-10-23T12:43:08.6066701Z 
2023-10-23T12:43:08.6098414Z *** Convert Route: microsoft/automation/v1.0
2023-10-23T12:43:08.6658281Z ##[command]Invoke-RestMethod -Method Get -Uri 'https://655b3e4eb7bf:7048/bc/api/microsoft/automation/v1.0/$metadata?$schemaversion=2.0'
2023-10-23T12:43:08.7051088Z *** Parse EDMX Content
2023-10-23T12:43:08.7259423Z *** Convert To OpenAPI
2023-10-23T12:43:08.7489167Z *** Set Servers:
2023-10-23T12:43:08.7506608Z   * 
2023-10-23T12:43:08.7535018Z   * Cleanup OpenAPI Paths
2023-10-23T12:43:08.7657393Z   * Cleanup OpenAPI Operations
2023-10-23T12:43:08.7680676Z   * Set OpenAPI Path names
2023-10-23T12:43:08.7695358Z   * OpenAPI correct Quoted parameters
2023-10-23T12:43:08.8322807Z   * Correct ActionNamespace
2023-10-23T12:43:08.8447915Z   * Remove X-MS-Doc extensions
2023-10-23T12:43:08.8459190Z   * Setup OpenAPI.Tags
2023-10-23T12:43:08.8525851Z   * Generate OpenAPI YAML definition
2023-10-23T12:43:08.9478730Z   * Duration: 0.3281199 seconds
2023-10-23T12:43:08.9481839Z 
2023-10-23T12:43:08.9505333Z *** Convert Route: microsoft/automation/v2.0
2023-10-23T12:43:08.9539460Z ##[command]Invoke-RestMethod -Method Get -Uri 'https://655b3e4eb7bf:7048/bc/api/microsoft/automation/v2.0/$metadata?$schemaversion=2.0'
2023-10-23T12:43:09.6715271Z *** Parse EDMX Content
2023-10-23T12:43:09.6826292Z *** Convert To OpenAPI
2023-10-23T12:43:09.7030690Z *** Set Servers:
2023-10-23T12:43:09.7043688Z   * 
2023-10-23T12:43:09.7063217Z   * Cleanup OpenAPI Paths
2023-10-23T12:43:09.7259031Z   * Cleanup OpenAPI Operations
2023-10-23T12:43:09.7389574Z   * Set OpenAPI Path names
2023-10-23T12:43:09.7402449Z   * OpenAPI correct Quoted parameters
2023-10-23T12:43:09.8284101Z   * Correct ActionNamespace
2023-10-23T12:43:09.8516691Z   * Remove X-MS-Doc extensions
2023-10-23T12:43:09.8530693Z   * Setup OpenAPI.Tags
2023-10-23T12:43:09.8667582Z   * Generate OpenAPI YAML definition
2023-10-23T12:43:10.0193907Z   * Duration: 1.0627032 seconds
2023-10-23T12:43:10.0206089Z 
2023-10-23T12:43:10.0242531Z *** Convert Route: microsoft/dataverse/v1.0
2023-10-23T12:43:10.0282467Z ##[command]Invoke-RestMethod -Method Get -Uri 'https://655b3e4eb7bf:7048/bc/api/microsoft/dataverse/v1.0/$metadata?$schemaversion=2.0'
2023-10-23T12:43:10.1988773Z *** Parse EDMX Content
2023-10-23T12:43:10.2016878Z *** Convert To OpenAPI
2023-10-23T12:43:10.2083593Z *** Set Servers:
2023-10-23T12:43:10.2093432Z   * 
2023-10-23T12:43:10.2118806Z   * Cleanup OpenAPI Paths
2023-10-23T12:43:10.2136921Z   * Cleanup OpenAPI Operations
2023-10-23T12:43:10.2153192Z   * Set OpenAPI Path names
2023-10-23T12:43:10.2166263Z   * OpenAPI correct Quoted parameters
2023-10-23T12:43:10.2351866Z   * Correct ActionNamespace
2023-10-23T12:43:10.2383739Z   * Remove X-MS-Doc extensions
2023-10-23T12:43:10.2397108Z   * Setup OpenAPI.Tags
2023-10-23T12:43:10.2418840Z   * Generate OpenAPI YAML definition
2023-10-23T12:43:10.2632369Z   * Duration: 0.2500135 seconds
2023-10-23T12:43:10.2632686Z 
2023-10-23T12:43:10.2645484Z *** Convert Route: microsoft/performancToolkit/v1.0
2023-10-23T12:43:10.2660941Z ##[command]Invoke-RestMethod -Method Get -Uri 'https://655b3e4eb7bf:7048/bc/api/microsoft/performancToolkit/v1.0/$metadata?$schemaversion=2.0'
2023-10-23T12:43:10.5278675Z *** Parse EDMX Content
2023-10-23T12:43:10.5340609Z *** Convert To OpenAPI
2023-10-23T12:43:10.5473481Z *** Set Servers:
2023-10-23T12:43:10.5487681Z   * 
2023-10-23T12:43:10.5523156Z   * Cleanup OpenAPI Paths
2023-10-23T12:43:10.5558611Z   * Cleanup OpenAPI Operations
2023-10-23T12:43:10.5577699Z   * Set OpenAPI Path names
2023-10-23T12:43:10.5594919Z   * OpenAPI correct Quoted parameters
2023-10-23T12:43:10.5892830Z   * Correct ActionNamespace
2023-10-23T12:43:10.5948504Z   * Remove X-MS-Doc extensions
2023-10-23T12:43:10.5960421Z   * Setup OpenAPI.Tags
2023-10-23T12:43:10.5980908Z   * Generate OpenAPI YAML definition
2023-10-23T12:43:10.6366698Z   * Duration: 0.3595412 seconds
2023-10-23T12:43:10.6370561Z 
2023-10-23T12:43:10.6399711Z *** Convert Route: microsoft/powerbi/v2.0
2023-10-23T12:43:10.6414882Z ##[command]Invoke-RestMethod -Method Get -Uri 'https://655b3e4eb7bf:7048/bc/api/microsoft/powerbi/v2.0/$metadata?$schemaversion=2.0'
2023-10-23T12:43:10.7546767Z *** Parse EDMX Content
2023-10-23T12:43:10.7560166Z *** Convert To OpenAPI
2023-10-23T12:43:10.7604423Z *** Set Servers:
2023-10-23T12:43:10.7616462Z   * 
2023-10-23T12:43:10.7670522Z   * Cleanup OpenAPI Paths
2023-10-23T12:43:10.7694016Z   * Cleanup OpenAPI Operations
2023-10-23T12:43:10.7704699Z   * Set OpenAPI Path names
2023-10-23T12:43:10.7719068Z   * OpenAPI correct Quoted parameters
2023-10-23T12:43:10.8048279Z   * Correct ActionNamespace
2023-10-23T12:43:10.8093426Z   * Remove X-MS-Doc extensions
2023-10-23T12:43:10.8105592Z   * Setup OpenAPI.Tags
2023-10-23T12:43:10.8118735Z   * Generate OpenAPI YAML definition
2023-10-23T12:43:10.8330102Z   * Duration: 0.1874544 seconds
2023-10-23T12:43:10.8330659Z 
2023-10-23T12:43:10.8357805Z *** Convert Route: microsoft/reportsFinance/beta
2023-10-23T12:43:10.8369374Z ##[command]Invoke-RestMethod -Method Get -Uri 'https://655b3e4eb7bf:7048/bc/api/microsoft/reportsFinance/beta/$metadata?$schemaversion=2.0'
2023-10-23T12:43:11.3976688Z *** Parse EDMX Content
2023-10-23T12:43:11.4025642Z *** Convert To OpenAPI
2023-10-23T12:43:11.4141316Z *** Set Servers:
2023-10-23T12:43:11.4148818Z   * 
2023-10-23T12:43:11.4210935Z   * Cleanup OpenAPI Paths
2023-10-23T12:43:11.4328499Z   * Cleanup OpenAPI Operations
2023-10-23T12:43:11.4439456Z   * Set OpenAPI Path names
2023-10-23T12:43:11.4458140Z   * OpenAPI correct Quoted parameters
2023-10-23T12:43:11.4873209Z   * Correct ActionNamespace
2023-10-23T12:43:11.4954058Z   * Remove X-MS-Doc extensions
2023-10-23T12:43:11.4966503Z   * Setup OpenAPI.Tags
2023-10-23T12:43:11.5035256Z   * Generate OpenAPI YAML definition
2023-10-23T12:43:11.5883757Z   * Duration: 0.7500292 seconds
2023-10-23T12:43:11.5884208Z 
2023-10-23T12:43:11.5901834Z *** Convert Route: microsoft/runtime/beta
2023-10-23T12:43:11.5913492Z ##[command]Invoke-RestMethod -Method Get -Uri 'https://655b3e4eb7bf:7048/bc/api/microsoft/runtime/beta/$metadata?$schemaversion=2.0'
2023-10-23T12:43:11.6886970Z *** Parse EDMX Content
2023-10-23T12:43:11.6943265Z *** Convert To OpenAPI
2023-10-23T12:43:11.7073855Z *** Set Servers:
2023-10-23T12:43:11.7090464Z   * 
2023-10-23T12:43:11.7127347Z   * Cleanup OpenAPI Paths
2023-10-23T12:43:11.7159109Z   * Cleanup OpenAPI Operations
2023-10-23T12:43:11.7169561Z   * Set OpenAPI Path names
2023-10-23T12:43:11.7198443Z   * OpenAPI correct Quoted parameters
2023-10-23T12:43:11.7503660Z   * Correct ActionNamespace
2023-10-23T12:43:11.7543654Z   * Remove X-MS-Doc extensions
2023-10-23T12:43:11.7555315Z   * Setup OpenAPI.Tags
2023-10-23T12:43:11.7570499Z   * Generate OpenAPI YAML definition
2023-10-23T12:43:11.7837889Z   * Duration: 0.1874757 seconds
2023-10-23T12:43:11.7838966Z 
2023-10-23T12:43:11.7864292Z *** Convert Route: microsoft/vatGroup/v1.0
2023-10-23T12:43:11.7876698Z ##[command]Invoke-RestMethod -Method Get -Uri 'https://655b3e4eb7bf:7048/bc/api/microsoft/vatGroup/v1.0/$metadata?$schemaversion=2.0'
2023-10-23T12:43:12.1035161Z *** Parse EDMX Content
2023-10-23T12:43:12.1095289Z *** Convert To OpenAPI
2023-10-23T12:43:12.1229040Z *** Set Servers:
2023-10-23T12:43:12.1257876Z   * 
2023-10-23T12:43:12.1268585Z   * Cleanup OpenAPI Paths
2023-10-23T12:43:12.1379499Z   * Cleanup OpenAPI Operations
2023-10-23T12:43:12.1395495Z   * Set OpenAPI Path names
2023-10-23T12:43:12.1429202Z   * OpenAPI correct Quoted parameters
2023-10-23T12:43:12.1634316Z   * Correct ActionNamespace
2023-10-23T12:43:12.1678886Z   * Remove X-MS-Doc extensions
2023-10-23T12:43:12.1687979Z   * Setup OpenAPI.Tags
2023-10-23T12:43:12.1709445Z   * Generate OpenAPI YAML definition
2023-10-23T12:43:12.2059402Z   * Duration: 0.4218545 seconds
2023-10-23T12:43:12.2060520Z 
2023-10-23T12:43:12.2069338Z 
2023-10-23T12:43:12.2089784Z *** Export OpenAPI definitions
2023-10-23T12:43:12.2365708Z *** Export BC EDMX To OpenAPI
2023-10-23T12:43:12.2432628Z   * https://655b3e4eb7bf:7048/bc/api/beta
2023-10-23T12:43:12.2459264Z     beta.openapi.yaml
2023-10-23T12:43:12.2707091Z   * https://655b3e4eb7bf:7048/bc/api/v1.0
2023-10-23T12:43:12.2718313Z     v1.0.openapi.yaml
2023-10-23T12:43:12.2872862Z   * https://655b3e4eb7bf:7048/bc/api/v2.0
2023-10-23T12:43:12.2882867Z     v2.0.openapi.yaml
2023-10-23T12:43:12.3125169Z   * https://655b3e4eb7bf:7048/bc/api/armadadynamics/eqm/v2.0
2023-10-23T12:43:12.3136210Z     armadadynamics_eqm_v2.0.openapi.yaml
2023-10-23T12:43:12.3282976Z   * https://655b3e4eb7bf:7048/bc/api/microsoft/admin/beta
2023-10-23T12:43:12.3297839Z     microsoft_admin_beta.openapi.yaml
2023-10-23T12:43:12.4360189Z   * https://655b3e4eb7bf:7048/bc/api/microsoft/automate/v1.0
2023-10-23T12:43:12.4372664Z     microsoft_automate_v1.0.openapi.yaml
2023-10-23T12:43:12.4430959Z   * https://655b3e4eb7bf:7048/bc/api/microsoft/automation/beta
2023-10-23T12:43:12.4440045Z     microsoft_automation_beta.openapi.yaml
2023-10-23T12:43:12.4488617Z   * https://655b3e4eb7bf:7048/bc/api/microsoft/automation/v1.0
2023-10-23T12:43:12.4497100Z     microsoft_automation_v1.0.openapi.yaml
2023-10-23T12:43:12.4576907Z   * https://655b3e4eb7bf:7048/bc/api/microsoft/automation/v2.0
2023-10-23T12:43:12.4588665Z     microsoft_automation_v2.0.openapi.yaml
2023-10-23T12:43:12.4677083Z   * https://655b3e4eb7bf:7048/bc/api/microsoft/dataverse/v1.0
2023-10-23T12:43:12.4689761Z     microsoft_dataverse_v1.0.openapi.yaml
2023-10-23T12:43:12.4727487Z   * https://655b3e4eb7bf:7048/bc/api/microsoft/performancToolkit/v1.0
2023-10-23T12:43:12.4739358Z     microsoft_performancToolkit_v1.0.openapi.yaml
2023-10-23T12:43:12.4797407Z   * https://655b3e4eb7bf:7048/bc/api/microsoft/powerbi/v2.0
2023-10-23T12:43:12.4806263Z     microsoft_powerbi_v2.0.openapi.yaml
2023-10-23T12:43:12.4964721Z   * https://655b3e4eb7bf:7048/bc/api/microsoft/reportsFinance/beta
2023-10-23T12:43:12.4975393Z     microsoft_reportsFinance_beta.openapi.yaml
2023-10-23T12:43:12.5096558Z   * https://655b3e4eb7bf:7048/bc/api/microsoft/runtime/beta
2023-10-23T12:43:12.5116378Z     microsoft_runtime_beta.openapi.yaml
2023-10-23T12:43:12.5174948Z   * https://655b3e4eb7bf:7048/bc/api/microsoft/vatGroup/v1.0
2023-10-23T12:43:12.5185385Z     microsoft_vatGroup_v1.0.openapi.yaml
2023-10-23T12:43:12.5344780Z 
2023-10-23T12:43:12.5534720Z Name                                         
2023-10-23T12:43:12.5538392Z ----                                         
2023-10-23T12:43:12.5540762Z armadadynamics_eqm_v2.0.openapi.yaml         
2023-10-23T12:43:12.5544029Z beta.openapi.yaml                            
2023-10-23T12:43:12.5546759Z microsoft_admin_beta.openapi.yaml            
2023-10-23T12:43:12.5550705Z microsoft_automate_v1.0.openapi.yaml         
2023-10-23T12:43:12.5554392Z microsoft_automation_beta.openapi.yaml       
2023-10-23T12:43:12.5557043Z microsoft_automation_v1.0.openapi.yaml       
2023-10-23T12:43:12.5559528Z microsoft_automation_v2.0.openapi.yaml       
2023-10-23T12:43:12.5561589Z microsoft_dataverse_v1.0.openapi.yaml        
2023-10-23T12:43:12.5564200Z microsoft_performancToolkit_v1.0.openapi.yaml
2023-10-23T12:43:12.5566340Z microsoft_powerbi_v2.0.openapi.yaml          
2023-10-23T12:43:12.5569011Z microsoft_reportsFinance_beta.openapi.yaml   
2023-10-23T12:43:12.5571497Z microsoft_runtime_beta.openapi.yaml          
2023-10-23T12:43:12.5573711Z microsoft_vatGroup_v1.0.openapi.yaml         
2023-10-23T12:43:12.5575728Z v1.0.openapi.yaml                            
2023-10-23T12:43:12.5578116Z v2.0.openapi.yaml                            
2023-10-23T12:43:12.5578366Z 
2023-10-23T12:43:12.5581091Z 
2023-10-23T12:43:12.5587325Z *** Routes Conversion Performance:
2023-10-23T12:43:12.5589145Z 
2023-10-23T12:43:12.5763886Z Endpoint                         Route                            ConvertDuration
2023-10-23T12:43:12.5768170Z --------                         -----                            ---------------
2023-10-23T12:43:12.5770813Z https://655b3e4eb7bf:7048/bc/api beta                                   1.2812532
2023-10-23T12:43:12.5773990Z https://655b3e4eb7bf:7048/bc/api v1.0                                   4.5467597
2023-10-23T12:43:12.5776570Z https://655b3e4eb7bf:7048/bc/api v2.0                                   6.2201987
2023-10-23T12:43:12.5780688Z https://655b3e4eb7bf:7048/bc/api armadadynamics/eqm/v2.0                1.4219172
2023-10-23T12:43:12.5784146Z https://655b3e4eb7bf:7048/bc/api microsoft/admin/beta                   0.2499481
2023-10-23T12:43:12.5786963Z https://655b3e4eb7bf:7048/bc/api microsoft/automate/v1.0                0.2659493
2023-10-23T12:43:12.5790151Z https://655b3e4eb7bf:7048/bc/api microsoft/automation/beta              0.2187479
2023-10-23T12:43:12.5793303Z https://655b3e4eb7bf:7048/bc/api microsoft/automation/v1.0              0.3281199
2023-10-23T12:43:12.5796419Z https://655b3e4eb7bf:7048/bc/api microsoft/automation/v2.0              1.0627032
2023-10-23T12:43:12.5799658Z https://655b3e4eb7bf:7048/bc/api microsoft/dataverse/v1.0               0.2500135
2023-10-23T12:43:12.5802702Z https://655b3e4eb7bf:7048/bc/api microsoft/performancToolkit/v1.0       0.3595412
2023-10-23T12:43:12.5805809Z https://655b3e4eb7bf:7048/bc/api microsoft/powerbi/v2.0                 0.1874544
2023-10-23T12:43:12.5809802Z https://655b3e4eb7bf:7048/bc/api microsoft/reportsFinance/beta          0.7500292
2023-10-23T12:43:12.5812100Z https://655b3e4eb7bf:7048/bc/api microsoft/runtime/beta                 0.1874757
2023-10-23T12:43:12.5816353Z https://655b3e4eb7bf:7048/bc/api microsoft/vatGroup/v1.0                0.4218545
2023-10-23T12:43:12.5817213Z 
2023-10-23T12:43:12.5819013Z 
2023-10-23T12:43:12.5837665Z *** Transfer OpenAPI Artifacts from Docker container.
2023-10-23T12:43:16.9492507Z *** Uploading OpenAPI definitions as Build-Artifacts
2023-10-23T12:43:17.7720841Z 
2023-10-23T12:43:17.7721081Z *** Disconnect Docker session.
2023-10-23T12:43:17.7721212Z *** Remove Docker session.
2023-10-23T12:43:17.7721368Z *** Docker session removed.
2023-10-23T12:43:17.7721608Z *** Cleanup VSTS Environment: True
2023-10-23T12:43:19.3036699Z ##[section]Async Command Start: Upload Artifact
2023-10-23T12:43:19.3037384Z Uploading 1 files
2023-10-23T12:43:19.3037659Z File upload succeed.
2023-10-23T12:43:19.3038943Z Upload 'C:\docker\agents\elektra\_work\124\a\OpenAPI\armadadynamics_eqm_v2.0.openapi.yaml' to file container: '#/33977265/OpenAPI'
2023-10-23T12:43:19.3039583Z Associated artifact 38529 with build 28976
2023-10-23T12:43:19.3040084Z ##[section]Async Command End: Upload Artifact
2023-10-23T12:43:19.3043641Z ##[section]Async Command Start: Upload Artifact
2023-10-23T12:43:19.3044234Z Uploading 1 files
2023-10-23T12:43:19.3044557Z File upload succeed.
2023-10-23T12:43:19.3045141Z Upload 'C:\docker\agents\elektra\_work\124\a\OpenAPI\beta.openapi.yaml' to file container: '#/33977265/OpenAPI'
2023-10-23T12:43:19.3045746Z Associated artifact 38529 with build 28976
2023-10-23T12:43:19.3046150Z ##[section]Async Command End: Upload Artifact
2023-10-23T12:43:19.3048566Z ##[section]Async Command Start: Upload Artifact
2023-10-23T12:43:19.3048919Z Uploading 1 files
2023-10-23T12:43:19.3049125Z File upload succeed.
2023-10-23T12:43:19.3049489Z Upload 'C:\docker\agents\elektra\_work\124\a\OpenAPI\microsoft_admin_beta.openapi.yaml' to file container: '#/33977265/OpenAPI'
2023-10-23T12:43:19.3049896Z Associated artifact 38529 with build 28976
2023-10-23T12:43:19.3050145Z ##[section]Async Command End: Upload Artifact
2023-10-23T12:43:19.3052219Z ##[section]Async Command Start: Upload Artifact
2023-10-23T12:43:19.3052559Z Uploading 1 files
2023-10-23T12:43:19.3052753Z File upload succeed.
2023-10-23T12:43:19.3053089Z Upload 'C:\docker\agents\elektra\_work\124\a\OpenAPI\microsoft_automate_v1.0.openapi.yaml' to file container: '#/33977265/OpenAPI'
2023-10-23T12:43:19.3053490Z Associated artifact 38529 with build 28976
2023-10-23T12:43:19.3053726Z ##[section]Async Command End: Upload Artifact
2023-10-23T12:43:19.3057013Z ##[section]Async Command Start: Upload Artifact
2023-10-23T12:43:19.3057623Z Uploading 1 files
2023-10-23T12:43:19.3057847Z File upload succeed.
2023-10-23T12:43:19.3058188Z Upload 'C:\docker\agents\elektra\_work\124\a\OpenAPI\microsoft_automation_beta.openapi.yaml' to file container: '#/33977265/OpenAPI'
2023-10-23T12:43:19.3059289Z Associated artifact 38529 with build 28976
2023-10-23T12:43:19.3059529Z ##[section]Async Command End: Upload Artifact
2023-10-23T12:43:19.3061715Z ##[section]Async Command Start: Upload Artifact
2023-10-23T12:43:19.3062079Z Uploading 1 files
2023-10-23T12:43:19.3062258Z File upload succeed.
2023-10-23T12:43:19.3062801Z Upload 'C:\docker\agents\elektra\_work\124\a\OpenAPI\microsoft_automation_v1.0.openapi.yaml' to file container: '#/33977265/OpenAPI'
2023-10-23T12:43:19.3063195Z Associated artifact 38529 with build 28976
2023-10-23T12:43:19.3063454Z ##[section]Async Command End: Upload Artifact
2023-10-23T12:43:19.3065586Z ##[section]Async Command Start: Upload Artifact
2023-10-23T12:43:19.3065950Z Uploading 1 files
2023-10-23T12:43:19.3066127Z File upload succeed.
2023-10-23T12:43:19.3066486Z Upload 'C:\docker\agents\elektra\_work\124\a\OpenAPI\microsoft_automation_v2.0.openapi.yaml' to file container: '#/33977265/OpenAPI'
2023-10-23T12:43:19.3066864Z Associated artifact 38529 with build 28976
2023-10-23T12:43:19.3067118Z ##[section]Async Command End: Upload Artifact
2023-10-23T12:43:19.3069572Z ##[section]Async Command Start: Upload Artifact
2023-10-23T12:43:19.3070101Z Uploading 1 files
2023-10-23T12:43:19.3070343Z File upload succeed.
2023-10-23T12:43:19.3070822Z Upload 'C:\docker\agents\elektra\_work\124\a\OpenAPI\microsoft_dataverse_v1.0.openapi.yaml' to file container: '#/33977265/OpenAPI'
2023-10-23T12:43:19.3071333Z Associated artifact 38529 with build 28976
2023-10-23T12:43:19.3071814Z ##[section]Async Command End: Upload Artifact
2023-10-23T12:43:19.3076124Z ##[section]Async Command Start: Upload Artifact
2023-10-23T12:43:19.3076914Z Uploading 1 files
2023-10-23T12:43:19.3077165Z File upload succeed.
2023-10-23T12:43:19.3077649Z Upload 'C:\docker\agents\elektra\_work\124\a\OpenAPI\microsoft_performancToolkit_v1.0.openapi.yaml' to file container: '#/33977265/OpenAPI'
2023-10-23T12:43:19.3078293Z Associated artifact 38529 with build 28976
2023-10-23T12:43:19.3079357Z ##[section]Async Command End: Upload Artifact
2023-10-23T12:43:19.3082359Z ##[section]Async Command Start: Upload Artifact
2023-10-23T12:43:19.3082823Z Uploading 1 files
2023-10-23T12:43:19.3083089Z File upload succeed.
2023-10-23T12:43:19.3083552Z Upload 'C:\docker\agents\elektra\_work\124\a\OpenAPI\microsoft_powerbi_v2.0.openapi.yaml' to file container: '#/33977265/OpenAPI'
2023-10-23T12:43:19.3084072Z Associated artifact 38529 with build 28976
2023-10-23T12:43:19.3084403Z ##[section]Async Command End: Upload Artifact
2023-10-23T12:43:19.3087685Z ##[section]Async Command Start: Upload Artifact
2023-10-23T12:43:19.3088156Z Uploading 1 files
2023-10-23T12:43:19.3088420Z File upload succeed.
2023-10-23T12:43:19.3088894Z Upload 'C:\docker\agents\elektra\_work\124\a\OpenAPI\microsoft_reportsFinance_beta.openapi.yaml' to file container: '#/33977265/OpenAPI'
2023-10-23T12:43:19.3089434Z Associated artifact 38529 with build 28976
2023-10-23T12:43:19.3089763Z ##[section]Async Command End: Upload Artifact
2023-10-23T12:43:19.3093030Z ##[section]Async Command Start: Upload Artifact
2023-10-23T12:43:19.3093518Z Uploading 1 files
2023-10-23T12:43:19.3093781Z File upload succeed.
2023-10-23T12:43:19.3094239Z Upload 'C:\docker\agents\elektra\_work\124\a\OpenAPI\microsoft_runtime_beta.openapi.yaml' to file container: '#/33977265/OpenAPI'
2023-10-23T12:43:19.3094767Z Associated artifact 38529 with build 28976
2023-10-23T12:43:19.3095093Z ##[section]Async Command End: Upload Artifact
2023-10-23T12:43:19.3097973Z ##[section]Async Command Start: Upload Artifact
2023-10-23T12:43:19.3098662Z Uploading 1 files
2023-10-23T12:43:19.3098960Z File upload succeed.
2023-10-23T12:43:19.3099442Z Upload 'C:\docker\agents\elektra\_work\124\a\OpenAPI\microsoft_vatGroup_v1.0.openapi.yaml' to file container: '#/33977265/OpenAPI'
2023-10-23T12:43:19.3099939Z Associated artifact 38529 with build 28976
2023-10-23T12:43:19.3100812Z ##[section]Async Command End: Upload Artifact
2023-10-23T12:43:19.3104421Z ##[section]Async Command Start: Upload Artifact
2023-10-23T12:43:19.3104910Z Uploading 1 files
2023-10-23T12:43:19.3105149Z File upload succeed.
2023-10-23T12:43:19.3105594Z Upload 'C:\docker\agents\elektra\_work\124\a\OpenAPI\v1.0.openapi.yaml' to file container: '#/33977265/OpenAPI'
2023-10-23T12:43:19.3106055Z Associated artifact 38529 with build 28976
2023-10-23T12:43:19.3106397Z ##[section]Async Command End: Upload Artifact
2023-10-23T12:43:19.3109328Z ##[section]Async Command Start: Upload Artifact
2023-10-23T12:43:19.3110069Z Uploading 1 files
2023-10-23T12:43:19.3110322Z File upload succeed.
2023-10-23T12:43:19.3110761Z Upload 'C:\docker\agents\elektra\_work\124\a\OpenAPI\v2.0.openapi.yaml' to file container: '#/33977265/OpenAPI'
2023-10-23T12:43:19.3111223Z Associated artifact 38529 with build 28976
2023-10-23T12:43:19.3111555Z ##[section]Async Command End: Upload Artifact
2023-10-23T12:43:19.3114991Z ##[section]Finishing: ALOps OpenAPI

Expected behavior The URI to a bound action should be ///companies()/()/Microsoft.NAV., but the generated URI is ()/ .

Screenshots Output from ALOps OpenAPI generated documentation

image

Correct URI from manually maintained documentation

image

waldo1001 commented 1 year ago

You seem to be correct - we'll check

AdminHodor commented 12 months ago

Dear @ninjaniels ,

Please check out our latest release v1.461, we made a modification to the OpenAPI parser that should fix this.

Kind regards,

ninjaniels commented 12 months ago

Thanks! It's working now. This is a great feature and will save us a lot of time