annon_ktl v0.2.7 Annon.Controller.Subcommands.APIs

Prints all APIs and routes they lead to.

List of subcommands:

help Prints help about routes command.

Filtering output:

—with-plugin=’proxy’ - Print only endpoints with enabled proxy plugin. This filter will load plugins. —without-plugin=’acl’ - Print only endpoints without enabled acl plugin. This filter will load plugins. —with-method=PUT - Print only endpoints that expose listed HTTP verbs.

All filters can be used multiple times.

Other options:

-p, —load_plugins - Load and display plugins in output. Required to see API route. -o, —output=json|raw - Output in selected format.

To see list of global options use “annonktl help”.

Examples:

annonktl routes \

--without-plugin auth \
--with-method POST - Print all endpoints, which allow to create resources without authorization.

annonktl routes \

--with-plugin cors - Print all endpoints, which can be called directly from browser.

Link to this section Summary

Link to this section Functions

Link to this function run_subcommand(argv, global_opts, subcommand_args)