Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Child crud vs Child associaton
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
mike_s  
View profile  
 More options Oct 7 2012, 2:15 pm
From: mike_s <michael.sene...@gmail.com>
Date: Sun, 7 Oct 2012 11:15:14 -0700 (PDT)
Local: Sun, Oct 7 2012 2:15 pm
Subject: Child crud vs Child associaton

Hi all,

a design question on best handling for Link/unlink of two resources vs
removal of a child Item from a Parent list. For example difference between
adding removing from a Group  vs add/remove of a child record in former
case, there is no child delete - in the latter (the child record would be
deleted)

1)manage  CRUD for dependent Child record :      /parents/{id}/children/27  
GET

which is preferred?

a) /parents/{id}/children/27 DELETE      
b)  /children/27 DELETE    //  I prefer this one as i want to avoid a
runaway url:  /parents/{id}/children{id}/toys/{}

2) Link/unlink   (entity to a group (many_2_many)    
/group/{id}/children/27  GET

a) /group/{id}/children/27        PUT  or POST?
b)  /group/{id}/associate?child=27       POST?
c)  /group/{id}/associate/27 PUT ?

let me know your thoughts on the best practice for the linking case...

Cheers,
Mike


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.