{"id":16727,"date":"2024-06-17T07:10:07","date_gmt":"2024-06-17T07:10:07","guid":{"rendered":"https:\/\/positiwise.com\/blog\/?p=16727"},"modified":"2024-07-04T10:08:20","modified_gmt":"2024-07-04T10:08:20","slug":"build-restful-api-with-asp-net-core","status":"publish","type":"post","link":"https:\/\/positiwise.com\/blog\/build-restful-api-with-asp-net-core","title":{"rendered":"Build RESTful API with ASP.NET Core"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong class=\"pw-highlight-text-color\"><em>Quick Overview:<\/em><\/strong><br>The blog helps you learn the process of developing a RESTful API with ASP.NET Core. You only need a Visual Studio to execute the process and understand it thoroughly. It starts by creating a project in the VS IDE and ends with testing all the RESTful API methods, including GET, POST, PUT, and DELETE.<\/p><div id=\"ez-toc-container\" class=\"ez-toc-v2_0_85 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/positiwise.com\/blog\/how-to-choose-a-web-technology-stack-a-complete-guide\/#What_is_Web_Technology_Stack\" >What is Web Technology Stack?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/positiwise.com\/blog\/how-to-choose-a-web-technology-stack-a-complete-guide\/#Structure_of_Technology_Stack_Development\" >Structure of Technology Stack Development<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/positiwise.com\/blog\/how-to-choose-a-web-technology-stack-a-complete-guide\/#Front_End\" >Front End<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/positiwise.com\/blog\/how-to-choose-a-web-technology-stack-a-complete-guide\/#Back_End\" >Back End<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/positiwise.com\/blog\/how-to-choose-a-web-technology-stack-a-complete-guide\/#How_to_Choose_the_Right_Stack\" >How to Choose the Right Stack<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/positiwise.com\/blog\/how-to-choose-a-web-technology-stack-a-complete-guide\/#Type_of_The_Project\" >Type of The Project<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/positiwise.com\/blog\/how-to-choose-a-web-technology-stack-a-complete-guide\/#Knowledge\" >Knowledge<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/positiwise.com\/blog\/how-to-choose-a-web-technology-stack-a-complete-guide\/#Development_Cost\" >Development Cost<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/positiwise.com\/blog\/how-to-choose-a-web-technology-stack-a-complete-guide\/#Flexibility\" >Flexibility<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/positiwise.com\/blog\/how-to-choose-a-web-technology-stack-a-complete-guide\/#Security\" >Security<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/positiwise.com\/blog\/how-to-choose-a-web-technology-stack-a-complete-guide\/#Best_Stack_for_Web_Development\" >Best Stack for Web Development<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/positiwise.com\/blog\/how-to-choose-a-web-technology-stack-a-complete-guide\/#Mean_Stack\" >Mean Stack<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/positiwise.com\/blog\/how-to-choose-a-web-technology-stack-a-complete-guide\/#ReactJS\" >ReactJS<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/positiwise.com\/blog\/how-to-choose-a-web-technology-stack-a-complete-guide\/#NodeJS\" >NodeJS<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/positiwise.com\/blog\/how-to-choose-a-web-technology-stack-a-complete-guide\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-build-restful-api-with-asp-net-core\">Build RESTful API with ASP.NET Core<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">RESTful API enables the dotnet applications to interact with other services, databases, and applications. It&#8217;s highly scalable, secure, and flexible, which is why most dotnet developers prefer it over other API architectures. To help you with creating a RESTful API with <a href=\"https:\/\/positiwise.com\/technologies\/dot-net-development\">ASP.NET<\/a>, we have provided a completely streamlined procedure.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">By following all the mentioned steps, you can build a RESTful API within the minimal time possible.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-the-complete-approach-for-creating-restful-api-with-asp-net\">The Complete Approach for Creating RESTful API with ASP.NET<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The process of creating a <a href=\"https:\/\/positiwise.com\/blog\/best-practices-for-designing-restful-apis\">RESTful API<\/a> with ASP.NET Core is a seamless task. Here, we have listed all the required steps that you should follow to develop and test the API. Primarily, we are going to have three development phases and four testing phases to ensure the working of all significant operations.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Phase 1: Project Creation and Model Adding<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To create the project, you should open the Visual Studio IDE and, under the .NET Core templates, choose the &#8220;<a href=\"https:\/\/positiwise.com\/services\/web-application-development\">ASP.NET Core Web Application<\/a>&#8221; project. Further, provide the project details, such as name, location and click \u201cOK\u201d.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"720\" height=\"443\" src=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-1.webp\" alt=\"\" class=\"wp-image-16728\" srcset=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-1.webp 720w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-1-300x185.webp 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Following it, choose &#8220;API&#8221; as the preferred choice and click &#8220;OK&#8221; to create the project.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"720\" height=\"505\" src=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-2.webp\" alt=\"\" class=\"wp-image-16729\" srcset=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-2.webp 720w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-2-300x210.webp 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Once the project gets created, you\u2019ll see a similar file structure in the solution explorer window.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"272\" height=\"336\" src=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-3.webp\" alt=\"\" class=\"wp-image-16730\" style=\"width:329px;height:auto\" srcset=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-3.webp 272w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-3-243x300.webp 243w\" sizes=\"auto, (max-width: 272px) 100vw, 272px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">In addition, if you open the \u201cStartup.cs\u201d file, you&#8217;ll view the project&#8217;s MVC architecture. The code in the file will look similar to the following.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"720\" height=\"467\" src=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-4.webp\" alt=\"\" class=\"wp-image-16731\" srcset=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-4.webp 720w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-4-300x195.webp 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Furthermore, before moving to the configuration part, let&#8217;s look at the default output for better clarification. To do so, use the &#8220;Ctrl+F5&#8221; combination. You can choose your own web server and browser for this purpose. But, it&#8217;s recommended to use the default, which is the IIS server and Mozilla browser.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"457\" height=\"226\" src=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-5.webp\" alt=\"\" class=\"wp-image-16732\" style=\"width:558px;height:auto\" srcset=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-5.webp 457w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-5-300x148.webp 300w\" sizes=\"auto, (max-width: 457px) 100vw, 457px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The output after running the application will be similar to the following.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"531\" height=\"214\" src=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-6.webp\" alt=\"\" class=\"wp-image-16733\" style=\"width:625px;height:auto\" srcset=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-6.webp 531w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-6-300x121.webp 300w\" sizes=\"auto, (max-width: 531px) 100vw, 531px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Moreover, if you open the \u201claunchSettings.json\u201d file, you will see the defined default URL.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"602\" height=\"531\" src=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-7.webp\" alt=\"\" class=\"wp-image-16734\" style=\"width:641px;height:auto\" srcset=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-7.webp 602w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-7-300x265.webp 300w\" sizes=\"auto, (max-width: 602px) 100vw, 602px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Similarly, by opening the &#8220;ValuesController.cs&#8221; file, you can see the defined logic of the GET method used by RESTful API.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"388\" height=\"189\" src=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-8.webp\" alt=\"\" class=\"wp-image-16735\" style=\"width:495px;height:auto\" srcset=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-8.webp 388w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-8-300x146.webp 300w\" sizes=\"auto, (max-width: 388px) 100vw, 388px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Now, we will be configuring the model part of the MVC architecture. For this, you have to navigate to Solutions Explorer &gt; Right-click the ASP.NET Project &gt; Add &gt; New Folder (Name it Models).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Further, right-click on Models &gt; Add &gt; Class (name it Movie.cs). Once the class file gets created, add the following code to it.<\/p>\n\n\n\n<pre class=\"wp-block-code alignwide\"><code>using System;\nusing System.ComponentModel.DataAnnotations;\n\nnamespace MovieAPI.Models\n{\n    public class Movie\n    {\n        public int Id { get; set; }\n\n        &#91;Required]\n        &#91;StringLength(60, MinimumLength = 3)]\n        public string Title { get; set; }\n\n        &#91;Required]\n        &#91;StringLength(30)]\n        &#91;RegularExpression(@\"^&#91;A-Z]+&#91;a-zA-Z\"\"'\\s-]*$\")]\n        public string Genre { get; set; }\n\n        &#91;DataType(DataType.Date)]\n        public DateTime ReleaseDate { get; set; }\n    }\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">As you analyze the above code, the \u201cid\u201d field will be utilized as a key by the database. In addition, numerous data annotations are also defined, such as &#8220;required&#8221; for compulsory properties, &#8220;RegularExpression&#8221; for limiting input, and \u201cGenre\u201d for letters only.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Phase 2: Controller and Scaffolding Configuration<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To add the controller part, use the right-click on Controller folder &gt; Add &gt; Controller.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"609\" height=\"288\" src=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-9.webp\" alt=\"\" class=\"wp-image-16736\" style=\"width:622px;height:auto\" srcset=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-9.webp 609w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-9-300x142.webp 300w\" sizes=\"auto, (max-width: 609px) 100vw, 609px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">When you will add the controller, a Scaffold dialog will appear, where you have to choose \u201cAPI Controller with actions with entity framework\u201d.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"720\" height=\"375\" src=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-10.webp\" alt=\"\" class=\"wp-image-16737\" style=\"width:670px;height:auto\" srcset=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-10.webp 720w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-10-300x156.webp 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Further, choose the Model class as \u201cMovie\u201d and also add the data context class using the \u201c+\u201d symbol. Once you do it, the scaffolding will start working.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"586\" height=\"208\" src=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-11.webp\" alt=\"\" class=\"wp-image-16738\" style=\"width:682px;height:auto\" srcset=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-11.webp 586w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-11-300x106.webp 300w\" sizes=\"auto, (max-width: 586px) 100vw, 586px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">After completing this procedure, go to Controllers &gt; MoviesController.cs file. You will see that the file contains all the API methods.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"560\" height=\"527\" src=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-12.webp\" alt=\"\" class=\"wp-image-16739\" style=\"width:581px;height:auto\" srcset=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-12.webp 560w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-12-300x282.webp 300w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">In addition, the go-to Data &gt; MovieAPIContext.cs file. Here, the entities included in the model will be specified.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"546\" height=\"237\" src=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-13.webp\" alt=\"\" class=\"wp-image-16740\" style=\"width:597px;height:auto\" srcset=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-13.webp 546w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-13-300x130.webp 300w\" sizes=\"auto, (max-width: 546px) 100vw, 546px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Phase 3: Database and Migration Implementation<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For the database configurations, go to Tools \u00e0 NuGet Package Manager \u00e0 Package Manager Console and execute the below command.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Command: Add-Migration Initial<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">As a result, you will have the code for the initial database schema, which can be used with the MovieAPIContext class model. In addition, your migration file will look similar to the following.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"720\" height=\"411\" src=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-14.webp\" alt=\"\" class=\"wp-image-16741\" style=\"width:615px;height:auto\" srcset=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-14.webp 720w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-14-300x171.webp 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Furthermore, again, open the Package Manager console and run the command: Update-Database for creating the database. You can view it through the path: View &gt; SQL Server Object Explorer.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"352\" height=\"123\" src=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-15.webp\" alt=\"\" class=\"wp-image-16742\" style=\"width:432px;height:auto\" srcset=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-15.webp 352w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-15-300x105.webp 300w\" sizes=\"auto, (max-width: 352px) 100vw, 352px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"609\" height=\"401\" src=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-16.webp\" alt=\"\" class=\"wp-image-16743\" style=\"width:576px;height:auto\" srcset=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-16.webp 609w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-16-300x198.webp 300w\" sizes=\"auto, (max-width: 609px) 100vw, 609px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Phase 4: GET Method Configuration and Testing<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Firstly, we will be configuring the testing of the GET method. You need to ensure that whenever the API executes the GET operation, it returns the values in the database. Here, we are going to use two GET implementations as follows:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>GET \/api\/Movies<\/li>\n\n\n\n<li>GET \/api\/Movies\/{id}<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">To test these endpoints, go to SQL server object explorer, then right-click on Movie table and choose View data. Once the database opens, add some details in its columns and rows.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"301\" height=\"263\" src=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-17.webp\" alt=\"\" class=\"wp-image-16744\" style=\"width:388px;height:auto\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Added data:<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"543\" height=\"167\" src=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-18.webp\" alt=\"\" class=\"wp-image-16745\" style=\"width:589px;height:auto\" srcset=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-18.webp 543w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-18-300x92.webp 300w\" sizes=\"auto, (max-width: 543px) 100vw, 543px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Now, open the browser and start testing.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Test Case #1: Open the browser and enter the URL: https:\/\/localhost:{port}\/api\/movies.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The output must be all the movie details available in the database.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"584\" height=\"560\" src=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-19.webp\" alt=\"\" class=\"wp-image-16746\" style=\"width:594px;height:auto\" srcset=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-19.webp 584w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-19-300x288.webp 300w\" sizes=\"auto, (max-width: 584px) 100vw, 584px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Test Case #2: Use the URL: https:\/\/localhost:{port}\/api\/movies\/2.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here, the ID is mentioned in the URL, which is &#8220;2&#8221;. So, the GET should provide the movie name that is available in the second row.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"586\" height=\"233\" src=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-20.webp\" alt=\"\" class=\"wp-image-16747\" style=\"width:611px;height:auto\" srcset=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-20.webp 586w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-20-300x119.webp 300w\" sizes=\"auto, (max-width: 586px) 100vw, 586px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Output:<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"602\" height=\"241\" src=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-21.webp\" alt=\"\" class=\"wp-image-16748\" style=\"width:657px;height:auto\" srcset=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-21.webp 602w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-21-300x120.webp 300w\" sizes=\"auto, (max-width: 602px) 100vw, 602px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Phase 5: POST Method Implementation and Testing<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The POST method is utilized to add values to the database. It returns the output as HTTP 201 code, meaning that the operation is successful. To test this endpoint, the POSTMAN tool gets utilized, and &#8220;location&#8221; is added to the header to define the location.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To test POST, configure the HTTP method as POST in the POSTMAN tool. Following it, input the URL: https:\/\/localhost:{port}\/api\/movies. Now, choose \u201cBody\u201d tab > \u201cRaw\u201d radio button > JSON (application\/json).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Further, remove the ID part and, input movie record JSON details, and click &#8220;Send&#8221;.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"720\" height=\"282\" src=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-22.webp\" alt=\"\" class=\"wp-image-16749\" style=\"width:636px;height:auto\" srcset=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-22.webp 720w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-22-300x118.webp 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Once the POSTMAN tool completes the operation, open the Headers tab to view the location of the newly created database entry.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"402\" height=\"359\" src=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-23.webp\" alt=\"\" class=\"wp-image-16750\" style=\"width:476px;height:auto\" srcset=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-23.webp 402w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-23-300x268.webp 300w\" sizes=\"auto, (max-width: 402px) 100vw, 402px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Additionally, if you want to validate the POST method, open the browser, use the id as &#8220;4,&#8221; and run the GET URL as demonstrated below.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"550\" height=\"245\" src=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-24.webp\" alt=\"\" class=\"wp-image-16751\" style=\"width:586px;height:auto\" srcset=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-24.webp 550w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-24-300x134.webp 300w\" sizes=\"auto, (max-width: 550px) 100vw, 550px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Also, you can view the database for verification.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"534\" height=\"183\" src=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-25.webp\" alt=\"\" class=\"wp-image-16752\" style=\"width:592px;height:auto\" srcset=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-25.webp 534w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-25-300x103.webp 300w\" sizes=\"auto, (max-width: 534px) 100vw, 534px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">As we have also utilized data annotations in our RESTful API with the ASP.NET Core project, you should also test them by inputting an invalid record.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"720\" height=\"226\" src=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-26.webp\" alt=\"\" class=\"wp-image-16753\" style=\"width:599px;height:auto\" srcset=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-26.webp 720w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-26-300x94.webp 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Phase 6: PUT Method Configuration and Testing<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The PUT method of RESTful API is used to update the information available in the database. It\u2019s configured in the \u201cHttpPut\u201d attribute in the \u201cMoviesController.cs\u201d file.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To test the PUT method, open the POSTMAN tool and input the URL: https:\/\/localhost:{port}\/api\/movies\/3. After this, go to the &#8220;Body&#8221; tab > \u201cRaw\u201d radio button > JSON. Lastly, enter the following record in JSON format and click on &#8220;Send.&#8221;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"id\": 3,\n    \"title\": \"The Departed\",\n    \"genre\": \"Thriller\",\n    \"releaseDate\": \"2006-10-06T00:00:00\"\n}<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"720\" height=\"237\" src=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-27.webp\" alt=\"\" class=\"wp-image-16754\" style=\"width:632px;height:auto\" srcset=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-27.webp 720w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-27-300x99.webp 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">As we have updated the movie name listed at the third number, you should use the GET operation to fetch details and verify the PUT method.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"549\" height=\"244\" src=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-28.webp\" alt=\"\" class=\"wp-image-16755\" style=\"width:594px;height:auto\" srcset=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-28.webp 549w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-28-300x133.webp 300w\" sizes=\"auto, (max-width: 549px) 100vw, 549px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Similarly, you can update any database. However, if you enter an invalid input, a 404 error status code will be displayed.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"720\" height=\"246\" src=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-29.webp\" alt=\"\" class=\"wp-image-16756\" style=\"width:629px;height:auto\" srcset=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-29.webp 720w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-29-300x103.webp 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Phase 7: DELETE Method Implementation and Testing<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now, we\u2019ll test the DELETE method of RESTful API. Again, open the POSTMAN, configure the method as DELETE, and enter the URL with id as \u201c3\u201d: https:\/\/localhost:{port}\/api\/movies\/3.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Click on &#8220;Send,&#8221; and you will have the output with a 200 status code.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"720\" height=\"250\" src=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-30.webp\" alt=\"\" class=\"wp-image-16757\" style=\"width:634px;height:auto\" srcset=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-30.webp 720w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-30-300x104.webp 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">To verify the execution of the DELETE method, use GET to fetch the details of the movie at the &#8220;3&#8221; number. As it&#8217;s deleted, the 404 code must be returned.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"609\" height=\"254\" src=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-31.webp\" alt=\"\" class=\"wp-image-16758\" style=\"width:643px;height:auto\" srcset=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-31.webp 609w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-31-300x125.webp 300w\" sizes=\"auto, (max-width: 609px) 100vw, 609px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Additionally, you should also check the database manually for complete validation.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"516\" height=\"204\" src=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-32.webp\" alt=\"\" class=\"wp-image-16759\" style=\"width:572px;height:auto\" srcset=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-32.webp 516w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP.NET-Core-32-300x119.webp 300w\" sizes=\"auto, (max-width: 516px) 100vw, 516px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-concluding-up\">Concluding Up<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Creating RESTful API with ASP.NET Core is a streamlined task with Visual Studio IDE, as it provides all the necessary tools in one place. You only need to create the project and then configure the model and the controller files. Following it, perform the database and migration procedure, and you are ready to test the GET, POST, PUT, and DELETE methods. Lastly, if the test results are satisfactory, your RESTful API creation gets completed.<\/p>\n  <div class=\"related-post slider\">\r\n        <div class=\"headline\">Related Posts<\/div>\r\n    <div class=\"post-list owl-carousel\">\r\n\r\n            <div class=\"item\">\r\n            <div class=\"thumb post_thumb\">\r\n    <a  title=\"Web Application Vs Desktop Application: Pros and Cons\" href=\"https:\/\/positiwise.com\/blog\/web-application-vs-desktop-application-pros-and-cons\">\r\n\r\n      <img loading=\"lazy\" decoding=\"async\" width=\"940\" height=\"475\" src=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2022\/01\/web-application-vs-desktop-application.jpg\" class=\"attachment-full size-full wp-post-image\" alt=\"Web Application Vs. Desktop Application: Pros and Cons\" srcset=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2022\/01\/web-application-vs-desktop-application.jpg 940w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2022\/01\/web-application-vs-desktop-application-300x152.jpg 300w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2022\/01\/web-application-vs-desktop-application-768x388.jpg 768w\" sizes=\"auto, (max-width: 940px) 100vw, 940px\" \/>\r\n\r\n    <\/a>\r\n  <\/div>\r\n\r\n  <a class=\"title post_title\"  title=\"Web Application Vs Desktop Application: Pros and Cons\" href=\"https:\/\/positiwise.com\/blog\/web-application-vs-desktop-application-pros-and-cons\">\r\n        Web Application Vs Desktop Application: Pros and Cons  <\/a>\r\n\r\n        <\/div>\r\n              <div class=\"item\">\r\n            <div class=\"thumb post_thumb\">\r\n    <a  title=\"8 Web Portal Examples That You Must Know for Online Business\" href=\"https:\/\/positiwise.com\/blog\/8-web-portal-examples-that-you-must-know-for-online-business\">\r\n\r\n      <img loading=\"lazy\" decoding=\"async\" width=\"940\" height=\"537\" src=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2022\/03\/webportal-web-1.jpg\" class=\"attachment-full size-full wp-post-image\" alt=\"8 Web Portal Examples That You Must Know for Online Business\" srcset=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2022\/03\/webportal-web-1.jpg 940w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2022\/03\/webportal-web-1-300x171.jpg 300w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2022\/03\/webportal-web-1-768x439.jpg 768w\" sizes=\"auto, (max-width: 940px) 100vw, 940px\" \/>\r\n\r\n    <\/a>\r\n  <\/div>\r\n\r\n  <a class=\"title post_title\"  title=\"8 Web Portal Examples That You Must Know for Online Business\" href=\"https:\/\/positiwise.com\/blog\/8-web-portal-examples-that-you-must-know-for-online-business\">\r\n        8 Web Portal Examples That You Must Know for Online Business  <\/a>\r\n\r\n        <\/div>\r\n              <div class=\"item\">\r\n            <div class=\"thumb post_thumb\">\r\n    <a  title=\"How To Choose A Web Technology Stack: A Complete Guide\" href=\"https:\/\/positiwise.com\/blog\/how-to-choose-a-web-technology-stack-a-complete-guide\">\r\n\r\n      <img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"630\" src=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2022\/09\/how-to-choose-a-web-technology-stack-a-complere-guide.jpg\" class=\"attachment-full size-full wp-post-image\" alt=\"How To Choose A Web Technology Stack: A Complete Guide\" srcset=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2022\/09\/how-to-choose-a-web-technology-stack-a-complere-guide.jpg 1200w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2022\/09\/how-to-choose-a-web-technology-stack-a-complere-guide-300x158.jpg 300w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2022\/09\/how-to-choose-a-web-technology-stack-a-complere-guide-1024x538.jpg 1024w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2022\/09\/how-to-choose-a-web-technology-stack-a-complere-guide-768x403.jpg 768w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/>\r\n\r\n    <\/a>\r\n  <\/div>\r\n\r\n  <a class=\"title post_title\"  title=\"How To Choose A Web Technology Stack: A Complete Guide\" href=\"https:\/\/positiwise.com\/blog\/how-to-choose-a-web-technology-stack-a-complete-guide\">\r\n        How To Choose A Web Technology Stack: A Complete Guide  <\/a>\r\n\r\n        <\/div>\r\n      \r\n  <\/div>\r\n\r\n  <script>\r\n      <\/script>\r\n  <style>\r\n    .related-post {}\r\n\r\n    .related-post .post-list {\r\n      text-align: left;\r\n          }\r\n\r\n    .related-post .post-list .item {\r\n      margin: 5px;\r\n      padding: 0px;\r\n          }\r\n\r\n    .related-post .headline {\r\n      font-size: 2rem !important;\r\n      color: #212529 !important;\r\n          }\r\n\r\n    .related-post .headline {\r\nmargin-top: 0;\r\npadding-left: 1%;\r\n}.related-post .post-list .item .post_thumb {\r\n      max-height: 220px;\r\n      margin: 0px 0px 10px 0px;\r\n      padding: 0px;\r\n      display: block;\r\n          }\r\n\r\n    .related-post .post-list .item .post_title {\r\n      font-size: 1rem;\r\n      color: #212529;\r\n      margin: 10px 0px;\r\n      padding: 0px;\r\n      display: block;\r\n      text-decoration: none;\r\n          }\r\n\r\n    .related-post .post-list .item .post_excerpt {\r\n      font-size: 13px;\r\n      color: #3f3f3f;\r\n      margin: 10px 0px;\r\n      padding: 0px;\r\n      display: block;\r\n      text-decoration: none;\r\n          }\r\n\r\n    .related-post .owl-dots .owl-dot {\r\n          }\r\n\r\n      <\/style>\r\n      <script>\r\n      jQuery(document).ready(function($) {\r\n        $(\".related-post .post-list\").owlCarousel({\r\n          items: 3,\r\n          responsiveClass: true,\r\n          responsive: {\r\n            0: {\r\n              items: 1,\r\n            },\r\n            768: {\r\n              items: 2,\r\n            },\r\n            1200: {\r\n              items: 3,\r\n            }\r\n          },\r\n                      rewind: true,\r\n                                loop: true,\r\n                                center: true,\r\n                                autoplay: true,\r\n            autoplayHoverPause: true,\r\n                                nav: true,\r\n            navSpeed: 1000,\r\n            navText: ['<i class=\"fas fa-chevron-left\"><\/i>', '<i class=\"fas fa-chevron-right\"><\/i>'],\r\n                                dots: true,\r\n            dotsSpeed: 1200,\r\n                                                    rtl: false,\r\n          \r\n        });\r\n      });\r\n    <\/script>\r\n  <\/div>\r\n","protected":false},"excerpt":{"rendered":"<p>Quick Overview:The blog helps you learn the process of developing a RESTful API with ASP.NET Core. You only [&hellip;]<\/p>\n  <div class=\"related-post slider\">\r\n        <div class=\"headline\">Related Posts<\/div>\r\n    <div class=\"post-list owl-carousel\">\r\n\r\n            <div class=\"item\">\r\n            <div class=\"thumb post_thumb\">\r\n    <a  title=\"Web Application Vs Desktop Application: Pros and Cons\" href=\"https:\/\/positiwise.com\/blog\/web-application-vs-desktop-application-pros-and-cons\">\r\n\r\n      <img width=\"940\" height=\"475\" src=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2022\/01\/web-application-vs-desktop-application.jpg\" class=\"attachment-full size-full wp-post-image\" alt=\"Web Application Vs. Desktop Application: Pros and Cons\" decoding=\"async\" loading=\"lazy\" srcset=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2022\/01\/web-application-vs-desktop-application.jpg 940w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2022\/01\/web-application-vs-desktop-application-300x152.jpg 300w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2022\/01\/web-application-vs-desktop-application-768x388.jpg 768w\" sizes=\"auto, (max-width: 940px) 100vw, 940px\" \/>\r\n\r\n    <\/a>\r\n  <\/div>\r\n\r\n  <a class=\"title post_title\"  title=\"Web Application Vs Desktop Application: Pros and Cons\" href=\"https:\/\/positiwise.com\/blog\/web-application-vs-desktop-application-pros-and-cons\">\r\n        Web Application Vs Desktop Application: Pros and Cons  <\/a>\r\n\r\n        <\/div>\r\n              <div class=\"item\">\r\n            <div class=\"thumb post_thumb\">\r\n    <a  title=\"8 Web Portal Examples That You Must Know for Online Business\" href=\"https:\/\/positiwise.com\/blog\/8-web-portal-examples-that-you-must-know-for-online-business\">\r\n\r\n      <img width=\"940\" height=\"537\" src=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2022\/03\/webportal-web-1.jpg\" class=\"attachment-full size-full wp-post-image\" alt=\"8 Web Portal Examples That You Must Know for Online Business\" decoding=\"async\" loading=\"lazy\" srcset=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2022\/03\/webportal-web-1.jpg 940w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2022\/03\/webportal-web-1-300x171.jpg 300w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2022\/03\/webportal-web-1-768x439.jpg 768w\" sizes=\"auto, (max-width: 940px) 100vw, 940px\" \/>\r\n\r\n    <\/a>\r\n  <\/div>\r\n\r\n  <a class=\"title post_title\"  title=\"8 Web Portal Examples That You Must Know for Online Business\" href=\"https:\/\/positiwise.com\/blog\/8-web-portal-examples-that-you-must-know-for-online-business\">\r\n        8 Web Portal Examples That You Must Know for Online Business  <\/a>\r\n\r\n        <\/div>\r\n              <div class=\"item\">\r\n            <div class=\"thumb post_thumb\">\r\n    <a  title=\"Top 10 High-Demand Tech Positions in IT Company by Salary 2022\" href=\"https:\/\/positiwise.com\/blog\/top-10-high-demand-tech-positions-in-it-company-by-salary-2022\">\r\n\r\n      <img width=\"1021\" height=\"621\" src=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2022\/07\/it-position-salary-2022.jpg\" class=\"attachment-full size-full wp-post-image\" alt=\"Top 10 High-Demand Tech Positions in IT Company by Salary 2022\" decoding=\"async\" loading=\"lazy\" srcset=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2022\/07\/it-position-salary-2022.jpg 1021w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2022\/07\/it-position-salary-2022-300x182.jpg 300w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2022\/07\/it-position-salary-2022-768x467.jpg 768w\" sizes=\"auto, (max-width: 1021px) 100vw, 1021px\" \/>\r\n\r\n    <\/a>\r\n  <\/div>\r\n\r\n  <a class=\"title post_title\"  title=\"Top 10 High-Demand Tech Positions in IT Company by Salary 2022\" href=\"https:\/\/positiwise.com\/blog\/top-10-high-demand-tech-positions-in-it-company-by-salary-2022\">\r\n        Top 10 High-Demand Tech Positions in IT Company by Salary 2022  <\/a>\r\n\r\n        <\/div>\r\n      \r\n  <\/div>\r\n\r\n  <script>\r\n      <\/script>\r\n  <style>\r\n    .related-post {}\r\n\r\n    .related-post .post-list {\r\n      text-align: left;\r\n          }\r\n\r\n    .related-post .post-list .item {\r\n      margin: 5px;\r\n      padding: 0px;\r\n          }\r\n\r\n    .related-post .headline {\r\n      font-size: 2rem !important;\r\n      color: #212529 !important;\r\n          }\r\n\r\n    .related-post .headline {\r\nmargin-top: 0;\r\npadding-left: 1%;\r\n}.related-post .post-list .item .post_thumb {\r\n      max-height: 220px;\r\n      margin: 0px 0px 10px 0px;\r\n      padding: 0px;\r\n      display: block;\r\n          }\r\n\r\n    .related-post .post-list .item .post_title {\r\n      font-size: 1rem;\r\n      color: #212529;\r\n      margin: 10px 0px;\r\n      padding: 0px;\r\n      display: block;\r\n      text-decoration: none;\r\n          }\r\n\r\n    .related-post .post-list .item .post_excerpt {\r\n      font-size: 13px;\r\n      color: #3f3f3f;\r\n      margin: 10px 0px;\r\n      padding: 0px;\r\n      display: block;\r\n      text-decoration: none;\r\n          }\r\n\r\n    .related-post .owl-dots .owl-dot {\r\n          }\r\n\r\n      <\/style>\r\n      <script>\r\n      jQuery(document).ready(function($) {\r\n        $(\".related-post .post-list\").owlCarousel({\r\n          items: 3,\r\n          responsiveClass: true,\r\n          responsive: {\r\n            0: {\r\n              items: 1,\r\n            },\r\n            768: {\r\n              items: 2,\r\n            },\r\n            1200: {\r\n              items: 3,\r\n            }\r\n          },\r\n                      rewind: true,\r\n                                loop: true,\r\n                                center: true,\r\n                                autoplay: true,\r\n            autoplayHoverPause: true,\r\n                                nav: true,\r\n            navSpeed: 1000,\r\n            navText: ['<i class=\"fas fa-chevron-left\"><\/i>', '<i class=\"fas fa-chevron-right\"><\/i>'],\r\n                                dots: true,\r\n            dotsSpeed: 1200,\r\n                                                    rtl: false,\r\n          \r\n        });\r\n      });\r\n    <\/script>\r\n  <\/div>\r\n","protected":false},"author":4,"featured_media":16762,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_eb_attr":"","footnotes":""},"categories":[81],"tags":[833,851,890,891],"class_list":["post-16727","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-web-development","tag-net-core","tag-restful-api","tag-restful-api-with-asp-net","tag-restful-api-with-asp-net-core"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Build RESTful API with ASP.NET Core - Positiwise<\/title>\n<meta name=\"description\" content=\"Learn how to build a robust RESTful API with ASP.NET Core, offering seamless integration and high performance for your web applications.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/positiwise.com\/blog\/build-restful-api-with-asp-net-core\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Build RESTful API with ASP.NET Core - Positiwise\" \/>\n<meta property=\"og:description\" content=\"Learn how to build a robust RESTful API with ASP.NET Core, offering seamless integration and high performance for your web applications.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/positiwise.com\/blog\/build-restful-api-with-asp-net-core\" \/>\n<meta property=\"og:site_name\" content=\"Positiwise\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/positiwise\/\" \/>\n<meta property=\"article:published_time\" content=\"2024-06-17T07:10:07+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-07-04T10:08:20+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP-NET-Core-jpg.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1021\" \/>\n\t<meta property=\"og:image:height\" content=\"621\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jemin Desai\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@positiwise\" \/>\n<meta name=\"twitter:site\" content=\"@positiwise\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jemin Desai\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"13 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/build-restful-api-with-asp-net-core#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/build-restful-api-with-asp-net-core\"},\"author\":{\"name\":\"Jemin Desai\",\"@id\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/#\\\/schema\\\/person\\\/c5edd81b0333e026938f30ed21953916\"},\"headline\":\"Build RESTful API with ASP.NET Core\",\"datePublished\":\"2024-06-17T07:10:07+00:00\",\"dateModified\":\"2024-07-04T10:08:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/build-restful-api-with-asp-net-core\"},\"wordCount\":1326,\"publisher\":{\"@id\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/build-restful-api-with-asp-net-core#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/06\\\/Build-RESTful-API-with-ASP-NET-Core-jpg.webp\",\"keywords\":[\".net core\",\"Restful API\",\"restful api with asp.net\",\"restful api with asp.net core\"],\"articleSection\":[\"Web Development\"],\"inLanguage\":\"en-US\",\"copyrightYear\":\"2022\",\"copyrightHolder\":{\"@id\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/build-restful-api-with-asp-net-core\",\"url\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/build-restful-api-with-asp-net-core\",\"name\":\"Build RESTful API with ASP.NET Core - Positiwise\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/build-restful-api-with-asp-net-core#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/build-restful-api-with-asp-net-core#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/06\\\/Build-RESTful-API-with-ASP-NET-Core-jpg.webp\",\"datePublished\":\"2024-06-17T07:10:07+00:00\",\"dateModified\":\"2024-07-04T10:08:20+00:00\",\"description\":\"Learn how to build a robust RESTful API with ASP.NET Core, offering seamless integration and high performance for your web applications.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/build-restful-api-with-asp-net-core#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/positiwise.com\\\/blog\\\/build-restful-api-with-asp-net-core\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/build-restful-api-with-asp-net-core#primaryimage\",\"url\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/06\\\/Build-RESTful-API-with-ASP-NET-Core-jpg.webp\",\"contentUrl\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/06\\\/Build-RESTful-API-with-ASP-NET-Core-jpg.webp\",\"width\":1021,\"height\":621,\"caption\":\"Build-RESTful-API-with-ASP-NET-Core\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/build-restful-api-with-asp-net-core#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/positiwise.com\\\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Build RESTful API with ASP.NET Core\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/\",\"name\":\"Positiwise\",\"description\":\"Providing Full-cycle Software Development Services\",\"publisher\":{\"@id\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/#organization\"},\"alternateName\":\"Positiwise Software Pvt Ltd\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/#organization\",\"name\":\"Positiwise\",\"alternateName\":\"Positiwise Software Pvt Ltd\",\"url\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/logo.png\",\"width\":202,\"height\":29,\"caption\":\"Positiwise\"},\"image\":{\"@id\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/positiwise\\\/\",\"https:\\\/\\\/x.com\\\/positiwise\",\"https:\\\/\\\/github.com\\\/positiwise\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/positiwise\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/#\\\/schema\\\/person\\\/c5edd81b0333e026938f30ed21953916\",\"name\":\"Jemin Desai\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/288c332112f4a87cfce31dcb7037bd4d22db699444c717af477ae7726459c4c7?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/288c332112f4a87cfce31dcb7037bd4d22db699444c717af477ae7726459c4c7?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/288c332112f4a87cfce31dcb7037bd4d22db699444c717af477ae7726459c4c7?s=96&r=g\",\"caption\":\"Jemin Desai\"},\"description\":\"Jemin Desai is Chief Marketing Officer at Positiwise Software Pvt Ltd, he is responsible for creating and accelerating the company\u2019s marketing strategy and brand recognition across the globe. He has more than 20 years of experience in senior marketing roles at the Inc. 5000 Fastest-Growing Private Companies.\",\"sameAs\":[\"https:\\\/\\\/www.linkedin.com\\\/in\\\/jeminseo\"],\"url\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/author\\\/jemin-desai\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Build RESTful API with ASP.NET Core - Positiwise","description":"Learn how to build a robust RESTful API with ASP.NET Core, offering seamless integration and high performance for your web applications.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/positiwise.com\/blog\/build-restful-api-with-asp-net-core","og_locale":"en_US","og_type":"article","og_title":"Build RESTful API with ASP.NET Core - Positiwise","og_description":"Learn how to build a robust RESTful API with ASP.NET Core, offering seamless integration and high performance for your web applications.","og_url":"https:\/\/positiwise.com\/blog\/build-restful-api-with-asp-net-core","og_site_name":"Positiwise","article_publisher":"https:\/\/www.facebook.com\/positiwise\/","article_published_time":"2024-06-17T07:10:07+00:00","article_modified_time":"2024-07-04T10:08:20+00:00","og_image":[{"width":1021,"height":621,"url":"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP-NET-Core-jpg.webp","type":"image\/jpeg"}],"author":"Jemin Desai","twitter_card":"summary_large_image","twitter_creator":"@positiwise","twitter_site":"@positiwise","twitter_misc":{"Written by":"Jemin Desai","Est. reading time":"13 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/positiwise.com\/blog\/build-restful-api-with-asp-net-core#article","isPartOf":{"@id":"https:\/\/positiwise.com\/blog\/build-restful-api-with-asp-net-core"},"author":{"name":"Jemin Desai","@id":"https:\/\/positiwise.com\/blog\/#\/schema\/person\/c5edd81b0333e026938f30ed21953916"},"headline":"Build RESTful API with ASP.NET Core","datePublished":"2024-06-17T07:10:07+00:00","dateModified":"2024-07-04T10:08:20+00:00","mainEntityOfPage":{"@id":"https:\/\/positiwise.com\/blog\/build-restful-api-with-asp-net-core"},"wordCount":1326,"publisher":{"@id":"https:\/\/positiwise.com\/blog\/#organization"},"image":{"@id":"https:\/\/positiwise.com\/blog\/build-restful-api-with-asp-net-core#primaryimage"},"thumbnailUrl":"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP-NET-Core-jpg.webp","keywords":[".net core","Restful API","restful api with asp.net","restful api with asp.net core"],"articleSection":["Web Development"],"inLanguage":"en-US","copyrightYear":"2022","copyrightHolder":{"@id":"https:\/\/positiwise.com\/blog\/#organization"}},{"@type":"WebPage","@id":"https:\/\/positiwise.com\/blog\/build-restful-api-with-asp-net-core","url":"https:\/\/positiwise.com\/blog\/build-restful-api-with-asp-net-core","name":"Build RESTful API with ASP.NET Core - Positiwise","isPartOf":{"@id":"https:\/\/positiwise.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/positiwise.com\/blog\/build-restful-api-with-asp-net-core#primaryimage"},"image":{"@id":"https:\/\/positiwise.com\/blog\/build-restful-api-with-asp-net-core#primaryimage"},"thumbnailUrl":"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP-NET-Core-jpg.webp","datePublished":"2024-06-17T07:10:07+00:00","dateModified":"2024-07-04T10:08:20+00:00","description":"Learn how to build a robust RESTful API with ASP.NET Core, offering seamless integration and high performance for your web applications.","breadcrumb":{"@id":"https:\/\/positiwise.com\/blog\/build-restful-api-with-asp-net-core#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/positiwise.com\/blog\/build-restful-api-with-asp-net-core"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/positiwise.com\/blog\/build-restful-api-with-asp-net-core#primaryimage","url":"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP-NET-Core-jpg.webp","contentUrl":"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2024\/06\/Build-RESTful-API-with-ASP-NET-Core-jpg.webp","width":1021,"height":621,"caption":"Build-RESTful-API-with-ASP-NET-Core"},{"@type":"BreadcrumbList","@id":"https:\/\/positiwise.com\/blog\/build-restful-api-with-asp-net-core#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/positiwise.com\/blog"},{"@type":"ListItem","position":2,"name":"Build RESTful API with ASP.NET Core"}]},{"@type":"WebSite","@id":"https:\/\/positiwise.com\/blog\/#website","url":"https:\/\/positiwise.com\/blog\/","name":"Positiwise","description":"Providing Full-cycle Software Development Services","publisher":{"@id":"https:\/\/positiwise.com\/blog\/#organization"},"alternateName":"Positiwise Software Pvt Ltd","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/positiwise.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/positiwise.com\/blog\/#organization","name":"Positiwise","alternateName":"Positiwise Software Pvt Ltd","url":"https:\/\/positiwise.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/positiwise.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/07\/logo.png","contentUrl":"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/07\/logo.png","width":202,"height":29,"caption":"Positiwise"},"image":{"@id":"https:\/\/positiwise.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/positiwise\/","https:\/\/x.com\/positiwise","https:\/\/github.com\/positiwise","https:\/\/www.linkedin.com\/company\/positiwise"]},{"@type":"Person","@id":"https:\/\/positiwise.com\/blog\/#\/schema\/person\/c5edd81b0333e026938f30ed21953916","name":"Jemin Desai","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/288c332112f4a87cfce31dcb7037bd4d22db699444c717af477ae7726459c4c7?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/288c332112f4a87cfce31dcb7037bd4d22db699444c717af477ae7726459c4c7?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/288c332112f4a87cfce31dcb7037bd4d22db699444c717af477ae7726459c4c7?s=96&r=g","caption":"Jemin Desai"},"description":"Jemin Desai is Chief Marketing Officer at Positiwise Software Pvt Ltd, he is responsible for creating and accelerating the company\u2019s marketing strategy and brand recognition across the globe. He has more than 20 years of experience in senior marketing roles at the Inc. 5000 Fastest-Growing Private Companies.","sameAs":["https:\/\/www.linkedin.com\/in\/jeminseo"],"url":"https:\/\/positiwise.com\/blog\/author\/jemin-desai"}]}},"_links":{"self":[{"href":"https:\/\/positiwise.com\/blog\/wp-json\/wp\/v2\/posts\/16727","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/positiwise.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/positiwise.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/positiwise.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/positiwise.com\/blog\/wp-json\/wp\/v2\/comments?post=16727"}],"version-history":[{"count":4,"href":"https:\/\/positiwise.com\/blog\/wp-json\/wp\/v2\/posts\/16727\/revisions"}],"predecessor-version":[{"id":16976,"href":"https:\/\/positiwise.com\/blog\/wp-json\/wp\/v2\/posts\/16727\/revisions\/16976"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/positiwise.com\/blog\/wp-json\/wp\/v2\/media\/16762"}],"wp:attachment":[{"href":"https:\/\/positiwise.com\/blog\/wp-json\/wp\/v2\/media?parent=16727"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/positiwise.com\/blog\/wp-json\/wp\/v2\/categories?post=16727"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/positiwise.com\/blog\/wp-json\/wp\/v2\/tags?post=16727"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}