This command is used to generate RESTful API skeleton.
Usage:
art api [options]
Options:
-h, [--help] # Print this screen
-d, [--dry] # Dry run but do not make any changes
-f, [--force] # Overwrite files that already exist
-s, [--skip] # Skip files that already exist
# If -s and -f are both provided, -f will be enabled
-q, [--quiet] # Suppress status output
-l, [--list] # List all defined APIs
-m, [--mode] # Specify the WebAPI mode, the default is "restful"
-v, [--ver] # Specify the WebAPI version, omit it to auto detect
-c, [--create] # Create WebAPI
Example:
art api -c
art api -c -v v3
Please see RESTful API for more details.