[ 
https://issues.apache.org/jira/browse/MYRIAD-175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15026026#comment-15026026
 ] 

Todd Richmond commented on MYRIAD-175:
--------------------------------------

for REST APIs, POST is normally used to ADD a resource to the system. PUT is 
used to modifying the state of an existing resource and so could be appropriate 
here. GET implies fetching a read-only resource

If you are truly removing an active resource from the system, it should be a 
DELETE

> Change Destroy myriad REST api method from 'GET' to 'POST/PUT'.
> ---------------------------------------------------------------
>
>                 Key: MYRIAD-175
>                 URL: https://issues.apache.org/jira/browse/MYRIAD-175
>             Project: Myriad
>          Issue Type: Improvement
>            Reporter: Sarjeet Singh
>            Priority: Trivial
>
> This is just trivial, but this can be fixed easily. Haven't looked at the 
> code, but this should be fairly straight forward as we don't pass any 
> parameter for shutdown myriad endpoint, except call on the 
> /api/framework/shutdown/framework endpoint.
> Currently, shutdown myriad api REST supported method is 'GET'. We should 
> change it to either 'PUT' or maybe, POST.
> Any suggestion or oppose on this?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to