ASP.NET web API 2 recipes : a problem-solution approach /
ASP.NET Web API 2 Recipes provides you with the code to solve a full range of Web API problems and question marks that you might face when developing line-of-business applications. ASP.NET Web API Recipes gives you an in-depth explanation for each of these scenarios and shows you how to use Web API...
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
[New York] :
Apress : Distributed to the Book trade worldwide by Springer Science+Business Media New York,
2014.
|
Colección: | Expert's voice in .NET.
|
Temas: | |
Acceso en línea: | Texto completo (Requiere registro previo con correo institucional) |
Tabla de Contenidos:
- At a Glance; Introduction; Chapter 1: Web API in ASP.NET; 1-1. Add ASP.NET Web API to an MVC Application; Problem; Solution; How It Works; The Code; 1-2. Add ASP.NET Web API to a Web Forms Application; Problem; Solution; How It Works; The Code; 1-3. Accept an HTML Form; Problem; Solution; How It Works; The Code; 1-4. Link from MVC Controller to API Controller and Vice Versa; Problem; Solution; How It Works; The Code; 1-5. Use Scaffolding with ASP.NET Web API; Problem; Solution; How It Works; The Code; 1-6. Add Model Validation; Problem; Solution; How It Works; The Code.
- 1-7. Use CSRF ProtectionProblem; Solution; How It Works; The Code; 1-8. Add Support for Session State; Problem; Solution; How It Works; The Code; Chapter 2: ASP.NET Web API Outside of IIS; 2-1. Self-Host ASP.NET Web API; Problem; Solution; How It Works; The Code; 2-2. Host ASP.NET Web API with OWIN; Problem; Solution; How It Works; The Code; 2-3. Host ASP.NET Web API in Azure Mobile Services; Problem; Solution; How It Works; The Code; 2-4. Quick Prototypes with scriptcs; Problem; Solution; How It Works; The Code; 2-5. Host ASP.NET Web API in Azure Worker Role; Problem; Solution; How It Works.
- The Code2-6. Use ASP.NET Web API with F♯; Problem; Solution; How It Works; The Code; Chapter 3: Routing; 3-1. Define Centralized Routes; Problem; Solution; How It Works; The Code; 3-2. Define Direct Routes; Problem; Solution; How It Works; The Code; 3-3. Set Default Route Values; Problem; Solution; How It Works; The Code; 3-4. Set Optional Route Values; Problem; Solution; How It Works; The Code; 3-5. Set Route Constraints; Problem; Solution; How It Works; The Code; 3-6. Define Remote Procedure Call Style Routes; Problem; Solution; How It Works; The Code; 3-7. Create Catch-all Routes; Problem.
- SolutionHow It Works; The Code; 3-8. Prevent Controller Methods from Inadvertently Becoming Web API Endpoints; Problem; Solution; How It Works; Solution; 3-9. Configure Route-Specific Message Handlers; Problem; Solution; How It Works; The Code; 3-10. Ignore Routes; Problem; Solution; How It Works; The Code; 3-11. Localize Routes; Problem; Solution; How It Works; The Code; 3-12. Generate a Link to the Route; Problem; Solution; How It Works; The Code; Chapter 4: Content Negotiation and Media Types; 4-1. Request a Specific Media Type from ASP.NET Web API; Problem; Solution; How It Works.
- The Code4-2. Support Additional Media Types; Problem; Solution; How It Works; The Code; 4-3. Control Model Binding From URI and Body; Problem; Solution; How It Works; The Code; FromUri and FromBody; TypeConverters; ModelBinders; 4-4. ASP.NET MVC-style Parameter Bindingin ASP.NET Web API; Problem; Solution; How It Works; The Code; 4-5. Customize XML and JSON Responses; Problem; Solution; How It Works; The Code; JSON; XML; 4-6. Write Your Own MediaTypeFormatter; Problem; Solution; How It Works; The Code; 4-7. Run Content Negotiation Manually; Problem; Solution; How It Works; The Code.