.NET 5 REST API Tutorial: 04 POST, PUT, DELETE

preview_player
Показать описание

This is the fourth part of my .NET 5 REST API Tutorial. You will learn:
• How to create resources with POST
• How to validate the values of DTO properties
• How to update resources with PUT
• How to delete resources with DELETE

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

Excelente Mister Casal una verdadera desde los andes peruanos

josbexerr
Автор

Julio I've been loving going through this series!
Will you cover pagination, such as "Cursor-Based" pagination as well as filtering/sorting with query parameters, such as lucene format?

RaabStephan
Автор

Man, Thank you! This tutorial is just great. You take in our hands e show everithing we need to know for create a good api. Thank you!

Drew
Автор

Excellent tutorial videos!
In this video Im'm just missing a way to implement more than one Post method for the same controller. Thanks anyway looking forward more of your content!

oscartorrandell
Автор

Thank you for sharing useful info. really glad to see this so I'm not familiar wth .net 5 but I do attend to practise it🙂

rakmy
Автор

Hi. Appreciate the videos. Can you let us know how many tutorials there will be in the .NET 5 REST API collection. Thanks

michaelroche
Автор

Compliments also from me for this tutorial series (only a suggestion, buy a mic pop shield - not bronze or platinum :-) - my subwoofer sometimes explodes!!)

only a question about UpdateItem... why creating a updatedItem object and not only modify existingItem.Name and existingItem.Price and passing this to repository method?

sandroriz
Автор

in UpdateItemDto both Name and Price are tagged as [Required] so i can't update only one of them, how can i make it work that it should accept if any of the fields is updated?

SirAtesh
Автор

You need to practice


try implementing "delete all" feature

soud
Автор

Hey, little question, if I add [Required] but don't add [Range(1, 1000)] in CreateItemDto I can still add new item. Item price will be just 0, why is that? Shouldn't require block this field? With name property it works just fine.

Great tutorial BTW I am looking forward for next episodes and more content from you! Liked and subscribed :)

puzzlesolver
Автор

How about error handling. Should we send complete error to the client.

manurasiriwardena
Автор

When I use a decimal such as 0.00001 as the lower bound and 9999 as the upper bound for the Range annotation in the Price parameter, then use 0 for the value, the 400 error message is "The field Price must be between 1E-05 and 9999." How do I display the decimal instead?

dasfahrer
Автор

Good tutorial, although I would like you to use a clearer example, such as a product order management, using Clean Architecture, repository pattern.

kmiiloberrio-dev
Автор

where is the data being stored since there is no database connection?

ebuobasintui
Автор

Julio, can you please pronounce PUBLIC correctly? Other than that, thank you very much for this tutorial.

hasanaliyev
welcome to shbcf.ru