33 lines
642 B
Python
33 lines
642 B
Python
# -*- coding: utf-8 -*-
|
|
"""
|
|
@File: index.py
|
|
@Date: 2020-09-14
|
|
@author: A2TEC
|
|
@section MODIFYINFO 수정정보
|
|
- 수정자/수정일 : 수정내역
|
|
- 2022-01-14/hsj100@a2tec.co.kr : refactoring
|
|
@brief: basic & test api
|
|
"""
|
|
|
|
from fastapi import APIRouter
|
|
|
|
from rest.app.utils.date_utils import D
|
|
from rest.app.models import SWInfo
|
|
|
|
|
|
router = APIRouter()
|
|
|
|
|
|
@router.get('/', summary='서비스 정보', response_model=SWInfo)
|
|
async def index():
|
|
"""
|
|
## 서비스 정보
|
|
소프트웨어 이름, 버전정보, 현재시간
|
|
|
|
**결과**
|
|
- SWInfo
|
|
"""
|
|
sw_info = SWInfo()
|
|
sw_info.date = D.date_str()
|
|
return sw_info
|