Skip to Main Content
Beginning Serverless Architectures with Microsoft Azure
book

Beginning Serverless Architectures with Microsoft Azure

by Daniel Bass
July 2018
Beginner to intermediate content levelBeginner to intermediate
100 pages
2h 11m
English
Packt Publishing
Content preview from Beginning Serverless Architectures with Microsoft Azure

Activity: Improving Your Function

In this activity, we will add a JSON payload to the request and write code to parse that message into a C# object.

Prerequisites

You will require a function created from the HTTP trigger with the parameters template.

Scenario

You are creating the start of a personal finance application that allows users to add their own transactions, integrate with other applications and perhaps allow their credit card to directly log transactions. It will be able to scale elastically to any number of users, saving us money when we don't have any users.

Aim

Parse a JSON payload into a C# object, starting your RESTful API.

Steps for Completion

  1. Change the Route to transactions.
  2. Remove the get verb. Remove the String parameter ...
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

Advanced Serverless Architectures with Microsoft Azure

Advanced Serverless Architectures with Microsoft Azure

Daniel Bass

Publisher Resources

ISBN: 9781789537048Supplemental Content