作る · API

データから API を作る。

アプリに必要なテーブルを作れば、API が一緒に付いてきます。アプリがすでに使っているサインインの内側に入ります。

Clinic data model with generated REST endpoints for visits

Billing Ops のデータモデルが、生成された REST API のエンドポイントと OpenAPI スキーマに対応します。

仕組み

スキーマから生まれ、既定で範囲が絞られた API。

The API is off until you turn it on. Turn it on for a table and you get REST routes, MCP tools and an OpenAPI file. Each request checks who is signed in.

01

Routes for the tables you choose

Open a table and set its Generated API. Choose Off, Read, Read and write, or Full, for REST and for MCP. You can also set each action on its own, such as create over REST only, or delete not at all.

Generated API endpoint controls for REST and MCP operations

すべてのエンティティに、REST エンドポイントを

テーブルを定義すると、GET、POST、PATCH、DELETE のルートが付きます。

02

REST for code, MCP for agents

The Interface tab shows what your app serves: every REST route, every MCP tool, and who can call each one. The footer counts them and tells you how many tools can delete. Your app also publishes an OpenAPI file at /openapi.json, and every deploy updates it.

Clinic API interface showing visit and dose tools and client connection controls

常に同期する、ライブの OpenAPI スキーマ

アプリは、API のルートと同じスキーマから生成された OpenAPI 3.0 ファイルを公開します。

03

既定で範囲が絞られ、保護されます。

Each request checks who is signed in before it touches data. For each table, set who can read, create, update and delete. The levels are Anyone (read only), Signed in, Viewer, Editor, Admin and Owner. You can also limit reads to each person’s own rows.

Visit table access scoped by signed-in, editor and admin permissions

既定で範囲が絞られ、保護されます。

各リクエストはまずサインイン中の利用者を確認し、許可されたデータだけに結果を絞ります。

どこに位置するか

The API comes from your data.

API を別に作ることはありません。データモデルから生まれるので、スキーマが変われば API も一緒に変わります。

Get an API without writing one

データモデルを定義すれば、最初から利用者の範囲に絞られた、ドキュメント付きの API が手に入ります。

OrbitMade in Orbit