Posts

Showing posts from June, 2022

How to setup Swagger UI for ASP.Net Web API

Setup Swagger UI for ASP.NET Web API with Swashbuckle Swashbuckle is an open source project for generating Swagger documents for Web APIs .  Swagger is an advance technique to represent RESTfull Web API. Swagger is working with an Application. You can configure Swagger inside your Application. Its very easy to use and integrate inside your API's Basic features to get going with Swashbuckle are Install Swashbuckle Overview of configuration code How to use API Keys Install Swashbuckle Swashbuckle is an open source repository built for both asp.net and asp.net core GitHub Repos: Swashbuckle -  https://github.com/domaindrivendev/Swashbuckle Swashbuckle.AspNetCore -  https://github.com/domaindrivendev/Swashbuckle.AspNetCore NuGet Repos: Swashbuckle -  https://www.nuget.org/packages/Swashbuckle Swashbuckle.AspNetCore -  https://www.nuget.org/packages/Swashbuckle.AspNetCore Don’t worry about downloading the github repo above, it is here just for your reference so you c...

WiX Tool set

WiX is a set of tools that allows you to create Windows Installer-based deployment packages for your application. The WiX toolset is based on a declarative XML authoring model. You can use WiX on the command line by using the WiX tools or MSBuild. In addition, there is also a WiX Visual Studio plug-in that supports VS2005, VS2008, and VS2010. The WiX toolset supports building the following types of Windows Installer files: Installer (.msi) Patches (.msp) Merge Modules (.msm) Transforms (.mst) WiX supports a broad spectrum of Windows Installer features. In addition, WiX also offers a set of built-in custom actions that can be used and incorporated in Windows Installer packages. The custom actions are offered in a set of WiX extensions. Some common WiX extensions include support for Internet Information System (IIS), Structured Query Language (SQL), the .NET Framework, Visual Studio, and Windows etc. How does WiX work? The WiX source code is written in XML format with a...

Chocolatey Package Manager

Image
  Chocolatey is a command-line package manager for Windows operating system based on the NuGet package manager. Chocolatey manages its own package feed; however, you can set up your own local repository for the enterprise environment to control the package's source for installation. If you are familiar with Linux or macOS environments, the Chocolatey is similar to  Apt  and  Homebrew , respectively Prerequisites Windows 10 + / Windows Server 2012+ PowerShell 5.1 + Installing Chocolatey on Windows You can install Chocolatey by either using the PowerShell script method or downloading the offline installer. Follow the steps below to download and install Chocolatey using the online method: Open PowerShell in Administrator Mode by right-clicking on the application and choosing  Run as Administrator : PowerShell Admin Mode You need to update the script execution policy on your device before installing any package. Run the following command in the PowerShell terminal t...

What is API? Types of API's

An  Application programming interface   is a software interface that helps in connecting between the computer or between computer programs. It is an interface that provides the accessibility of information such that weather forecasting. In simple words, you can say it is a software interface that offers service to the other pieces of software. Example – Best examples of web services APIs are- SOAP(Simple object access protocol),REST Features : An application programming interface is a software that allows two applications to talk to each other. Application programming interface helps in enabling applications to exchange data and functionality easily. The application programming interface is also called a middle man between two systems. Application programming interface helps in data monetization. Application programming interface helps in improving collaboration. Different types of APIs : These are common types of APIs as follows.  Open APIs –  It is also called publ...

Internal vs External APIs

Image
  Enterprise APIs can be internal APIs i.e. within or across LoB (Line of Business), or external APIs for partners and third party developers. Internal \ Private APIs One of the key considerations that should guide both your API business strategy and your interface architecture is the distinction between open and private APIs. An interface is defined as open or private depending on whether it targets external or in-house developers. In this lesson, we explain the distinction in detail and explore ways it may impact your API program. Not as much attention is paid to APIs that are internally facing. That is not so surprising, considering their purpose. But just because internal APIs don’t get as much notice, does not mean they are any less important to an enterprise. Companies have a lot of data that is proprietary and can’t be shared outside its doors. Whether it is employee social security numbers or the “secret sauce” that sets their product apart from competitors, there is always...