# `ExFattureincloud.Operations`
[🔗](https://github.com/elchemista/ex_fattureincloud/blob/v0.1.0/lib/ex_fattureincloud/operations.ex#L2)

Operation metadata from the pinned OpenAPI specification and documented extensions.

# `descriptor`

```elixir
@type descriptor() :: %{
  id: atom(),
  operation_id: String.t(),
  path: String.t(),
  path_params: [String.t()],
  query: [query_parameter()],
  paginated: boolean(),
  module: String.t(),
  accept: String.t(),
  body_required: boolean(),
  method: :get | :post | :put | :patch | :delete,
  body: :none | :json | :multipart
}
```

HTTP method, path template, parameters and accepted media type for an operation.

# `id`

```elixir
@type id() :: atom() | String.t()
```

A snake_case atom or string, or an official OpenAPI operation ID.

# `query_parameter`

```elixir
@type query_parameter() :: %{
  name: String.t(),
  required: boolean(),
  type: String.t() | nil,
  enum: [term()],
  minimum: number() | nil,
  maximum: number() | nil
}
```

Validation rules for one query parameter.

# `all`

```elixir
@spec all() :: [descriptor()]
```

All supported operation descriptors.

# `get`

```elixir
@spec get(term()) :: descriptor() | nil
```

Finds an operation by name or returns `nil` when no operation matches.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
