SampleApiDefinitions class
Pre-built API definitions for common testing scenarios.
This class provides several ready-to-use API definitions that can be used for testing and demonstration purposes.
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
-
all(
) → List< ApiDefinition> - Returns all sample API definitions.
-
ecommerce(
) → ApiDefinition - Creates a comprehensive e-commerce API definition.
-
jsonPlaceholder(
) → ApiDefinition - Creates a sample JSONPlaceholder API definition using the simple builder.
-
openApiPetStore(
) → ApiDefinition - Creates an API definition from OpenAPI specification.
-
openApiYamlExample(
) → ApiDefinition - Creates an API definition from YAML format OpenAPI specification.
-
postsCrud(
) → ApiDefinition - Creates a CRUD API for posts using the convenience method.
-
quickStart(
) → List< ApiDefinition> - Returns a subset of sample APIs suitable for quick testing.
- Creates a social media API definition.
-
usersCrud(
) → ApiDefinition - Creates a CRUD API for users.