ApiEndpoints class
Centralized API endpoint definitions for Form.io operations.
These helper functions and constants provide consistent paths for use in services such as FormService, SubmissionService, etc.
Constructors
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
-
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
Static Methods
-
getForm(
String path) → String -
Returns the full path to fetch a form schema.
Example:
/registration -
getSubmissionById(
String formPath, String id) → String - Returns the path to fetch a specific submission.
-
postSubmission(
String formPath) → String -
Returns the path to create a new submission.
Example:
/registration/submission
Constants
- currentUser → const String
- Returns the current user profile endpoint.
- login → const String
- Returns the login endpoint (if using Form.io authentication).
- projectConfig → const String
- Returns a path to fetch project or form-level configuration.
- register → const String
- Returns the registration endpoint.