ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-14899) UI part of rename Admin Setting API
Date Wed, 03 Feb 2016 19:48:40 GMT

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

Hudson commented on AMBARI-14899:
---------------------------------

FAILURE: Integrated in Ambari-trunk-Commit #4269 (See [https://builds.apache.org/job/Ambari-trunk-Commit/4269/])
AMBARI-14899. UI part of rename Admin Setting API (alexantonenko) (hiveww: [http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=079a5b3b129eb217cbded5b0cc4859a0a62db86e])
* ambari-admin/src/main/resources/ui/admin-web/app/scripts/controllers/loginActivities/LoginMessageMainCtrl.js
* ambari-web/app/utils/ajax/ajax.js
* ambari-web/app/assets/data/settings/motd.json
* ambari-web/app/router.js


> UI part of rename Admin Setting API
> -----------------------------------
>
>                 Key: AMBARI-14899
>                 URL: https://issues.apache.org/jira/browse/AMBARI-14899
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-web
>    Affects Versions: 2.4.0
>            Reporter: Antonenko Alexander
>            Assignee: Antonenko Alexander
>             Fix For: 2.4.0
>
>         Attachments: AMBARI-14899.patch
>
>
> Currently API endpoint is /admin-settings. Change it to /settings and all modelling accordingly.
> POST
> {code}
> curl -u admin:admin  -H 'X-Requested-By: ambari' -X POST  http://SERVER-NAME:8080/api/v1/settings
-d '{"Settings" : {
>         "content" : "{test_content : test_value}",
>         "name" : "motd",
>         "setting_type" : "ambari-server"
>       }}'
> Response:
> {
>   "resources" : [
>     {
>       "href" : "http://SERVER-NAME:8080/api/v1/settings/motd",
>       "Settings" : {
>         "name" : "motd"
>       }
>     }
>   ]
> }
> {code}
> GET
> {code}
> curl -u admin:admin  -H 'X-Requested-By: ambari' -X GET  http://SERVER-NAME:8080/api/v1/settings/motd
> Response:
> {
>   "href" : "http://SERVER-NAME:8080/api/v1/settings/motd",
>   "Settings" : {
>     "content" : "{test_content : test_value}",
>     "name" : "motd",
>     "setting_type" : "ambari-server",
>     "update_timestamp" : 1454102699484,
>     "updated_by" : "admin"
>   }
> }
> {code}
> PUT
> {code}
> curl -u admin:admin  -H 'X-Requested-By: ambari' -X PUT  http://SERVER-NAME:8080/api/v1/settings/motd
-d '{"Settings" : {
>         "content" : "{test_content1 : test_value1}",
>         "setting_type" : "ambari-server"
>       }}'
> {code}
> LIST
> {code}
> curl -u admin:admin  -H 'X-Requested-By: ambari' -X GET  http://SERVER-NAME:8080/api/v1/settings
> Response:
> {
>   "href" : "http://SERVER-NAME:8080/api/v1/settings",
>   "items" : [
>     {
>       "href" : "http://SERVER-NAME:8080/api/v1/settings/motd",
>       "Settings" : {
>         "name" : "motd"
>       }
>     }
>   ]
> }
> {code}
> DELETE
> {code}
> curl -u admin:admin  -H 'X-Requested-By: ambari' -X DELETE  http://SERVER-NAME:8080/api/v1/settings/motd
> {code}



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

Mime
View raw message