単一エンティティの取得
パスで指定された単一のエンティティ情報を返却する
📬 リクエスト
Section titled “📬 リクエスト”GET {resource_api_url}/entities/{name}
リクエストヘッダ
Section titled “リクエストヘッダ”| キー | 値 |
|---|---|
| Authorization | Bearer {アクセストークン} |
パスパラメータ
Section titled “パスパラメータ”| パラメータ | 形式 | 必須 | 説明 | 値の例 |
|---|---|---|---|---|
| name | 文字列 | YES | 検索対象のエンティティ名 | account |
クエリパラメータ
Section titled “クエリパラメータ”なし
✨ 成功レスポンス
Section titled “✨ 成功レスポンス”ステータスコード
Section titled “ステータスコード”200 : OK
レスポンスヘッダ
Section titled “レスポンスヘッダ”| キー | 値 |
|---|---|
| Content-Type | application/json |
レスポンスボディ
Section titled “レスポンスボディ”| フィールド | 形式 | 必須 | 説明 | 値の例 |
|---|---|---|---|---|
| name | 文字列 | YES | エンティティ名 | account |
| type |
| NO | エンティティの種別 UPWARDが標準的に扱うエンティティに該当する場合、その種別を設定する
該当しない場合は、 | account |
| display_name | 文字列 | YES | エンティティの表示名 | 取引先名 |
| record_url_format | record_url_formatオブジェクト | NO | レコードのURLを表す文字列フォーマット | { "app": "sampleapp://record_detail?entity=account&id={id}", "browser": "https://example.com/record_detail?entity=account&id={id}" } |
| has_location | 真偽値 | YES | エンティティが位置情報を保持しているかどうか | true |
| item_mapping | item_mappingオブジェクト | YES | UPWARDが標準的に扱う項目名のマッピング | { "id": "id", "title": "name", "owner": "owner", "created_at": "created_at", "created_by": "created_by", "modified_at": "modified_at", "modified_by": "modified_by", "latitude": "latitude", "longitude": "longitude" } |
record_url_formatオブジェクト
Section titled “record_url_formatオブジェクト”| フィールド | 形式 | 必須 | 説明 | 値の例 |
|---|---|---|---|---|
| app | 文字列 | NO | このエンティティのレコードをモバイルアプリで開く際のURL形式 | sampleapp://record_detail?entity=account&id={id} |
| browser | 文字列 | NO | このエンティティのレコードをPC(Webブラウザ)で開く際のURL形式 | https://example.com/record_detail?entity=account&id={id} |
item_mappingオブジェクト
Section titled “item_mappingオブジェクト”| フィールド | 形式 | 必須 | 説明 | 値の例 |
|---|---|---|---|---|
| id | 文字列 | YES | レコードのID(一意識別子)が設定されている項目名 | id |
| title | 文字列 | YES | レコードのタイトルが設定されている項目名 | name |
| owner | 文字列 | NO | レコードの所有者(ユーザーエンティティへの参照)が設定されている項目名 | owner |
| created_at | 文字列 | NO | レコードの作成日時が設定されている項目名 | created_at |
| created_by | 文字列 | NO | レコードの作成者(ユーザーエンティティへの参照)が設定されている項目名 | created_by |
| modified_at | 文字列 | NO | レコードの最終更新日時が設定されている項目名 | modified_at |
| modified_by | 文字列 | NO | レコードの最終更新者(ユーザーエンティティへの参照)が設定されている項目名 | modified_by |
| latitude | 文字列 | NO | レコードの緯度が設定されている項目名 | latitude |
| longitude | 文字列 | NO | レコードの経度が設定されている項目名 | longitude |
レスポンスボディのサンプル
Section titled “レスポンスボディのサンプル”💬 具体的な要求事項
Section titled “💬 具体的な要求事項”- 検索対象のエンティティ名が存在しない場合は、「
404: Not Found」エラーを返却してください
📚 参考資料
Section titled “📚 参考資料”なし