Endpoint.post constructor

Endpoint.post(
  1. String name,
  2. String path, {
  3. Map<String, DslType>? variables,
  4. Map<String, Object?>? body,
  5. DslType? response,
})

Implementation

factory Endpoint.post(
  String name,
  String path, {
  Map<String, DslType>? variables,
  Map<String, Object?>? body,
  DslType? response,
}) => Endpoint._(
  name: name,
  method: HttpMethod.post,
  path: path,
  variables: variables,
  body: body,
  response: response,
);