HttpMethodInfo class

Describes details of an HTTP operation (e.g., a get or post on a path) as defined in the OpenAPI specification.

Includes summary/description, parameters, an optional request body, the responses object, and associated tags for grouping.

Constructors

HttpMethodInfo({required String? summary, required String? description, required List<TParameter>? parameters, required TRequestBody? requestBody, required IResponse responses, required List<String> tags})
Creates an HttpMethodInfo with all parsed operation details.
HttpMethodInfo.fromJson(Map<String, dynamic> json)
Builds an HttpMethodInfo from an OpenAPI operation object JSON.
factory

Properties

description String?
A more detailed description of the operation.
final
hashCode int
The hash code for this object.
no setterinherited
parameters List<TParameter>?
Operation parameters (query, header, path, cookie).
final
requestBody TRequestBody?
Optional request body definition for this operation.
final
responses IResponse
Responses keyed by HTTP status code.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
summary String?
Short, human-readable summary of the operation.
final
tags List<String>
Tags used to group this operation in API documentation.
final

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