[
https://issues.apache.org/jira/browse/STORM-615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14378467#comment-14378467
]
ASF GitHub Bot commented on STORM-615:
--------------------------------------
Github user Parth-Brahmbhatt commented on a diff in the pull request:
https://github.com/apache/storm/pull/464#discussion_r27066660
--- Diff: storm-core/src/clj/backtype/storm/ui/core.clj ---
@@ -982,7 +1019,23 @@
(.killTopologyWithOpts nimbus name options)
(log-message "Killing topology '" name "' with wait time: "
wait-time " secs")))
(json-response (topology-op-response id "kill") (m "callback")))
-
+ (POST "/api/v1/uploadTopology" [:as {:keys [cookies servlet-request]} id
& params]
+ (let [valid-tplg (validate-tplg-submit-params params)
+ valid (valid-tplg :valid)]
+ (log-message "valid topology " valid-tplg)
+ (if (= valid true)
+ (let [tplg-file-data (params :topologyJar)
+ tplg-temp-file (tplg-file-data :tempfile)
--- End diff --
I am guessing these things get set as part of multipart wrapper magic?
> Add REST API to upload topology
> -------------------------------
>
> Key: STORM-615
> URL: https://issues.apache.org/jira/browse/STORM-615
> Project: Apache Storm
> Issue Type: Bug
> Reporter: Sriharsha Chintalapani
> Assignee: Sriharsha Chintalapani
>
> Add REST api /api/v1/submitTopology to upload topology jars and config using
> REST api.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)