"""Provide service meta information"""
from fastapi import APIRouter

from fusor import __version__ as fusor_version
from cool_seq_tool.version import __version__ as cool_seq_tool_version

from curfu.schemas import ServiceInfoResponse
from curfu.version import __version__ as curfu_version

router = APIRouter()


@router.get(
    "/api/service_info", operation_id="serviceInfo", response_model=ServiceInfoResponse
)
def get_service_info() -> ServiceInfoResponse:
    """Return service info."""
    return ServiceInfoResponse(
        **{
            "curfu_version": curfu_version,
            # "vrs_python_version": vrs_version,
            "cool_seq_tool_version": cool_seq_tool_version,
            "fusor_version": fusor_version,
            "warnings": [],
        }
    )
