
Begin your journey into restful APIs with dotnet core, learn the fundamentals, and build a real world project from scratch, while understanding who should take this course.
Build restful APIs with ASP.NET Core, covering models, controllers, CRUD, EF Core with SQL Server Code First, async calls, content negotiation, migrations, data seeding, validation, and deploy to Azure.
Install Visual Studio Community Edition for REST API development, ensure version 16.8+ and .NET Core 5.0 compatibility, and add ASP.NET web development and cross-platform workloads.
Create an ASP.Net Core Web API project in Visual Studio by selecting the API template, naming the project, and enabling OpenAPI documentation with .NET 5.0.
Explore the dotnet core web api project structure in Visual Studio, examining solution, dependencies, launch settings, and appsettings.json for secrets and connection strings, plus the program and startup files.
Explore how the program and startup files bootstrap an ASP.NET Core app, implement dependency injection, and configure the Http request pipeline with authentication, authorization, and EF services.
Learn the standard http verbs for rest api operations, mapping create to post, read to get, update to put, and delete remains delete, with practical code comparisons.
Create and organize models in a Web API project by adding a models folder, defining a Song class with ID, Title, and Language properties, and using prop snippets.
Implement a get method in the songs controller to return a hardcoded list of songs as IEnumerable, importing the song model and testing with swagger and postman.
Demonstrate implementing a post request in an ASP.NET Core rest api by adding a song to a static list with from body data and testing via Postman.
Update a record with an http put by passing the id in the url, replacing the list item, and verifying the change with a get request.
Add a void Http delete method that accepts an id, calls the remove at helper with that id, and exposes the route so Postman can delete a song.
Entity framework is an ORM that automatically creates a database and tables, uses a DbContext with DbSet properties, and translates LINQ queries to SQL via code first or database first.
Compare code first and database first approaches in entity framework, where code first creates the database from C# model classes and database first builds it manually to create C# classes.
Install and configure the Entity Framework Core and SQL Server NuGet packages to connect the web API with a database, enabling data retrieval from SQL Server.
Connect a web api to SQL Server using Entity Framework code-first by defining api dbcontext with a dbset for songs and configuring options in the constructor via startup.cs.
Register the API db context as a service and pass a SQL Server connection string, including server name and Music DB, to connect API to the database via Entity Framework.
Examine code-first database creation with ensure created versus migrations, configure the db context in the controller, and implement CRUD for songs using entity framework.
learn to implement a get request that returns a single song by id using the DB context find method, alongside the get all songs endpoint.
pass a song object into the post method, add it via the db context, and persist changes with save changes, then test with postman by sending title and language.
Demonstrates handling a put request in a web api by locating a song by id in the dbcontext, updating title and language from a json payload, and saving changes.
Implement a delete request in the ASP.NET Core API using db context to remove a song by id, save changes, and test with postman.
Learn how to implement Swagger for language-agnostic API documentation of restful APIs, test get, post, put, and delete endpoints, and configure dotnet core 5 with NuGet.
Explore http status codes as standard server responses, and learn how 2xx, 3xx, 4xx, and 5xx codes indicate success, redirection, client errors, and server errors in RESTful APIs.
Implement status codes in an ASP.NET Core Web API using IActionResult and the status code class, returning 200, 201, 400, and NotFound with messages like record updated and record deleted.
Explore exception handling in Rest API by translating runtime errors into HTTP responses and replacing internal server errors with user friendly messages like no record found against this id.
Implement exception handling in restful apis by returning user friendly messages, using not found and ok status codes for get and delete operations, and handling null records.
Compare synchronous vs asynchronous programming using three methods: hello world, image, and text; see how async lets the third method run while the image loads, reducing delays.
Learn why async programming boosts scalability in REST APIs by freeing threads during database input/output. See how this approach handles multiple concurrent requests without blocking the thread pool.
Learn to implement async requests in ASP.NET Core REST APIs by using async and await, updating controller actions to Task<IActionResult> and employing FindAsync, AddAsync, and SaveChangesAsync.
Learn how content negotiation uses the accept header to request json or xml from the ASP.Net Core Web API, see default json responses, and learn how to configure xml support.
Enable content negotiation in ASP.NET core web api by adding XML serializer formatters in startup. Shows how the accept header selects XML or JSON via media type formatters.
Learn why code first migrations are needed when updating a model, see how ensure created fails with new properties, and prepare to implement migrations in an ASP.NET Core Web API.
Delete the existing database and remove the Ensure created method to prepare for first migrations, then create the database schema using migrations in SQL Server Object Explorer.
Create your database again using migrations via the package manager console, add an initial create migration, install the Microsoft Entity Framework Core Tools package, and run update-database.
Seed the songs table using the own model creating method, add a seed migration, update the database, and verify the api returns seeded song data.
Create an Azure storage account and resource group, set up a public container, upload files, and access their URLs for dotnet core rest APIs.
Install the Azure Storage Blobs NuGet package in the rest api project to enable uploading files to an Azure container via restful APIs.
Upload files in a dotnet core web api by adding an IFormFile image property, not mapped, and store the image in Azure blob storage, saving its path in the database.
Upload the image to Azure Blob storage, then save the JSON data and the image URL in the database using DbContext with AddAsync and SaveChangesAsync, returning 201.
Refactor file uploads into a reusable helper for Azure storage using RESTful APIs by creating an image helper with upload image returning the image URL, and use it from controllers.
Explore model validation in ASP.NET Core, MVC, and Web API, why it's necessary, and how backend developers enforce rules to prevent null or empty data in post requests.
Explore how validations enforce data integrity in rest api by adding required attributes to song title, language, and duration, and customize error messages for clear guidance on missing data.
Discover attribute routing in dotnet core web api and how http get attributes prevent duplicate actions by differentiating id parameter methods.
Apply attribute routing in ASP.NET Core to resolve method ambiguity between get methods, define routes like api/songs and api/songs/{id}, and access tests via api/songs/test.
Design the backend restful APIs for a songs app, exposing home, song and artist detail pages, music, search, and album pages, while understanding the relation between tables and entities.
Define and relate three tables for a rest api: artists, albums, and songs; artist id foreign key in albums and songs; album id in songs; establish one-to-many relations.
Add and configure artist, album, and song models in the rest api project, including uploading artist and album images and song audio, and define one-to-many relationships via Entity Framework conventions.
Register artist and album dbset properties in the api dbcontext. Remove old data seeding and the songs controller, then create an initial migration and update the database to reveal tables.
Are you tired of boring the outdated and incomplete courses , then let's dive in to the world of Rest Api's. I'm Asfend Microsoft Most Valuable Professional (MVP) and in this course I'll explain what basically the Rest Api is and how you can create the Rest Api's in ASP.NET Core and C#.
The main focus of this course is on the Restful Web Api via ASP.NET Core and C#. So if you're familiar with C# , ASP.NET Core and Entity Framework Core Or if you want to create the Restful Api's with .Net Core then this is the right course for you.
In this course we'll start our work from the scratch so if you've no prior knowledge of Rest Api's then don't worry we'll cover everything from absolute beginning. The only thing you need to know is C# programming language.
By getting this course, you can be rest assured that the course is carefully thought out and edited. And I'm always happy to make the helpful content for the students.
So by the end of the course, you'll completely understand:
How to Setup the Development Environment For Building Rest Api's
Create Restful Api's via Entity Framework Code First Approach
Create Api Documentation
Implement Status Codes
How to add the Routing & Custom Methods
Adding Migrations in Rest Api's
Data Seeding in Rest Api's
Adding Content Negotiation
Implement Validation in Rest Api's
Implement Pagination in Rest Api's
Rest Api's File Uploading with Azure Blob Storage
Create SQL Database on Microsoft Azure
Deploy Web Api on Microsoft Azure
Create A Real World Music Api From Scratch to End (No Copy paste code I'll explain you each and every single line of code so that you can create a complete Real World Api's in .Net Core happily)
A valuable Skill at Your Fingertips Learning the Rest Api 's put a powerful and attractive look in your Resume .Both C# and ASP.NET are open source, easy to learn and has an excellent Microsoft support.
Jobs in Rest Api's are plentiful, and being able to learn the Web Api 's with a professional way will give you a strong background to more easily pick up other challenging platforms and create the Rest Api's for other platforms.
Content and Overview Suitable for C# programmers, Asp.Net Developers , Software engineers or Backend Developers. Through this course , you’ll create a Restful Api's and establish a strong understanding of the concept behind Restful Api's.
What am I going to get from this course?
Learn Rest Api's from a Microsoft (MVP), Xamarin MVP from your own desk.
Create Restful Api in ASP.NET Core 5.0 with me.
Suitable for intermediate & advanced programmers, C# Asp.Net developers and ideal for users who learn faster when shown.
Visual training method, with Hands on Lab Practice and coding.
Breaks even the most complex scenarios down into simplistic steps.
Also you'll be able to learn all the Advanced concepts of Rest Api's like Validations, Paging , Api Documentation , Deployment , Blob Storage etc.
After this course you can also apply those Rest Api's concepts in some other programming language.