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

  1. Pingback: Azure Weekly: Sept. 10, 2018 – Build Azure

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s