ApiEndpoint class
Definição declarativa de um endpoint de API. A mesma definição vira um handler Dart (runtime) ou um arquivo PHP (gerado).
Constructors
-
ApiEndpoint({required String path, required List<
ApiAction> actions, HttpMethod method = HttpMethod.post, List<Field> fields = const [], bool requiresAuth = false}) -
const
Properties
-
actions
→ List<
ApiAction> -
Ações executadas em ordem.
final
-
fields
→ List<
Field> -
Campos de entrada validados (middleware de validação).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- method → HttpMethod
-
final
- path → String
-
Caminho (ex.:
/api/leads).final - phpFileName → String
-
Nome de arquivo PHP correspondente (ex.:
/api/leads→leads.php).no setter - requiresAuth → bool
-
Exige token válido (middleware de auth:
Authorization: Bearer <token>).final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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