Return-Path: X-Original-To: apmail-storm-dev-archive@minotaur.apache.org Delivered-To: apmail-storm-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BBDAB11E57 for ; Thu, 24 Jul 2014 00:03:06 +0000 (UTC) Received: (qmail 12496 invoked by uid 500); 24 Jul 2014 00:03:06 -0000 Delivered-To: apmail-storm-dev-archive@storm.apache.org Received: (qmail 12449 invoked by uid 500); 24 Jul 2014 00:03:06 -0000 Mailing-List: contact dev-help@storm.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@storm.incubator.apache.org Delivered-To: mailing list dev@storm.incubator.apache.org Received: (qmail 12436 invoked by uid 99); 24 Jul 2014 00:03:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Jul 2014 00:03:06 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 24 Jul 2014 00:03:05 +0000 Received: (qmail 5225 invoked by uid 99); 24 Jul 2014 00:02:44 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Jul 2014 00:02:44 +0000 Date: Thu, 24 Jul 2014 00:02:44 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: dev@storm.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (STORM-361) Add JSON-P support to Storm UI API MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/STORM-361?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14072593#comment-14072593 ] ASF GitHub Bot commented on STORM-361: -------------------------------------- Github user ptgoetz commented on the pull request: https://github.com/apache/incubator-storm/pull/159#issuecomment-49952466 Does this combine multiple pull requests? If so, can you point them out? > Add JSON-P support to Storm UI API > ---------------------------------- > > Key: STORM-361 > URL: https://issues.apache.org/jira/browse/STORM-361 > Project: Apache Storm (Incubating) > Issue Type: Improvement > Affects Versions: 0.9.2-incubating > Reporter: Mike Sukmanowsky > Assignee: Sriharsha Chintalapani > Priority: Minor > Labels: api, ui > > The recent API that is being released in Storm UI with 0.9.2 is great, but it'd be useful if the API supported an optional {{?callback}} parameter that would provide a wrapped [JSON-P response|http://json-p.org/] for all endpoints. > *Example:* > {code} > GET https://my-storm-head.cogtree.com/api/v1/cluster/summary?callback=myFunction > myFunction({"stormVersion":"0.9.2-incubating","nimbusUptime":"4m 55s","supervisors":2,"slotsTotal":32,"slotsUsed":0,"slotsFree":32,"executorsTotal":0,"tasksTotal":0}); > {code} > This would allow users to write clients similar to [elasticsearch-head|https://github.com/mobz/elasticsearch-head] (which I was hoping to build) where they could use a single UI to manage multiple Storm environments. > Having a JSON-P {{?callback}} param would allow clients to get around browsers enforcing same-origin policies. > The JSON-P site has examples of valid callback parameters: > {code} > functionName({JSON}); > obj.functionName({JSON}); > obj["function-name"]({JSON}); > {code} -- This message was sent by Atlassian JIRA (v6.2#6252)