Skip to Content
Migrating Applications to the Cloud with Azure
book

Migrating Applications to the Cloud with Azure

by Sjoukje Zaal, Amit Malik, Sander Rossel, Jason Marston, Mohamed Waly, Stefano Demiliani
December 2019
Intermediate to advanced content levelIntermediate to advanced
494 pages
11h 41m
English
Packt Publishing
Content preview from Migrating Applications to the Cloud with Azure

Proxies for testing

One of the cool things about proxies is that you don't need a backend URL. You can create a new proxy and leave the backend URL empty. Instead, look at the response override. For example, suppose you have to call a service to create a customer and the service returns the new customer ID. The problem is, no such service exists yet. With a proxy, you can easily create a mock service that simply returns HTTP code 201 (created) with an ID in the body. Let's take a look at how this works:

  1. Create a new proxy.
  2. Name it CreateCustomer.
  3. Set customers/create as the root template.
  4. For the selected methods, choose GET (we're doing this so that we can easily test this in the browser; normally, this would be a POST).
  5. Open up the response ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Migrating Applications to the Cloud

Migrating Applications to the Cloud

Steve Swoyer
Microsoft Azure: Planning, Deploying, and Managing the Cloud

Microsoft Azure: Planning, Deploying, and Managing the Cloud

Julian Soh, Marshall Copeland, Anthony Puca, Micheleen Harris

Publisher Resources

ISBN: 9781839217470Supplemental Content