Commands
data-provider
Configure and manage data providers for your application
data-provider Command
The data-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.
Generated files:
GraphQL
Generates a GraphQL data provider with queries and mutations.
Generated files:
Firebase
Generates a Firebase/Firestore data provider.
Generated files:
Internationalization Support
Data providers generated with this command include internationalization support for error messages and notifications. The translation files are automatically created in both the dictionaries/
and locales/
directories for all supported languages (en, tr, es, de).
Example translation structure: