Learn it from developers who built it.
Tutorials, how-tos and deep dives on AI, .NET, C#, cloud and developer tools, written by the community.
Discover how to use CancellationToken in Web APIs to enhance performance and resource management. Learn to gracefully handle client request cancellations, preventing wasted server resources on long-running tasks like database queries and file uploads. This guide covers best practices, scenarios for usage, and when to avoid CancellationToken, ensuring efficient and scalable API design. Implement cancellation effectively to improve user experience and reduce server load.
Unlock the power of efficient APIs! This article breaks down REST API and GraphQL, two popular methods for web development. Discover their key differences, pros, and cons with clear examples. Learn when to use each approach for optimal performance, scalability, and user experience in your projects. Make informed decisions for your web development needs!
This article is focused on Core Concepts, ASP.NET Core Specific, Advanced Features, Testing and Documentation, Performance & Design, Best Practices, Real-World Integration
Unlock the power of APIs! This guide explains what APIs are, how they work, and why they're essential for modern software development. Learn about different API architectures like REST and SOAP, understand API integration and testing, and discover the advantages and disadvantages of using APIs. Explore real-world examples and gain insights into creating your own APIs for seamless application communication and enhanced scalability. APIs are the backbone of connected digital systems, and this article provides a comprehensive overview for developers of all levels.
Unlock the power of REST APIs! This guide explains how REST APIs enable seamless communication between systems over the internet using HTTP methods like GET, POST, PUT, DELETE. Learn about key features like statelessness, the client-server model, and caching. Plus, discover how to build a simple REST API with Node.js and Express, and explore real-world applications in social media, e-commerce, and more. Understand the difference between REST and GraphQL.
Web APIs enable applications to communicate over the internet, making data sharing seamless. They power apps like Google Maps, payment gateways, and weather apps by providing integration, scalability, and automation.
JSON Web Tokens (JWTs) work in the world of web security? Imagine walking into a bustling corporate office—complete with receptionists, visitor badges, and security guards. This simple analogy breaks down JWTs step-by-step, from authentication to security, with a detailed use case, pros and cons, and alternatives to help you decide if JWT is right for your project.
Building Robust APIs with the Microsoft Stack: A Comprehensive Guide to Development, Deployment, Security, and Best Practices.
This comprehensive guide covers API pagination in ASP.NET Core, explaining methods like offset, cursor, token, and time-based pagination, plus best practices, performance tips, and real-world use cases for scalable, efficient APIs.
Master API security with this comprehensive cheatsheet covering best practices for authentication, authorization, data validation, rate limiting, CORS, logging, and protecting against common threats.
As modern applications increasingly rely on stateless, scalable backends, securing your API is essential. JSON Web Tokens (JWT) are one of the most common methods for securing RESTful APIs in .NET. In this article, you'll learn how to secure .NET Web API endpoints using JWT and the [Authorize] attribute
Exception handling is a critical aspect of building robust, secure, and maintainable Web APIs. In ASP.NET Core, handling exceptions gracefully ensures that the API provides meaningful error information to consumers without exposing sensitive internal details or causing the application to crash.
This RESTful API cheatsheet offers developers a quick reference guide covering core concepts, HTTP methods, best practices, and advanced topics like security, versioning, caching, and error handling for efficient API design.
ASP.NET Web API is a framework for building RESTful services using HTTP. It supports routing, content negotiation, filters, versioning, and integration with tools like Swagger for scalable API development.
Take your API documentation to the next level with advanced Swagger use cases in ASP.NET Core. In this article, I cover grouping endpoints, API versioning, JWT authentication, hiding routes, UI customization, and more — all using Swashbuckle in .NET 6/7/8.
Learn how to integrate and customize Swagger in your ASP.NET Core (.NET 6/7/8) API project using Swashbuckle. This guide covers setup, best practices, and practical tips to create clean, interactive API documentation.
In modern web applications, security is critical—especially when dealing with user data, financial transactions, or any form of sensitive operations
Idempotent APIs ensure repeated requests yield the same outcome, preventing duplicate operations. This article explores idempotency in HTTP methods, real-world examples, and implementation techniques for robust and reliable web services.
In modern applications, users often delegate access to APIs or services through authentication mechanisms. The On-Behalf-Of (OBO) token is a security feature that allows a service to request access to another service on behalf of a user using an already authenticated token.
Swagger (OpenAPI) defines REST APIs for both machines and humans. This article explores integrating C# special comments into Swagger for clearer API documentation and utilization in .NET and .NET Core MVC Web APIs.
Explore Open API support in .NET 9 for seamless API documentation and integration. With Microsoft.AspNetCore.OpenApi, easily generates OpenAPI documents for APIs, customizes endpoints, adds authorization headers, and supports multiple servers.
This article will introduce Json Patch briefly, and then implement it in ASP.NET Core 5.0 both in memory and in database approaches
Basic concepts of Web API development in .NET Core. Explore the essentials of Web API development in .NET Core with this beginner-friendly guide. Learn step-by-step techniques to build, deploy, and optimize robust APIs for modern applications.
Compare ASP.NET MVC and Web API, including their use cases, routing, response formats, HTTP methods, and when to use both in one project.
HTTP methods are essential for communication between clients and servers in web development. They define how data is requested, sent, and managed. Common methods include GET, POST, PUT, and DELETE, each serving different purposes like fetching data, submitting forms, updating, or deleting resources.
Generate multiple Excel files with EPPlus, package them into a ZIP archive in an ASP.NET Web API, and download the archive from Angular as a Blob.
This article will discuss how to Set a Client Credential Secret for Azure Web API. This series of articles guides users through setting up and consuming a Web API registered on the Azure Identity Platform. This specific article focuses on setting a Client Credential Secret.
This article will discuss how to use Postman to access Web API. This article focuses on accessing and securing a Web API registered on Azure Identity Platform. It covers tools like Postman and Swagger for testing and setting security with examples.
Explore the principles of RESTful design and learn how to implement robust, scalable, and maintainable web APIs in a .NET environment. This guide covers key REST concepts like statelessness, client-server architecture, and HTTP methods, and provides a step-by-step tutorial to build a simple API using .NET 6.
In this article you will learn how to read an email and its attachment(s) from Microsoft Exchange Server.
Everything on Web API, not only its articles: the Web API page →
Write an article and earn +1,000 SHARP when it is approved.
Write an article