# NOTE: This file is auto generated by OpenAPI Generator 6.2.1 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Api.Version do @moduledoc """ API calls for all endpoints tagged `Version`. """ alias Ory.Connection import Ory.RequestBuilder @doc """ Get service version This endpoint returns the service version typically notated using semantic versioning. If the service supports TLS Edge Termination, this endpoint does not require the `X-Forwarded-Proto` header to be set. Be aware that if you are running multiple nodes of this service, the health status will never refer to the cluster state, only to a single instance. ### Parameters - `connection` (Ory.Connection): Connection to server - `opts` (keyword): Optional parameters ### Returns - `{:ok, Ory.Model.Version.t}` on success - `{:error, Tesla.Env.t}` on failure """ @spec get_version(Tesla.Env.client, keyword()) :: {:ok, Ory.Model.Version.t} | {:error, Tesla.Env.t} def get_version(connection, _opts \\ []) do request = %{} |> method(:get) |> url("/version") |> Enum.into([]) connection |> Connection.request(request) |> evaluate_response([ {200, %Ory.Model.Version{}} ]) end end