ebook img

Mastering asp.net web api. PDF

321 Pages·2016·3.297 MB·English
by  SimDarren
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview Mastering asp.net web api.

Mastering ASP.NET Web API (cid:35)(cid:86)(cid:74)(cid:77)(cid:69)(cid:2)(cid:81)(cid:80)(cid:88)(cid:70)(cid:83)(cid:71)(cid:86)(cid:77)(cid:2)(cid:41)(cid:53)(cid:53)(cid:49)(cid:2)(cid:84)(cid:70)(cid:83)(cid:87)(cid:74)(cid:68)(cid:70)(cid:84)(cid:2)(cid:66)(cid:79)(cid:69)(cid:2)(cid:78)(cid:66)(cid:76)(cid:70)(cid:2)(cid:85)(cid:73)(cid:70)(cid:2)(cid:78)(cid:80)(cid:84)(cid:85)(cid:2)(cid:80)(cid:71)(cid:2)(cid:85)(cid:73)(cid:70) (cid:34)(cid:52)(cid:49)(cid:16)(cid:47)(cid:38)(cid:53)(cid:2)(cid:36)(cid:80)(cid:83)(cid:70)(cid:2)(cid:56)(cid:70)(cid:67)(cid:2)(cid:34)(cid:49)(cid:42)(cid:2)(cid:81)(cid:77)(cid:66)(cid:85)(cid:71)(cid:80)(cid:83)(cid:78) Mithun Pattankar Malendra Hurbuns BIRMINGHAM - MUMBAI Mastering ASP.NET Web API Copyright © 2017 Packt Publishing All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews. Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the authors, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book. Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information. First published: August 2017 Production reference: 1110817 (cid:49)(cid:86)(cid:67)(cid:77)(cid:74)(cid:84)(cid:73)(cid:70)(cid:69)(cid:2)(cid:67)(cid:90)(cid:2)(cid:49)(cid:66)(cid:68)(cid:76)(cid:85)(cid:2)(cid:49)(cid:86)(cid:67)(cid:77)(cid:74)(cid:84)(cid:73)(cid:74)(cid:79)(cid:72)(cid:2)(cid:45)(cid:85)(cid:69)(cid:16) (cid:45)(cid:74)(cid:87)(cid:70)(cid:83)(cid:90)(cid:2)(cid:49)(cid:77)(cid:66)(cid:68)(cid:70) (cid:21)(cid:23)(cid:2)(cid:45)(cid:74)(cid:87)(cid:70)(cid:83)(cid:90)(cid:2)(cid:52)(cid:85)(cid:83)(cid:70)(cid:70)(cid:85) (cid:35)(cid:74)(cid:83)(cid:78)(cid:74)(cid:79)(cid:72)(cid:73)(cid:66)(cid:78) (cid:35)(cid:21)(cid:2)(cid:20)(cid:49)(cid:35)(cid:14)(cid:2)(cid:54)(cid:44)(cid:16) ISBN 978-1-78646-395-1 (cid:88)(cid:88)(cid:88)(cid:16)(cid:81)(cid:66)(cid:68)(cid:76)(cid:85)(cid:81)(cid:86)(cid:67)(cid:16)(cid:68)(cid:80)(cid:78) Credits Authors Copy Editors Mithun Pattankar Zainab Bootwala Malendra Hurbuns Safis Editing Reviewer Project Coordinator Vidya Vrat Agarwal Prajakta Naik Commissioning Editor Proofreader Edward Gordon Safis Editing Acquisition Editor Indexer Nitin Dasan Aishwarya Gangawane Content Development Editor Production Coordinator Siddhi Chavan Nilesh Mohite Technical Editor Dhiraj Chandanshive About the Authors Mithun Pattankar, who hails from Kalaburgi and lives in Bangalore, India, works with the leading MNC as a consultant. He has been developing .NET-based applications for over 12 years now. He has an industry-wide experience in building Desktop Apps (WPF), Web Apps (ASP.NET and client-side frameworks), and Hybrid Mobile apps (Ionic). He is involved in all aspects of application development, and mentors his junior team members. He has been actively working on building ASP.NET Web APIs for different frontends and conducts technical training as well. Mithun believes in eating sattvic food for healthy living and loves spending time doing socio-spiritual activities. He occasionally blogs on mithunvp.com and can be reached on Twitter at (cid:33)(cid:78)(cid:74)(cid:85)(cid:73)(cid:86)(cid:79)(cid:81)(cid:66)(cid:85)(cid:85)(cid:66)(cid:79)(cid:76)(cid:66)(cid:83). I would like to thank the team at Packt for giving me a wonderful opportunity to write this book. It was truly a great learning experience. Also, thanks to the technical reviewer for providing valuable feedback. Immense respect and love to my parents for their unconditional love, incredible support, and prayers. Thanks to my sisters with whom I enjoyed growing up. For her unconditional love, looking after me during late nights while writing this book, and supporting me through thick and thin, I would like to thank my wife from the bottom of my heart. Lots of love to my cute, adorable son; you're such a blessing for us. Thanks to my best friends for being there every time. Finally, and most importantly, I would like to dedicate this book to my guru, HDH Pramukh Swami Maharaj, who lived "In the joy of others, lies our own;" only by his blessings and grace, I could accomplish everything in my life. Malendra Hurbuns is from South Africa, and lives in New Zealand, working for an Australian Company as a senior software developer. He has been developing in .NET for over 15 years. He mentors other developers and is involved in all aspects of development. He loves writing simple code that has a high quality. He is one of the pioneers in web API in his role, and he has implemented many live systems using ASP.NET Web APIs. TDD is also a topic close to his heart. He has worked in the accounting, banking, and simulation industries, which has provided him with a wealth of experience. He is a keen cyclist and swimmer. Thank you to my mum and dad who have always supported me in my career, and their endurance while I was writing this book, which means a lot to me. Thank you to the team at Packt for guiding me along my first book. About the Reviewer Vidya Vrat Agarwal is a .NET passionate, Microsoft MVP, C# Corner MVP, TOGAF Certified Architect, Certified Scrum Master (CSM), author, speaker, Certified MCT, MCPD, MCTS, MCSD.NET, MCAD.NET, and MCSD. He is currently working as a .NET Enterprise architect/consultant in USA. He is passionate about the .NET technology and loves to contribute to the .NET community. He blogs at (cid:73)(cid:85)(cid:85)(cid:81)(cid:28)(cid:17)(cid:17)(cid:88)(cid:88)(cid:88)(cid:16)(cid:46)(cid:90)(cid:49)(cid:66)(cid:84)(cid:84)(cid:74)(cid:80)(cid:79)(cid:39)(cid:80)(cid:83)(cid:16)(cid:47)(cid:38)(cid:53)and can be (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) followed on Twitter at (cid:33)(cid:37)(cid:80)(cid:85)(cid:47)(cid:70)(cid:85)(cid:34)(cid:86)(cid:85)(cid:73)(cid:80)(cid:83). He lives with his wife, Rupali, and two daughters Pearly and Arshika, in Redmond WA. www.PacktPub.com For support files and downloads related to your book, please visit (cid:88)(cid:88)(cid:88)(cid:16)(cid:49)(cid:66)(cid:68)(cid:76)(cid:85)(cid:49)(cid:86)(cid:67)(cid:16)(cid:68)(cid:80)(cid:78). Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at (cid:88)(cid:88)(cid:88)(cid:16)(cid:49)(cid:66)(cid:68)(cid:76)(cid:85)(cid:49)(cid:86)(cid:67)(cid:16)(cid:68)(cid:80)(cid:78)and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at (cid:84)(cid:70)(cid:83)(cid:87)(cid:74)(cid:68)(cid:70)(cid:33)(cid:81)(cid:66)(cid:68)(cid:76)(cid:85)(cid:81)(cid:86)(cid:67)(cid:16)(cid:68)(cid:80)(cid:78) for more details. At (cid:88)(cid:88)(cid:88)(cid:16)(cid:49)(cid:66)(cid:68)(cid:76)(cid:85)(cid:49)(cid:86)(cid:67)(cid:16)(cid:68)(cid:80)(cid:78), you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks. (cid:73)(cid:85)(cid:85)(cid:81)(cid:84)(cid:28)(cid:17)(cid:17)(cid:88)(cid:88)(cid:88)(cid:16)(cid:81)(cid:66)(cid:68)(cid:76)(cid:85)(cid:81)(cid:86)(cid:67)(cid:16)(cid:68)(cid:80)(cid:78)(cid:17)(cid:78)(cid:66)(cid:81)(cid:85) (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) Get the most in-demand software skills with Mapt. Mapt gives you full access to all Packt books and video courses, as well as industry-leading tools to help you plan your personal development and advance your career. Why subscribe? Fully searchable across every book published by Packt Copy and paste, print, and bookmark content On demand and accessible via a web browser Customer Feedback Thanks for purchasing this Packt book. At Packt, quality is at the heart of our editorial process. To help us improve, please leave us an honest review on this book's Amazon page at (cid:73)(cid:85)(cid:85)(cid:81)(cid:84)(cid:28)(cid:17)(cid:17)(cid:88)(cid:88)(cid:88)(cid:16)(cid:66)(cid:78)(cid:66)(cid:91)(cid:80)(cid:79)(cid:16)(cid:68)(cid:80)(cid:78)(cid:17)(cid:69)(cid:81)(cid:17)(cid:19)(cid:25)(cid:26)(cid:24)(cid:22)(cid:24)(cid:21)(cid:27)(cid:23)(cid:22). (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) (cid:2) If you'd like to join our team of regular reviewers, you can e-mail us at (cid:68)(cid:86)(cid:84)(cid:85)(cid:80)(cid:78)(cid:70)(cid:83)(cid:83)(cid:70)(cid:87)(cid:74)(cid:70)(cid:88)(cid:84)(cid:33)(cid:81)(cid:66)(cid:68)(cid:76)(cid:85)(cid:81)(cid:86)(cid:67)(cid:16)(cid:68)(cid:80)(cid:78). We award our regular reviewers with free eBooks and videos in exchange for their valuable feedback. Help us be relentless in improving our products! Table of Contents Preface 1 Chapter 1: Introduction to Microservices and Service-Oriented Architecture 7 Services in SOA 8 Service implementation 9 Monolithic architecture 9 Overheads of Monolithic architecture 10 Introducing Microservices 11 Lightweight yet scalable 12 Technology agnostic 12 Independently changeable 12 Benefits of Microservices 14 Summary 15 Chapter 2: Understanding HTTP and REST 16 Software architecture 17 REST principles 18 Client - server 18 Stateless 19 Cache 19 The uniform interface 19 Layered system 20 Code-on-demand 20 REST architectural elements 20 Data elements 21 Resources and resource identifiers 21 Representations 22 Connectors 22 Components 23 HTTP 23 HTTP/1.1 status codes 23 An API example 24 HTTP POST example 24 HTTP GET example 26

See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.