Discovering the API¶
obi schema searches the OpenAPI contract bundled with the installed CLI. It does not require
authentication or network access.
List API areas¶
This lists the available OpenAPI tags and the number of operations under each one.
Search operations¶
--grep searches operation paths, IDs, summaries, tags, parameter names, enum values, referenced
schema names, and schema property names.
Use --tag when you already know the API area. Both filters can be combined.
Inspect an operation¶
The result includes:
- HTTP method, path, operation ID, tags, and summary
- path, query, header, and cookie parameters
- request-body schemas
- response schemas
- complete definitions for referenced component schemas
If a path supports only one method, -X is optional. If it supports several, pass -X to select
one:
You can also pass an operation ID or a concrete path matching an OpenAPI template:
obi schema show Modify_information_about_the_user_v1_user_patch
obi schema show /v1/stats/activity/weekly
Machine-readable output¶
All schema commands support --json and -o:
The contract is a snapshot shipped with each obi release. Upgrade obitrain to get a newer
snapshot when the API changes.