Skip to content

Commit

Permalink
[improve][doc] Add info for health check CMD and fix incorrect REST A…
Browse files Browse the repository at this point in the history
…PI links (apache#16267)
  • Loading branch information
momo-jun authored Jul 7, 2022
1 parent 76646cf commit cd9eaca
Show file tree
Hide file tree
Showing 7 changed files with 131 additions and 246 deletions.
2 changes: 1 addition & 1 deletion site2/docs/admin-api-brokers.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ BrokerInfo(serviceUrl=broker1.use.org.com:8080)
</TabItem>
<TabItem value="REST API">
{@inject: endpoint|GET|/admin/v2/brokers/leaderBroker?version=@pulsar:version_number@}
{@inject: endpoint|GET|/admin/v2/brokers/leaderBroker|operation/getLeaderBroker?version=@pulsar:version_number@}
</TabItem>
<TabItem value="Java">
Expand Down
36 changes: 18 additions & 18 deletions site2/docs/admin-api-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ $ pulsar-admin functions create \
</TabItem>
<TabItem value="REST API">
{@inject: endpoint|POST|/admin/v3/functions/:tenant/:namespace/:functionName?version=@pulsar:version_number@}
{@inject: endpoint|POST|/admin/v3/functions/:tenant/:namespace/:functionName|operation/registerFunction?version=@pulsar:version_number@}
</TabItem>
<TabItem value="Java Admin API">
Expand Down Expand Up @@ -124,7 +124,7 @@ $ pulsar-admin functions update \
</TabItem>
<TabItem value="REST API">
{@inject: endpoint|PUT|/admin/v3/functions/:tenant/:namespace/:functionName?version=@pulsar:version_number@}
{@inject: endpoint|PUT|/admin/v3/functions/:tenant/:namespace/:functionName|operation/updateFunction?version=@pulsar:version_number@}
</TabItem>
<TabItem value="Java Admin API">
Expand Down Expand Up @@ -174,7 +174,7 @@ $ pulsar-admin functions start \
</TabItem>
<TabItem value="REST API">
{@inject: endpoint|POST|/admin/v3/functions/:tenant/:namespace/:functionName/:instanceId/start?version=@pulsar:version_number@}
{@inject: endpoint|POST|/admin/v3/functions/:tenant/:namespace/:functionName/:instanceId/start|operation/startFunction?version=@pulsar:version_number@}
</TabItem>
<TabItem value="Java Admin API">
Expand Down Expand Up @@ -216,7 +216,7 @@ $ pulsar-admin functions start \
</TabItem>
<TabItem value="REST API">
{@inject: endpoint|POST|/admin/v3/functions/:tenant/:namespace/:functionName/start?version=@pulsar:version_number@}
{@inject: endpoint|POST|/admin/v3/functions/:tenant/:namespace/:functionName/start|operation/startFunction?version=@pulsar:version_number@}
</TabItem>
<TabItem value="Java Admin API">
Expand Down Expand Up @@ -259,7 +259,7 @@ $ pulsar-admin functions stop \
</TabItem>
<TabItem value="REST API">
{@inject: endpoint|POST|/admin/v3/functions/:tenant/:namespace/:functionName/:instanceId/stop?version=@pulsar:version_number@}
{@inject: endpoint|POST|/admin/v3/functions/:tenant/:namespace/:functionName/:instanceId/stop|operation/stopFunction?version=@pulsar:version_number@}
</TabItem>
<TabItem value="Java Admin API">
Expand Down Expand Up @@ -301,7 +301,7 @@ $ pulsar-admin functions stop \
</TabItem>
<TabItem value="REST API">
{@inject: endpoint|POST|/admin/v3/functions/:tenant/:namespace/:functionName/stop?version=@pulsar:version_number@}
{@inject: endpoint|POST|/admin/v3/functions/:tenant/:namespace/:functionName/stop|operation/stopFunction?version=@pulsar:version_number@}
</TabItem>
<TabItem value="Java Admin API">
Expand Down Expand Up @@ -344,7 +344,7 @@ $ pulsar-admin functions restart \
</TabItem>
<TabItem value="REST API">
{@inject: endpoint|POST|/admin/v3/functions/:tenant/:namespace/:functionName/:instanceId/restart?version=@pulsar:version_number@}
{@inject: endpoint|POST|/admin/v3/functions/:tenant/:namespace/:functionName/:instanceId/restart|operation/restartFunction?version=@pulsar:version_number@}
</TabItem>
<TabItem value="Java Admin API">
Expand Down Expand Up @@ -386,7 +386,7 @@ $ pulsar-admin functions restart \
</TabItem>
<TabItem value="REST API">
{@inject: endpoint|POST|/admin/v3/functions/:tenant/:namespace/:functionName/restart?version=@pulsar:version_number@}
{@inject: endpoint|POST|/admin/v3/functions/:tenant/:namespace/:functionName/restart|operation/restartFunction?version=@pulsar:version_number@}
</TabItem>
<TabItem value="Java Admin API">
Expand Down Expand Up @@ -427,7 +427,7 @@ $ pulsar-admin functions list \
</TabItem>
<TabItem value="REST API">
{@inject: endpoint|GET|/admin/v3/functions/:tenant/:namespace?version=@pulsar:version_number@}
{@inject: endpoint|GET|/admin/v3/functions/:tenant/:namespace|operation/listFunctions?version=@pulsar:version_number@}
</TabItem>
<TabItem value="Java Admin API">
Expand Down Expand Up @@ -469,7 +469,7 @@ $ pulsar-admin functions delete \
</TabItem>
<TabItem value="REST API">
{@inject: endpoint|DELETE|/admin/v3/functions/:tenant/:namespace/:functionName?version=@pulsar:version_number@}
{@inject: endpoint|DELETE|/admin/v3/functions/:tenant/:namespace/:functionName|operation/deregisterFunction?version=@pulsar:version_number@}
</TabItem>
<TabItem value="Java Admin API">
Expand Down Expand Up @@ -511,7 +511,7 @@ $ pulsar-admin functions get \
</TabItem>
<TabItem value="REST API">
{@inject: endpoint|GET|/admin/v3/functions/:tenant/:namespace/:functionName?version=@pulsar:version_number@}
{@inject: endpoint|GET|/admin/v3/functions/:tenant/:namespace/:functionName|operation/getFunctionInfo?version=@pulsar:version_number@}
</TabItem>
<TabItem value="Java Admin API">
Expand Down Expand Up @@ -553,7 +553,7 @@ $ pulsar-admin functions status \
</TabItem>
<TabItem value="REST API">
{@inject: endpoint|GET|/admin/v3/functions/:tenant/:namespace/:functionName/:instanceId/status?version=@pulsar:version_number@}
{@inject: endpoint|GET|/admin/v3/functions/:tenant/:namespace/:functionName/:instanceId/status|operation/getFunctionInstanceStatus?version=@pulsar:version_number@}
</TabItem>
<TabItem value="Java Admin API">
Expand Down Expand Up @@ -595,7 +595,7 @@ $ pulsar-admin functions status \
</TabItem>
<TabItem value="REST API">
{@inject: endpoint|GET|/admin/v3/functions/:tenant/:namespace/:functionName/status?version=@pulsar:version_number@}
{@inject: endpoint|GET|/admin/v3/functions/:tenant/:namespace/:functionName/status|operation/getFunctionStatus?version=@pulsar:version_number@}
</TabItem>
<TabItem value="Java Admin API">
Expand Down Expand Up @@ -637,7 +637,7 @@ $ pulsar-admin functions stats \
</TabItem>
<TabItem value="REST API">
{@inject: endpoint|GET|/admin/v3/functions/:tenant/:namespace/:functionName/:instanceId/stats?version=@pulsar:version_number@}
{@inject: endpoint|GET|/admin/v3/functions/:tenant/:namespace/:functionName/:instanceId/stats|operation/getFunctionInstanceStats?version=@pulsar:version_number@}
</TabItem>
<TabItem value="Java Admin API">
Expand Down Expand Up @@ -679,7 +679,7 @@ $ pulsar-admin functions stats \
</TabItem>
<TabItem value="REST API">
{@inject: endpoint|GET|/admin/v3/functions/:tenant/:namespace/:functionName/stats?version=@pulsar:version_number@}
{@inject: endpoint|GET|/admin/v3/functions/:tenant/:namespace/:functionName/stats|operation/getFunctionStats?version=@pulsar:version_number@}
</TabItem>
<TabItem value="Java Admin API">
Expand Down Expand Up @@ -724,7 +724,7 @@ $ pulsar-admin functions trigger \
</TabItem>
<TabItem value="REST API">
{@inject: endpoint|POST|/admin/v3/functions/:tenant/:namespace/:functionName/trigger?version=@pulsar:version_number@}
{@inject: endpoint|POST|/admin/v3/functions/:tenant/:namespace/:functionName/trigger|operation/triggerFunction?version=@pulsar:version_number@}
</TabItem>
<TabItem value="Java Admin API">
Expand Down Expand Up @@ -767,7 +767,7 @@ $ pulsar-admin functions putstate \
</TabItem>
<TabItem value="REST API">
{@inject: endpoint|POST|/admin/v3/functions/:tenant/:namespace/:functionName/state/:key?version=@pulsar:version_number@}
{@inject: endpoint|POST|/admin/v3/functions/:tenant/:namespace/:functionName/state/:key|operation/putFunctionState?version=@pulsar:version_number@}
</TabItem>
<TabItem value="Java Admin API">
Expand Down Expand Up @@ -812,7 +812,7 @@ $ pulsar-admin functions querystate \
</TabItem>
<TabItem value="REST API">
{@inject: endpoint|GET|/admin/v3/functions/:tenant/:namespace/:functionName/state/:key?version=@pulsar:version_number@}
{@inject: endpoint|GET|/admin/v3/functions/:tenant/:namespace/:functionName/state/:key|operation/getFunctionState?version=@pulsar:version_number@}
</TabItem>
<TabItem value="Java Admin API">
Expand Down
Loading

0 comments on commit cd9eaca

Please sign in to comment.