Posts

Showing posts with the label Asp.net Core

๐—ฉ๐—ถ๐˜€๐˜‚๐—ฎ๐—น ๐—ฆ๐˜๐˜‚๐—ฑ๐—ถ๐—ผ ๐“๐ข๐ฉ - ๐—จ๐˜€๐—ฒ ๐——๐—ฒ๐˜ƒ ๐—ง๐˜‚๐—ป๐—ป๐—ฒ๐—น๐˜€ ๐—ถ๐—ป ๐—ฉ๐—ถ๐˜€๐˜‚๐—ฎ๐—น ๐—ฆ๐˜๐˜‚๐—ฑ๐—ถ๐—ผ ๐Ÿฎ๐Ÿฌ๐Ÿฎ๐Ÿฎ ๐˜„๐—ถ๐˜๐—ต ๐—”๐—ฆ๐—ฃ.๐—ก๐—˜๐—ง ๐—–๐—ผ๐—ฟ๐—ฒ ๐—”๐—ฝ๐—ฝ๐˜€

Image
  ๐Ÿ’ก ๐—ฉ๐—ถ๐˜€๐˜‚๐—ฎ๐—น ๐—ฆ๐˜๐˜‚๐—ฑ๐—ถ๐—ผ ๐“๐ข๐ฉ - ๐—จ๐˜€๐—ฒ ๐——๐—ฒ๐˜ƒ ๐—ง๐˜‚๐—ป๐—ป๐—ฒ๐—น๐˜€ ๐—ถ๐—ป ๐—ฉ๐—ถ๐˜€๐˜‚๐—ฎ๐—น ๐—ฆ๐˜๐˜‚๐—ฑ๐—ถ๐—ผ ๐Ÿฎ๐Ÿฌ๐Ÿฎ๐Ÿฎ ๐˜„๐—ถ๐˜๐—ต ๐—”๐—ฆ๐—ฃ.๐—ก๐—˜๐—ง ๐—–๐—ผ๐—ฟ๐—ฒ ๐—”๐—ฝ๐—ฝ๐˜€ ๐——๐—ฒ๐˜ƒ ๐—ง๐˜‚๐—ป๐—ป๐—ฒ๐—น๐˜€ allows developers to securely expose localhost URLs over the internet by creating temporary, publicly accessible URLs. ๐——๐—ฒ๐˜ƒ ๐—ง๐˜‚๐—ป๐—ป๐—ฒ๐—น๐˜€ enable you to access your local development environment from the internet and allow secure share with colleagues through an encrypted channel. ๐——๐—ฒ๐˜ƒ ๐˜๐˜‚๐—ป๐—ป๐—ฒ๐—น๐˜€ also offer authentication and access control features for added security when sharing your local services. โ„น️ ๐——๐—ฒ๐˜ƒ ๐—ง๐˜‚๐—ป๐—ป๐—ฒ๐—น๐˜€ feature was officially released with ๐—ฉ๐—ถ๐˜€๐˜‚๐—ฎ๐—น ๐—ฆ๐˜๐˜‚๐—ฑ๐—ถ๐—ผ ๐Ÿฎ๐Ÿฌ๐Ÿฎ๐Ÿฎ ๐˜ƒ๐Ÿญ๐Ÿณ.๐Ÿฒ for windows. ๐Ÿ”ฅHere are the advantages of using ๐——๐—ฒ๐˜ƒ ๐—ง๐˜‚๐—ป๐—ป๐—ฒ๐—น๐˜€, ✅ ๐—ฆ๐—ฒ๐—ฐ๐˜‚๐—ฟ๐—ฒ ๐—ฏ๐˜† ๐—ฑ๐—ฒ๐—ณ๐—ฎ๐˜‚๐—น๐˜ - By default ๐——๐—ฒ๐˜ƒ ๐—ง๐˜‚๐—ป๐—ป๐—ฒ๐—น๐˜€ you create are only accessible to you through your Microsoft, Microsoft Entra ID, or GitHub account . ✅ ๐—ฃ๐—ฒ๐—ฟ๐˜€๐—ถ๐˜€๐˜๐—ฒ๐—ป๐˜ ๐—จ๐—ฅ๐—Ÿ๐˜€ - Maintain the same ๐——๐—ฒ๐˜ƒ ๐—ง๐˜‚๐—ป

How to receive JSON object in POST and GET using web api

  ASP.NET Web API   is a great tool for building HTTP services with ASP.NET. It makes many things HTTP that used to be ill defined in .NET easy and allows you to build a variety of services very easily. Like other complex abstraction frameworks it makes complex scenarios super easy, while some very simple and common operations are not quite as straight forward or as transparent as they should be.   Capturing the raw Request Body But things are not so easy and transparent when you want to pass simple parameters like strings, numbers, dates etc. Because Web API is based on a host of conventions, some things that should be easy, such as easily picking up the raw content of a POST or PUT operation and capturing it, aren't quite so transparent as the automatic type mapping shown above. One thing you might expect to be able to easily do, is to pick up the entire content body and map it to a parameter like this: [ HttpPost ]         public string PostRawBuffer( strin