From 07bb90d0e6166cda644af555870c483acd5c2390 Mon Sep 17 00:00:00 2001 From: zentol Date: Mon, 20 Aug 2018 17:30:53 +0200 Subject: [PATCH] [FLINK-10181][rest][docs] Add anchor links to rest requests --- docs/_includes/generated/rest_dispatcher.html | 96 +++++++++---------- .../flink/docs/rest/RestAPIDocGenerator.java | 2 +- 2 files changed, 49 insertions(+), 49 deletions(-) diff --git a/docs/_includes/generated/rest_dispatcher.html b/docs/_includes/generated/rest_dispatcher.html index 845dd8bebdf04..ec6989bc6a8f5 100644 --- a/docs/_includes/generated/rest_dispatcher.html +++ b/docs/_includes/generated/rest_dispatcher.html @@ -1,7 +1,7 @@ - + @@ -37,7 +37,7 @@
/cluster
/cluster
Verb: DELETE
- + @@ -93,7 +93,7 @@
/config
/config
Verb: GET
- + @@ -170,7 +170,7 @@
/jars
/jars
Verb: GET
- + @@ -219,7 +219,7 @@
/jars/upload
/jars/upload
Verb: POST
- + @@ -265,7 +265,7 @@
/jars/:jarid
/jars/:jarid
Verb: DELETE
- + @@ -331,7 +331,7 @@
/jars/:jarid/plan
/jars/:jarid/plan
Verb: GET
- + @@ -419,7 +419,7 @@
/jars/:jarid/run
/jars/:jarid/run
Verb: POST
- + @@ -469,7 +469,7 @@
/jobmanager/config
/jobmanager/config
Verb: GET
- + @@ -517,7 +517,7 @@
/jobmanager/metrics
/jobmanager/metrics
Verb: GET
- + @@ -574,7 +574,7 @@
/jobs
/jobs
Verb: GET
- + @@ -647,7 +647,7 @@
/jobs
/jobs
Verb: POST
- + @@ -697,7 +697,7 @@
/jobs/metrics
/jobs/metrics
Verb: GET
- + @@ -744,7 +744,7 @@
/jobs/overview
/jobs/overview
Verb: GET
- + @@ -902,7 +902,7 @@
/jobs/:jobid
/jobs/:jobid
Verb: GET
- + @@ -958,7 +958,7 @@
/jobs/:jobid
/jobs/:jobid
Verb: PATCH
- + @@ -1049,7 +1049,7 @@
/jobs/:jobid/accumulators
/jobs/:jobid/accumulators
Verb: GET
- + @@ -1352,7 +1352,7 @@
/jobs/:jobid/checkpoints
/jobs/:jobid/checkpoints
Verb: GET
- + @@ -1430,7 +1430,7 @@
/jobs/:jobid/checkpoints/config
/jobs/:jobid/checkpoints/config
Verb: GET
- + @@ -1547,7 +1547,7 @@
/jobs/:jobid/checkpoints/details/:checkpointid
/jobs/:jobid/checkpoints/details/:checkpointid
Verb: GET
- + @@ -1693,7 +1693,7 @@
/jobs/:jobid/checkpoints/details/:checkpointid/subtasks/:vertexid
/jobs/:jobid/checkpoints/details/:checkpointid/subtasks/:vertexid
Verb: GET
- + @@ -1741,7 +1741,7 @@
/jobs/:jobid/config
/jobs/:jobid/config
Verb: GET
- + @@ -1822,7 +1822,7 @@
/jobs/:jobid/exceptions
/jobs/:jobid/exceptions
Verb: GET
- + @@ -1888,7 +1888,7 @@
/jobs/:jobid/execution-result
/jobs/:jobid/execution-result
Verb: GET
- + @@ -1946,7 +1946,7 @@
/jobs/:jobid/metrics
/jobs/:jobid/metrics
Verb: GET
- + @@ -2000,7 +2000,7 @@
/jobs/:jobid/plan
/jobs/:jobid/plan
Verb: GET
- + @@ -2064,7 +2064,7 @@
/jobs/:jobid/rescaling
/jobs/:jobid/rescaling
Verb: PATCH
- + @@ -2130,7 +2130,7 @@
/jobs/:jobid/rescaling/:triggerid
/jobs/:jobid/rescaling/:triggerid
Verb: GET
- + @@ -2195,7 +2195,7 @@
/jobs/:jobid/savepoints
/jobs/:jobid/savepoints
Verb: POST
- + @@ -2261,7 +2261,7 @@
/jobs/:jobid/savepoints/:triggerid
/jobs/:jobid/savepoints/:triggerid
Verb: GET
- + @@ -2386,7 +2386,7 @@
/jobs/:jobid/vertices/:vertexid
/jobs/:jobid/vertices/:vertexid
Verb: GET
- + @@ -2459,7 +2459,7 @@
/jobs/:jobid/vertices/:vertexid/accumulators
/jobs/:jobid/vertices/:vertexid/accumulators
Verb: GET
- + @@ -2541,7 +2541,7 @@
/jobs/:jobid/vertices/:vertexid/backpressure
/jobs/:jobid/vertices/:vertexid/backpressure
Verb: GET
- + @@ -2600,7 +2600,7 @@
/jobs/:jobid/vertices/:vertexid/metrics
/jobs/:jobid/vertices/:vertexid/metrics
Verb: GET
- + @@ -2694,7 +2694,7 @@
/jobs/:jobid/vertices/:vertexid/subtasks/accumulators
/jobs/:jobid/vertices/:vertexid/subtasks/accumulators
Verb: GET
- + @@ -2755,7 +2755,7 @@
/jobs/:jobid/vertices/:vertexid/subtasks/metrics
/jobs/:jobid/vertices/:vertexid/subtasks/metrics
Verb: GET
- + @@ -2860,7 +2860,7 @@
/jobs/:jobid/vertices/:vertexid/subtasks/:subtaskindex
/jobs/:jobid/vertices/:vertexid/subtasks/:subtaskindex
Verb: GET
- + @@ -2966,7 +2966,7 @@
/jobs/:jobid/vertices/:vertexid/subtasks/:subtaskindex/attempts/:attempt
/jobs/:jobid/vertices/:vertexid/subtasks/:subtaskindex/attempts/:attempt
Verb: GET
- + @@ -3047,7 +3047,7 @@
/jobs/:jobid/vertices/:vertexid/subtasks/:subtaskindex/attempts/:attempt/accumulators
/jobs/:jobid/vertices/:vertexid/subtasks/:subtaskindex/attempts/:attempt/accumulators
Verb: GET
- + @@ -3107,7 +3107,7 @@
/jobs/:jobid/vertices/:vertexid/subtasks/:subtaskindex/metrics
/jobs/:jobid/vertices/:vertexid/subtasks/:subtaskindex/metrics
Verb: GET
- + @@ -3192,7 +3192,7 @@
/jobs/:jobid/vertices/:vertexid/subtasktimes
/jobs/:jobid/vertices/:vertexid/subtasktimes
Verb: GET
- + @@ -3314,7 +3314,7 @@
/jobs/:jobid/vertices/:vertexid/taskmanagers
/jobs/:jobid/vertices/:vertexid/taskmanagers
Verb: GET
- + @@ -3382,7 +3382,7 @@
/overview
/overview
Verb: GET
- + @@ -3434,7 +3434,7 @@
/savepoint-disposal
/savepoint-disposal
Verb: POST
- + @@ -3499,7 +3499,7 @@
/savepoint-disposal/:triggerid
/savepoint-disposal/:triggerid
Verb: GET
- + @@ -3585,7 +3585,7 @@
/taskmanagers
/taskmanagers
Verb: GET
- + @@ -3635,7 +3635,7 @@
/taskmanagers/metrics
/taskmanagers/metrics
Verb: GET
- + @@ -3788,7 +3788,7 @@
/taskmanagers/:taskmanagerid
/taskmanagers/:taskmanagerid
Verb: GET
- + diff --git a/flink-docs/src/main/java/org/apache/flink/docs/rest/RestAPIDocGenerator.java b/flink-docs/src/main/java/org/apache/flink/docs/rest/RestAPIDocGenerator.java index 2c8d187393a3a..82fdeec7cf6e9 100644 --- a/flink-docs/src/main/java/org/apache/flink/docs/rest/RestAPIDocGenerator.java +++ b/flink-docs/src/main/java/org/apache/flink/docs/rest/RestAPIDocGenerator.java @@ -152,7 +152,7 @@ private static String createHtmlEntry(MessageHeaders spec) { sb.append("
/taskmanagers/:taskmanagerid/metrics
/taskmanagers/:taskmanagerid/metrics
Verb: GET
\n"); sb.append(" \n"); sb.append(" \n"); - sb.append(" \n"); + sb.append(" \n"); sb.append(" \n"); sb.append(" \n"); sb.append(" \n");
" + spec.getTargetRestEndpointURL() + "
" + spec.getTargetRestEndpointURL() + "
Verb: " + spec.getHttpMethod() + "