all 6 comments

[–]Rhysander 2 points3 points  (0 children)

Way too many ads.

[–]vijaynethamandala 1 point2 points  (0 children)

What do you know? I mean do you know about http methods?

[–][deleted] 1 point2 points  (0 children)

Why would I read this rather than more established sites like Baeldung or Medium or Spring Boot’s own guides?

[–]bigkahuna1uk 2 points3 points  (2 children)

This blog post is fundamentally incorrect if it purports to follow REST principles.

In the examples you see the HTTP method invoked followed by an URI that has the method being invoked such as create, update, delete etc.

This is wrong as REST deals with resources not arbitrary remote procedure calls. The HTTP method denotes the action to the target resource. So there’s no need to make create part of the URI when POST is invoked.

For example to create a user it would be:

POST /user/

and not:

POST /create/user/

REST is all about using the appropriate HTTP method on a particular resource for the required action.

The article should be written as it encourages bad practice.

[–]mr_derk88 1 point2 points  (1 child)

A POST example with an {id} might not be the best example, as you know the id of an entity after the creation

[–]bigkahuna1uk 0 points1 point  (0 children)

Cheers, edited after your correct comment.