メインコンテンツまでスキップ
バージョン: 0.14.0 (最新)

🚀 アトリビューションフィーチャー

アトリビューションフィーチャーはExpressミドルウェアではなくSDKコンポーザーです;attributesServiceインデックスで記述されているデータストアおよび認証コンテキストとともにこれらをすべてマウントします。

目次

フィーチャー合成されたスキーマ合成されたルート目的
createAttributeFeaturecreateAttributesSchemacreateAttributeRouteグループの作成。
getAttributeFeaturegetAttributeSchemagetAttributeRoute1つのグループの読み取り。
findAttributesFeaturefindAttributesSchemafindAttributesRouteグループのリスト。
updateAttributeFeatureupdateAttributesSchemaupdateAttributeRouteグループのリネーム。
deleteAttributeFeaturedeleteAttributeSchemadeleteAttributeRouteグループの削除。

詳細

各フィーチャーはattributesServiceによってマウントされます。以下のソース定義は、スキーマからルートへの合成を示しています。

createAttributeFeature

実装

このフィーチャーは目次行にリンクされたスキーマとルートを合成します;attributesService または互換性のありカスタムサービスコンテキストによってマウントされます。

完全なソースを表示
export const createAttributeFeature = compose(
createAttributesSchema,
createAttributeRoute
);

getAttributeFeature

実装

このフィーチャーは目次行にリンクされたスキーマとルートを合成します;attributesService または互換性のありカスタムサービスコンテキストによってマウントされます。

完全なソースを表示
export const getAttributeFeature = compose(getAttributeSchema, getAttributeRoute);

findAttributesFeature

実装

このフィーチャーは目次行にリンクされたスキーマとルートを合成します;attributesService または互換性のありカスタムサービスコンテキストによってマウントされます。

完全なソースを表示
export const findAttributesFeature = compose(
findAttributesSchema,
findAttributesRoute
);

updateAttributeFeature

実装

このフィーチャーは目次行にリンクされたスキーマとルートを合成します;attributesService または互換性のありカスタムサービスコンテキストによってマウントされます。

完全なソースを表示
export const updateAttributeFeature = compose(
updateAttributesSchema,
updateAttributeRoute
);

deleteAttributeFeature

実装

このフィーチャーは目次行にリンクされたスキーマとルートを合成します;attributesService または互換性のありカスタムサービスコンテキストによってマウントされます。

完全なソースを表示
export const deleteAttributeFeature = compose(
deleteAttributeSchema,
deleteAttributeRoute
);