`homeboy api`
Synopsis
sh
homeboy api <project_id> <COMMAND>Description
Make HTTP requests to a project’s configured API.
This command uses the project’s API configuration (projects/<project_id>.json) and any stored authentication (see homeboy auth).
Subcommands
get
sh
homeboy api <project_id> get <endpoint>post
sh
homeboy api <project_id> post <endpoint> --apply [--body <json>] [--form <key=value>]...Mutating requests require --apply.
put
sh
homeboy api <project_id> put <endpoint> --apply [--body <json>] [--form <key=value>]...Mutating requests require --apply.
patch
sh
homeboy api <project_id> patch <endpoint> --apply [--body <json>] [--form <key=value>]...Mutating requests require --apply.
delete
sh
homeboy api <project_id> delete <endpoint> --applyMutating requests require --apply.
Notes
<endpoint>is passed through as provided (example:/wp/v2/posts).--bodyis parsed as JSON. If parsing fails, the request is sent withbody: null.--form key=valuemay be repeated forpost,put, andpatch; form fields take precedence over--body.- If
--bodyand--formare omitted,bodyisnull. getis allowed without--apply;post,put,patch, anddeleterequire--applybefore Homeboy sends the request.
Output
JSON output is wrapped in the global envelope. data is the homeboy::api::ApiOutput struct.