On Mon, Apr 25, 2016 at 6:48 PM, Manuranga Perera <[email protected]> wrote:
> DELETE is verb to un-link resources. > Eg: DELETE /user/starred/manu/product-appm [1] will un-link me form appM. > But it doesn't mean AppM repo will be deleted. > See the url here. That make sense it deletes the starred with manu/product-appm. With the rest, if we define the resources named well, that API is intuitive and easy to use. If we defined the resources naming poorly, that same API can feel awkward and be difficult to use and understand. We need to consider http verb with the resource naming when creating the rest api. > > [1] https://developer.github.com/v3/activity/starring/#unstar-a-repository > > On Mon, Apr 25, 2016 at 6:55 AM, SajithAR Ariyarathna <[email protected]> > wrote: > >> [+ Frank] >> >> On Mon, Apr 25, 2016 at 11:49 AM, SajithAR Ariyarathna <[email protected] >> > wrote: >> >>> ... "uninstall" is NOT a REST, even though it looks like REST. >>> >>> "uninstall" does not looks like REST. It looks like RPC. >>> >>> On Mon, Apr 25, 2016 at 10:43 AM, Ruwan Abeykoon <[email protected]> >>> wrote: >>> >>>> I disagree Manu, The point is this is not "DELETE" action on a >>>> "resource". This is an action to remove a link between two resources. But >>>> one oth that "Resource" is just a virtual resource(which is not under >>>> control of the system). So I think having DELETE HTTP verb is wrong in >>>> this. >>>> >>>> Cheer, >>>> Ruwan >>>> >>>> On Mon, Apr 25, 2016 at 10:36 AM, Manuranga Perera <[email protected]> >>>> wrote: >>>> >>>>> I think, even if it's not immediately affected (asynchronous), you >>>>> still have to use the correct HTTP verb. >>>>> >>>>> _______________________________________________ >>>>> Architecture mailing list >>>>> [email protected] >>>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture >>>>> >>>>> >>>> >>>> >>>> -- >>>> >>>> *Ruwan Abeykoon* >>>> *Architect,* >>>> *WSO2, Inc. http://wso2.com <http://wso2.com/> * >>>> *lean.enterprise.middleware.* >>>> >>>> email: [email protected] >>>> >>>> _______________________________________________ >>>> Architecture mailing list >>>> [email protected] >>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture >>>> >>>> >>> >>> >>> -- >>> Sajith Janaprasad Ariyarathna >>> Software Engineer; WSO2, Inc.; http://wso2.com/ >>> >> >> >> >> -- >> Sajith Janaprasad Ariyarathna >> Software Engineer; WSO2, Inc.; http://wso2.com/ >> >> _______________________________________________ >> Architecture mailing list >> [email protected] >> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture >> >> > > > -- > With regards, > *Manu*ranga Perera. > > phone : 071 7 70 20 50 > mail : [email protected] > > _______________________________________________ > Architecture mailing list > [email protected] > https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture > > -- Gayan Gunarathne Technical Lead, WSO2 Inc. (http://wso2.com) Committer & PMC Member, Apache Stratos email : [email protected] | mobile : +94 775030545 <%2B94%20766819985>
_______________________________________________ Architecture mailing list [email protected] https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
