Skip to content

Commit

Permalink
[FLINK-17562][rest] Use correct headers for POST JobPlanHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
SteNicholas authored and zentol committed May 13, 2020
1 parent 64c732f commit 83d82c1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions docs/_includes/generated/rest_v1_dispatcher.html
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@
<td class="text-left" colspan="2"><h5><strong>/jars/:jarid/plan</strong></h5></td>
</tr>
<tr>
<td class="text-left" style="width: 20%">Verb: <code>GET</code></td>
<td class="text-left" style="width: 20%">Verb: <code>POST</code></td>
<td class="text-left">Response code: <code>200 OK</code></td>
</tr>
<tr>
Expand Down Expand Up @@ -579,8 +579,8 @@
</tr>
<tr>
<td colspan="2">
<button data-toggle="collapse" data-target="#550027726">Request</button>
<div id="550027726" class="collapse">
<button data-toggle="collapse" data-target="#552419128">Request</button>
<div id="552419128" class="collapse">
<pre>
<code>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public WebSubmissionExtension(
webSubmissionHandlers.add(Tuple2.of(JarRunHeaders.getInstance(), jarRunHandler));
webSubmissionHandlers.add(Tuple2.of(JarDeleteHeaders.getInstance(), jarDeleteHandler));
webSubmissionHandlers.add(Tuple2.of(JarPlanGetHeaders.getInstance(), jarPlanHandler));
webSubmissionHandlers.add(Tuple2.of(JarPlanGetHeaders.getInstance(), postJarPlanHandler));
webSubmissionHandlers.add(Tuple2.of(JarPlanPostHeaders.getInstance(), postJarPlanHandler));
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion flink-runtime-web/src/test/resources/rest_api_v1.snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@
}
}, {
"url" : "/jars/:jarid/plan",
"method" : "GET",
"method" : "POST",
"status-code" : "200 OK",
"file-upload" : false,
"path-parameters" : {
Expand Down

0 comments on commit 83d82c1

Please sign in to comment.