recipes-with-angular-js icon indicating copy to clipboard operation
recipes-with-angular-js copied to clipboard

Post as entity name

Open floralsystems opened this issue 10 years ago • 0 comments

In the following article:

http://fdietz.github.io/recipes-with-angular-js/consuming-external-services/consuming-restful-apis.html

The usage of 'Post' as the entity creates ambiguity since it's also the name of a popular HTTP verb. Examples:

(example: HTTP GET /api/posts/1): Post.delete({ id: id }); (example: HTTP POST /api/posts):

To a beginner learning about this topic for the first time, this can really make confusing an otherwise well written article.

Thanks!

floralsystems avatar Jul 09 '14 19:07 floralsystems