Mid REST API

Can the PUT method be used to create a resource in REST APIs?

Yes. If the resource does not exist, PUT can create it at the specified URI. Example:

πŸ‘‰ PUT /users/100 β†’ If user 100 doesn’t exist, it will be created.

More from ASP.NET Core Web API Tutorial

All questions for this course