A laptop, a phone and a hand writing in a notebook on a wooden desk, banner image on the API Endpoint Designer page

ツール/ Buildスイート

API Endpoint Designer

リソースに名前を付けると、ルート、メソッド、ステータスコード、ペイロード例を含むRESTエンドポイントのプランと、OpenAPI 3 YAMLの書き出しが手に入ります。

リソース(フィールドとそのタイプ)を記述すると、REST全体が手に入ります。コレクションとアイテムのルート、ステータスコード、検証エラー、JSONの例、ドキュメントツールにそのまま使えるOpenAPI 3 YAMLの書き出しです。

ツールを開く
Screenshot of the API Endpoint Designer tool

できること

1つのルートではなく、リソース全体。

CRUDの全体像

ページング付きの一覧、作成、取得、更新、削除。それぞれに適切なステータスコードが付きます。

型付きフィールド

string、number、integer、boolean、date、enum。ペイロード例とスキーマはこれらで決まります。

OpenAPI 3の書き出し

YAMLは標準のOpenAPI 3なので、OpenAPIを読めるツールならどれでも開けます。

規約を明示

複数形のルート、カーソルによるページング、検証ステータス422はページ上に示されるため、チームで議論できます。

ページ分割された一覧

一覧ルートはlimit(既定は50)とcursorを受け取るため、大きなコレクションも1ページずつ読み取れます。

フィールド単位のエラー

フィールドの検証に失敗すると、作成と更新は422を返し、プランは各ルートにそれを明記します。

必須フィールド

requiredと指定したフィールドは、スキーマのrequired配列に並びます。それ以外は任意のままです。

日付とenum

日付フィールドは日付形式の文字列になります。enumフィールドには、置き換えるためのプレースホルダー値が入ります。

単純な名前の複数形

invoice は invoices、category は categories、box は boxes になります。ルートにはこの複数形が使われます。

行ごとの警告

不明なタイプ、重複した名前、形式の誤った行は行番号つきで報告され、残りは通常どおり生成されます。

使い方の流れ

リソースを入れて、APIを出す。

手順1

リソースとそのフィールドに、タイプ付きで名前を付けます。

手順2

ルートのプランとペイロード例を確認します。

手順3

OpenAPI YAMLをコピーします。

よくある質問

認証は?

書き出しにはbearerトークン方式が宣言されています。実装はご自身のサーバーで行ってください。

ネストしたリソースは?

リソースを個別に設計し、そのあと互いに参照させます。

RESTだけのためのものですか?

はい。プランにはRESTのルートがメソッドとステータスコードつきで並びます。

タイプを書き間違えたらどうなりますか?

その行は文字列として残り、警告が行番号と、認識できるタイプの一覧を示します。

サーバーコードは書いてくれますか?

いいえ。ルートのプラン、ペイロード例、OpenAPI 3 YAMLファイルを出力します。ハンドラーの接続はご自身で行います。

認証は含まれていますか?

YAMLはすべてのルートにbearer認証を宣言します。プランがトークンを発行したり検証したりすることはありません。

フィールドはアップロードされますか?

いいえ。すべて、入力中にブラウザーのタブ内で計算されます。

API Endpoint Designerを開く

実例

ツールそのものからの実際の出力。

これはAPI Endpoint Designerが内蔵の入力例に対して返したもので、ツールからキャプチャーした実際の出力です。モックアップではありません。

あなたが入力

リソース名(単数形)

invoice

フィールド(名前 | タイプ | required)

number | string | required
customer_email | string | required
amount_cents | number | required
currency | string | required
due_date | date
paid | boolean

ツールが返す

GET
/invoices
200 - List, paginated with limit + cursor
POST
/invoices
201 / 422 - Create; 422 returns field-level errors
GET
/invoices/{id}
200 / 404 - Read one
PATCH
/invoices/{id}
200 / 422 - Partial update
DELETE
/invoices/{id}
204 - Delete
Example invoice
自分の入力で試す

Buildスイートのその他のツール

Font Pairing LabWebhook TesterPricing Page BuilderLanding Page MakerStatus Page Starter
A laptop, headphones, a camera, a phone and a plant on a white desk, seen from above, banner image on the API Endpoint Designer page

今すぐ試す。

API Endpoint Designerはブラウザー内で動きます。アカウントは不要です。

作成済みタイル

ページの内容

Resource name, singularFields, one per line: name| type | requiredThe endpoint plan with anexample payloadOpenAPI YAMLをコピー
Resource name, singularFields, one per line: name | type |requiredThe endpoint plan with an examplepayloadOpenAPI YAMLをコピー
左にリソース名とフィールド行、右にプラン。

パイプライン

プランの作られ方

Clean the resourcename and make itpluralRead one field perlineList five routeswith their statuscodesWrite an examplepayload and theOpenAPI text
Clean the resource name and makeit pluralRead one field per lineList five routes with their statuscodesWrite an example payload and theOpenAPI text
入力するとすぐ更新されます。

ビフォー アフター

5つのルート

RouteStatus and jobGET /invoicesPOST /invoicesGET /invoices/{id}PATCH /invoices/{id}DELETE /invoices/{id}200: list, paged with limitand cursor201 or 422: create200 or 404: read one200 or 422: partial update204: delete
Route to Status and jobGET /invoices200: list, paged with limit andcursorPOST /invoices201 or 422: createGET /invoices/{id}200 or 404: read onePATCH /invoices/{id}200 or 422: partial updateDELETE /invoices/{id}204: delete
どのリソースでも同じ5つ。ここでは invoice で示します。

ビフォー アフター

ステータスコード

CodeMeaning200201204404422Read, list or update workedCreatedDeleted, nothing returnedNot foundValidation failed, withfield errors
Code to Meaning200Read, list or update worked201Created204Deleted, nothing returned404Not found422Validation failed, with field errors
プランには5つのコードが登場します。

対応マトリクス

各ルートが受け取るものと、失敗しうる理由

Id in the pathBody sent404 answer422 answerListCreateRead oneUpdateDelete
Listnone of theseCreateBody sent422 answerRead oneId in the path404 answerUpdateId in the pathBody sent422 answerDeleteId in the path
大きな白い点は、YAML内のルートの特徴を示します。小さな薄い点は、その特徴がないことを示します。

バー比較

フィールド数別のYAMLの長さ

0 fields60 lines3 fields66 lines6 fields72 lines12 fields84 lines
0 fields60 lines3 fields66 lines6 fields72 lines12 fields84 lines
すべてのフィールドをrequiredにした場合の、コピーされるYAMLの行数。

ビフォー アフター

名前の複数形化

NameRouteboxcategorydayaddressbusinvoice/boxes/categories/days/addresses/buses/invoices
Name to Routebox/boxescategory/categoriesday/daysaddress/addressesbus/busesinvoice/invoices
整えたあとの名前に適用されます。

ビフォー アフター

名前の整形

You typeRouteBlog PostOrder_Item!InvoiceAn empty box/blog-posts/order-items/invoices/resources
You type to RouteBlog Post/blog-postsOrder_Item!/order-itemsInvoice/invoicesAn empty box/resources
小文字にし、それ以外の文字はハイフンになります。

ビフォー アフター

使えるタイプの語

You writeYAML typeint, integerfloat, decimal, numberbool, booleantext, stringdateenumintegernumberbooleanstringstring with format datestring with placeholdervalues
You write to YAML typeint, integerintegerfloat, decimal, numbernumberbool, booleanbooleantext, stringstringdatestring with format dateenumstring with placeholder values
別名は5つのタイプにまとめられます。

ビフォー アフター

サンプル値

TypeExamplestringnumberbooleandateenum"..."12000false"2026-12-01""value_1"
Type to Examplestring"..."number12000booleanfalsedate"2026-12-01"enum"value_1"
ペイロード内のタイプごとに1つ。

ビフォー アフター

必須かどうか

LineField isnumber | string | requiredamount_cents | number | reqdue_date | datepaid | booleanRequiredRequired, since it startswith reqOptionalOptional
Line to Field isnumber | string | requiredRequiredamount_cents | number | reqRequired, since it starts with reqdue_date | dateOptionalpaid | booleanOptional
行の3番目の部分。

ビフォー アフター

警告の対象になる行

You writePlan doesA line with no typeAn unknown type such as watThe same name twiceAn enum with no valuesSkippedUsed as stringThe second is skippedOutput as string withplaceholders to edit
You write to Plan doesA line with no typeSkippedAn unknown type such as watUsed as stringThe same name twiceThe second is skippedAn enum with no valuesOutput as string with placeholdersto edit
警告には行番号が示されます。

ビフォー アフター

一覧ルートのページング

ParameterTypelimitcursorInteger, default 50String
Parameter to TypelimitInteger, default 50cursorString
2つのクエリパラメーター。

入力から出力へ

名前とフィールドを入れて、プランを出す

Resource nameField linesFive routesExamplepayloadOpenAPI YAMLEndpoint planInOut
InResource nameField linesEndpoint planFive routesExample payloadOpenAPI YAMLOut
何もアップロードされません。

パイプライン

OpenAPI YAMLをコピー

Press Copy OpenAPIYAMLThe text startswith openapi 3.0.3Paths, then aschema for yourfieldsA bearer token isset as security
Press Copy OpenAPI YAMLThe text starts with openapi 3.0.3Paths, then a schema for yourfieldsA bearer token is set as security
1クリック。

ビフォー アフター

YAMLの構成要素

BlockHoldsopenapi and infopathscomponents schemassecurityVersion 3.0.3, title is yourname and API, version 0.1.0Both paths with theirresponsesAn object with an id andyour fieldsBearer token on every route
Block to Holdsopenapi and infoVersion 3.0.3, title is your nameand API, version 0.1.0pathsBoth paths with their responsescomponents schemasAn object with an id and your fieldssecurityBearer token on every route
4つのブロック。

ビフォー アフター

YAML内のフィールド名

FieldKeydue_datea bOrder-Iddue_date"a b""Order-Id"
Field to Keydue_datedue_datea b"a b"Order-Id"Order-Id"
変わった名前は引用符で囲まれます。

ビフォー アフター

サンプルをフィールドごとに

FieldResultnumber | stringcustomer_email | stringamount_cents | numbercurrency | stringdue_date | datepaid | booleanRequiredRequiredRequiredRequiredOptionalOptional
Field to Resultnumber | stringRequiredcustomer_email | stringRequiredamount_cents | numberRequiredcurrency | stringRequireddue_date | dateOptionalpaid | booleanOptional
6つのフィールド、うち4つが必須。

作成済みタイル

知っておくと便利

Nothing is uploadedThe same five routes forevery resourceEvery schema gets an id oftype stringYou edit the YAML aftercopying
Nothing is uploadedThe same five routes for everyresourceEvery schema gets an id of type stringYou edit the YAML after copying
シンプルな事実。