data-provider Command
Thedata-provider command helps you configure and manage data providers for your zopio application, supporting REST, GraphQL, and other API types.
Usage
Options
-t, --type <type>- Provider type (rest | graphql | firebase) (default: “rest”)-m, --model <model>- Model name (required)
Examples
Provider Types
REST
Generates a REST API data provider with standard CRUD operations.GraphQL
Generates a GraphQL data provider with queries and mutations.Firebase
Generates a Firebase/Firestore data provider.Internationalization Support
Data providers generated with this command include internationalization support for error messages and notifications. The translation files are automatically created in both thedictionaries/ and locales/ directories for all supported languages (en, tr, es, de).
Example translation structure: