Generally,the CRUD operation url pattern for model can be like this(Suppose the Model is Post):

```
new: /posts/new(get)
create:/posts/(post)
edit:/posts/edit(get)
update:/posts/1(put)
get:/posts/1(get)

```

However if there is a nested model "Comment".

And the association of the "Post" and "Comment" is one-many.

So what should the CURD operation url pattern like for comments ?

```
new: /posts/1/comments/new   or /comments/new
create:?
edit:?
update:?
.......

```

What is the best practice?

---

Update:

It seems that the url for comment should be like this:

```
Get one comment for one post: /posts/1/comments/1

create: /posts/1/comments

update: /posts/1/comments/1

delete: /posts/1/comments/1

```

Now I am confused with the update and delete operation.

For update and delete: `/posts/1/comments/1`

SInce the comment id is specified,so I wonder if the `/posts/1` inside the url is necessary?