DEV Community

David Amour
David Amour

Posted on

REST for non CRUD

If I have a React site with a .net REST backend, is t acceptable practice to use REST for non CRUD operations such as sending an email?

Top comments (2)

Collapse
 
yavuztor profile image
Yavuz Tor

It is acceptable to create REST api for resources that you don't save to disk, but operate on. The keyword is the "resource" here. You will need to conceptualize it as a resource. For the email example, you can have a POST action for an "email" resource.

Collapse
 
thedaveamour profile image
David Amour

I was thinking the same thing. Thanks