ApiService class abstract

Inheritance

Constructors

ApiService(String? config, List<ApiEndpoint> endpoints, {MiddlewareBuilder? middleware, SessionProvider<dynamic, Session, dynamic>? sessionProvider, String? apiBasePath})

Properties

basePath String
final
configPath ConfigPath?
finalinherited
endpoints List<ApiEndpoint>
final
environment Environment
Fetch the environment configuration from ConfigService.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
middleware MiddlewareBuilder?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sessionProvider SessionProvider<dynamic, Session, dynamic>?
final

Methods

config<T>(String path, {T? defaultValue}) → T
Fetches a configuration value from ConfigService.
inherited
configObject<T extends TransferObjectBase>(String path, TransferBean<T> bean) → T
Fetches a configuration value from ConfigService and parse it into the TransferObject.
inherited
handleRequest(HttpRequest httpRequest) Future<ApiResponse>
initialize() Future<void>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serve(dynamic address, int port, {CancellationToken? cancellationToken}) Future<void>
shutdown() Future<void>
override
toString() String
A string representation of this object.
inherited

Operators

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