Endpoint constructor

const Endpoint({
  1. required String path,
  2. required String method,
  3. String? summary,
  4. String? description,
  5. List<String>? tags,
  6. bool? deprecated,
  7. List<Map<String, List<String>>>? security,
  8. String? operationId,
  9. ExternalDocumentation? externalDocs,
  10. List<Parameter>? parameters,
  11. List<String>? contentTypes,
  12. int? statusCode,
})

Creates an endpoint annotation.

Implementation

const Endpoint({
  required this.path,
  required this.method,
  this.summary,
  this.description,
  this.tags,
  this.deprecated,
  this.security,
  this.operationId,
  this.externalDocs,
  this.parameters,
  this.contentTypes,
  this.statusCode,
});