ApiGenerationService class

Service class for generating API code directly without using terminal commands

This service replaces the terminal command execution with direct calls to the API generation components, improving performance by avoiding process creation.

Constructors

ApiGenerationService()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

generateApi({required String apiName, required String featureName, required String pageName, required String method, required String pathUrl, required String returnData, String? header, String? cacheStrategy, int? ttl, bool? keepExpiredCache, String? appsName, String morphemeYamlPath = 'morpheme.yaml'}) Future<bool>
Generates API code directly using the API generation components
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited