Getting the Swagger.JSON file from #AzureML

I’m conducting some mentoring for #TeensInAI at the BBC Studios in London today with Acorn Aspirations. I’m working with a group, and we are creating an app that uses various technologies, such as Android mobile studio, Java, AzureML and Swagger.

It wasn’t immediately obvious where to find the Swagger JSON file for deploying as part of the Android app, so here are the instructions.

You need to download the JSON file from the AzureML web portal. To do this,

  1. Sign in to the AzureML portal.
  2. Click Web Services on the left hand side
  3. Select your web service
  4. Select the option New Web Service Experience, which is in Preview.
  5. Click Consume, which you will see towards the right hand side of the page.
  6. On the Consume page, copy the Request-Response URL.
  7. In the URL, replace execute?api-version=2.0&format=swagger with swagger.json
  8. Paste the URL into your browser.
  9. Save the returned file.

And that’s it! You can find out more about consuming a web service in AzureML here.

One thought on “Getting the Swagger.JSON file from #AzureML

Leave a Reply