Here is our sample data: Pagination Here is a controller action method that shows how the page parameter is used ti achieve pagination Testing the requests: Filtering We will be filtering using title and author name. author and title are optional parameters Sorting sort and order are optional parameters Final Controller Action Requests and Responses […]
Here are the most common API versioning techniques: URI versioning: by using a a different domain or URL segment for each version. E.g: site.com/v1/MethodQuery string versioning: by using a GET parameter in the URL. E.g: site.com/Method?api-version=1.0Route versioning: by using a different route. E.g: site.com/Method-v1, site.com/Method-v2Media Type versioning: using the standard Accept HTTP header to indicate […]
ASP.NET Core utilizes configuration providers to handle application configuration, drawing data from diverse sources like settings files (like appsettings.json), environment variables, Azure Key Vault, Azure App Configuration, command-line arguments, custom providers, directory files, and in-memory .NET objects. Here is the default hierarchy (in read order) of Configuration Source with thei Configuration Provider: !!!When the same […]
The Secret Manager tool manages configuration settings specific to a project and stores them in your user profile. Using Visual Studio: Right-click on you project and Select "Manage User Secrets". A secrets.json file will open and can be used to store you configruation. You can then add your key:value configuration and read them using the […]