Results for “Web API”
23 result(s) in everything
-
Blog
Getting Started with ASP.NET Core Web API and Entity Framework
Build your first ASP.NET Core Web API on .NET 10 with Entity Framework Core — scaffold models from SQL Server, add an async controller, and test with the built-in OpenAPI document and Scalar.
-
Blog
Implement Repository Pattern with ASP.NET Core Web API
Implement the Repository Pattern with ASP.NET Core Web API on .NET 10 — EF Core 10, DTO mapping with extension methods, async CRUD operations, and the built-in OpenAPI support with Scalar.
-
Blog
Testing ASP.NET Core Web API using Postman
Test ASP.NET Core Web API endpoints with Postman — GET, POST, PUT, and DELETE with the status codes to expect, then the power features: JWT-protected endpoints, chaining requests with variables, assertion scripts, and running the whole collection in CI with Newman.
-
Blog
How to Setup CORS Policies in ASP.NET Core Web API
Configure CORS in ASP.NET Core Web API — default and named policies, origin/method/header restrictions, preflight requests, per-endpoint policies with RequireCors, and EnableCors/DisableCors attribute
-
Blog
Getting Started with ASP.NET Core MVC
Create your first ASP.NET Core MVC application on .NET 10 — project structure explained, Program.cs walkthrough, default routing, and your own model, controller, and view.
-
Blog
RESTful CRUD Operations with ASP.NET Core Minimal APIs
To build a RESTful CRUD API in ASP.NET Core, model each entity as a resource, map the four HTTP verbs (GET, POST, PUT, DELETE) to read/create/update/delete,…
-
Blog
EF Core Migrations in a Separate Assembly
To keep EF Core migrations in a separate assembly, move your DbContext and migrations into a class library, tell EF which assembly owns the migrations with…
-
Blog
Return Different Types of Content from ASP.NET Core Action Results
Serve HTML, JSON, plain text, XML, files, and bare status codes from ASP.NET Core actions — with content negotiation, verified response headers, and guidance on choosing.
-
Blog
AutoMapper in ASP.NET Core Web API — and the Modern Alternatives
AutoMapper usage in ASP.NET Core Web API, its 2025 commercial licensing change, and the modern alternatives — hand-written mapping extension methods and the Mapperly source generator.
-
Blog
How to Export SQL Server Data to Excel in C# (Without Office Interop)
Export SQL Server query results to Excel with ClosedXML — no Office installation, no COM Interop, safe on servers and containers, with styling and a Web API download endpoint.
-
Blog
Host an ASP.NET Core Web API in IIS
Publish and host ASP.NET Core in IIS: the ASP.NET Core Module, Hosting Bundle, app pool settings that matter, and the 500.19/500.30/502.5 troubleshooting table.
-
Blog
CRUD Operations using ASP.NET Core
Build a complete CRUD API with ASP.NET Core — verified create/read/update/delete requests, the right status codes for each, automatic validation, and the path from in-memory store to EF Core.
-
Blog
Azure for .NET Developers — Part 5: Blob Storage, Queues, and SAS Tokens That Expire Properly
BlobServiceClient with DefaultAzureCredential, access tiers and lifecycle rules, and user-delegation SAS links that expire in minutes instead of account keys that never do.
-
Blog
WCF in the AI Era: Testing Legacy Services and Migrating to CoreWCF or gRPC
A pragmatic WCF migration path: pin behavior with generated-client tests, lift unchanged contracts onto .NET 10 with CoreWCF (verified end to end), then move consumers to gRPC on your schedule.
-
Blog
Modern .NET Backend Roadmap — Part 7: Azure Deployment
Ship the container to Azure: choosing between App Service, Container Apps and AKS, pushing to a registry, secrets and managed identity, and capturing it all as Bicep.
-
Blog
Modern .NET Backend Roadmap — Part 4: JWT Authentication
Issue and validate JSON Web Tokens in ASP.NET Core: token endpoint, bearer validation, role-based authorization, and the mistakes that turn tokens into breaches — with verified 401/403/200 flows.
-
Blog
Azure for .NET Developers — Part 6: Azure Functions vs Background Services — When Serverless Wins
The isolated worker model, honest cold-start numbers, and a practical decision table for Functions vs IHostedService vs container jobs.
-
Blog
Azure for .NET Developers — Part 2: Deploy an ASP.NET Core App to App Service the Right Way
az webapp up, GitHub Actions, Key Vault configuration references, deployment slots for zero-downtime swaps, and the gotchas that break first deployments.
-
Blog
Python for .NET Developers: A Practical First Project
Coming from C#? Learn Python by building a small REST API with FastAPI — virtual environments demystified, Pydantic as your model binding, and a side-by-side C# to Python cheat sheet.
-
Blog
Modern .NET Backend Roadmap — Part 8: CI/CD with GitHub Actions
Automate build, smoke test, image, and deployment with GitHub Actions: SHA-tagged images, OIDC federation to Azure, environments with approvals, and pipeline hygiene.
-
Blog
Azure Resource Manager Templates Overview — with Bicep
How Azure Resource Manager works and why templates beat scripts — with Bicep as the modern authoring language: parameters, resources, outputs, what-if previews, and deployment commands.
-
Blog
Azure for .NET Developers — Part 7: Create and Automate VMs with the Azure SDK
The modern Azure.ResourceManager SDK end to end: resource group, network, and a Linux VM with SSH keys from C#, plus scheduled start/stop to keep the bill sane.
-
Blog
Access SQL Server from a .NET Console Application
Connect to SQL Server from a .NET 10 console app with Microsoft.Data.SqlClient: connections, parameterized commands, data readers, transactions, and where Dapper and EF Core fit.