- Instant Nancy Web Development
- Christian Horsdal
- 226字
- 2021-08-04 09:59:27
Routes and model binding (Intermediate)
Starting from this recipe, we will slightly speed things up by leaving out details of Visual Studio usage, and in some cases only code snippets will be shown instead of full classes. It should be clear from the concepts where the snippets fit, and they can be further investigated in the code downloads for individual recipes.
For the sake of brevity, I will also show several tests in just one step and also the necessary production code in one go. Though, I strongly recommend that you stick to good TDD practices, and add the tests one at a time and make each one pass before moving on to the next.
In this recipe, we take a look at how to handle the other HTTP verbs apart from GET
and how to work with dynamic routes such as /custumer/42
, where 42
is the customer ID. We will also look at how to work with JSON data and how to do model binding.
In this recipe, we will see the Todo
application, which is the running example of the book, take shape. In fact at the end of this recipe, you will have a backend—if hooked up correctly— that works with the canonical JavaScript library todo
samples. The downloadable code for this recipe is attached with the backbone.js
todo sample.
- ASP.NET MVC4框架揭秘
- Visual FoxPro程序設(shè)計(jì)教程
- 程序員數(shù)學(xué):用Python學(xué)透線性代數(shù)和微積分
- Apache Karaf Cookbook
- 快人一步:系統(tǒng)性能提高之道
- Mastering Data Mining with Python:Find patterns hidden in your data
- Microsoft Dynamics AX 2012 R3 Financial Management
- 輕松上手2D游戲開發(fā):Unity入門
- Java Web應(yīng)用開發(fā)給力起飛
- Java EE Web應(yīng)用開發(fā)基礎(chǔ)
- ABAQUS6.14中文版有限元分析與實(shí)例詳解
- Visual C++開發(fā)寶典
- Google Maps JavaScript API Cookbook
- HTML5程序開發(fā)范例寶典
- 實(shí)戰(zhàn)圖解MACD波段交易技術(shù)