Book Image

Mastering Cloud Development using Microsoft Azure

Book Image

Mastering Cloud Development using Microsoft Azure

Overview of this book

Microsoft Azure is a cloud computing platform that supports many different programming languages, tools, and frameworks, including both Microsoft-specific and third-party software and systems. This book starts by helping you set up a professional development environments in the cloud and integrating them with your local environment to achieve improved efficiency. You will move on to create front-end and back-end services, and then build cross-platform applications using Azure. Next you’ll get to grips with advanced techniques used to analyze usage data and automate billing operations. Following on from that, you will gain knowledge of how you can extend your on-premise solution to the cloud and move data in a pipeline. In a nutshell, this book will show you how to build high-quality, end-to-end services using Microsoft Azure. By the end of this book, you will have the skillset needed to successfully set up, develop, and manage a full-stack Azure infrastructure.
Table of Contents (15 chapters)
Mastering Cloud Development using Microsoft Azure
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Preface
Index

Building the API


A pure REST approach may use all of the HTTP methods detailed in the following table:

HTTP Verb

Sample URI

Task performed

GET

/cities/10

Retrieves the city with ID 10

DELETE

/cities/10

Deletes the city with ID 10

POST

/cities

Creates a new city

PUT

/cities/10

Updates the city with ID 10

PATCH

/cities/10

Performs a partial update to the city with ID 10

OPTIONS

/cities/10

Returns all the available operations on the city with ID 10

HEAD

/cities/10

Returns only the HTTP headers

However, in order to enforce compatibility with old clients of the platform with a restricted set of available HTTP options, we can also choose to be pragmatic and perform every operation with a single verb using HTTP headers to specify the operation, as follows:

POST http://api.cloudmakers.xyz/geo HTTP/1.1
Accept: application/json
x-cm-operation: PUT

This method requires an adapter at the API endpoint in order to provide routing to the appropriate operation type.

This...