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

Manikandan R commented on YUNIKORN-418:
---------------------------------------

Thanks everyone for reviews.

True, our intention is to design as close as based on REST principles. Based on 
principles, "POST" method is meant to create the object and "PUT" is for 
update. In addition, there is no separate method/verb only for validation.

In our case, we don't have a config creation case for now. But, we still we can 
go with "POST" but with query param something like dry_run, otherwise it gives 
the impression for users that it will do the actual creation. Since we don't 
want to do actual object creation, exposing param like "dry_run" clearly 
indicates the purpose. Will put up a patch shortly.

> Add "config" REST API
> ---------------------
>
>                 Key: YUNIKORN-418
>                 URL: https://issues.apache.org/jira/browse/YUNIKORN-418
>             Project: Apache YuniKorn
>          Issue Type: Sub-task
>            Reporter: Manikandan R
>            Assignee: Manikandan R
>            Priority: Major
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to