Tutorial : Create A WEB API with ASP.NET Core | Part 1

preview_player
Показать описание
How to create Web API Using ASP .NET Core 6.

Рекомендации по теме
Комментарии
Автор

Thank you very much for this. One of the best no-nonsense explanations.

nmarks
Автор

great. can you also do sample gRPC with crud for .NET MAUI

idwerke
Автор

How do you check if a student exist if your class StudentService was not in the API ? my API project is separate totally from my main project, how would you do it then?

renaudgg
Автор

Just wanted to point out something. I might be wrong about this, so I apologise in advance if I am, but it appears that a vital line of code seems not to have found it's way into the final cut of the video. The line I mean is:

*_builder.Services.AddScoped<IStudentService, StudentService>();_*

Which I believe should be inserted into Program.cs.

I followed your video (for which I am very grateful) closely but couldn't get the API to work as I kept getting the the following error message:

Unable to resolve service for type while attempting to activate

Once I added *_builder.Services.AddScoped<IStudentService, StudentService>();_* into Program.cs it worked first time.

Admittedly I didn't follow your video exactly. Among other things, I created my table in SQL server with column definitions by myself so I didn't have to do any of the migrations. But watching you do it was very valuable. 👍

nmarks
Автор

Why do you need to have models in two places? In Data and Models? Can't you create objects based on user's input by using the models from Data folder?

danielcalota
Автор

Wonderful! Sir If you could make a MAUI UI consume the API!
Or why not a very basic Bank API with Withdraw, Deposit and Balance, consumed by aa MAUI bank App?
That would be a fantastic idea!

Azm
Автор

Thank u but How Create WEB API many to many relationship

ahmadabdulkader
Автор

Can you please provide github repo for the same?

SreejithRajendranownthis
Автор

thank u but how solve response status is 500

ahmadabdulkader
Автор

The certificate chain was issued by an authority that is not trusted.

AbachiriProduction
visit shbcf.ru