[
https://issues.apache.org/jira/browse/AMBARI-14750?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ajit Kumar updated AMBARI-14750:
--------------------------------
Summary: Provide CRUD API support for settings (was: Update CRUD API
support for settings)
> Provide CRUD API support for settings
> -------------------------------------
>
> Key: AMBARI-14750
> URL: https://issues.apache.org/jira/browse/AMBARI-14750
> Project: Ambari
> Issue Type: Task
> Reporter: Ajit Kumar
> Assignee: Ajit Kumar
>
> Introduce a new API for *admin-settings*
> {code}
> api/v1/admin-settings
> {code}
> There can be several class of system wide admin settings - motd etc. These
> are like configurations - basically named property bags. It doesn't need
> version support.
> *CRUD*
> * create a new entry
> {code}
> POST http://c6401.ambari.apache.org:8080/api/v1/admin-settings -d
> '{ "AdminSettings" : {
> "content" : "{test_content1 : test_value1}",
> "name" : "motd1",
> "setting_type" : "ambari-server",
> "updated_by" : "admin"
> }
> }'
> {code}
> * read any entry
> {code}
> GET http://c6401.ambari.apache.org:8080/api/v1/admin-settings/motd1
> {
> "href" : "http://c6401.ambari.apache.org:8080/api/v1/admin-settings/motd1",
> "AdminSettings" : {
> "content" : "{test_content1 : test_value1}",
> "name" : "motd1",
> "setting_type" : "ambari-server",
> "update_timestamp" : 1453315409437,
> "updated_by" : "admin"
> }
> }
> {code}
> * update - update an entry
> {code}
> PUT http://c6401.ambari.apache.org:8080/api/v1/admin-settings/motd -d '{
> "AdminSettings" : {
> "content" : "{test_content1 : test_value1}",
> "setting_type" : "ambari-server",
> "updated_by" : "admin"
> }
> }'
> {code}
> * delete an entry
> {code}
> DELETE http://c6401.ambari.apache.org:8080/api/v1/admin-settings/motd
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)