2023-08-14 02:08:08 +08:00
|
|
|
"""Note:
|
|
|
|
- The felicity app must be creaed first before importing other modules.
|
|
|
|
- This is important to register felicity in sanic registry
|
|
|
|
"""
|
2024-01-24 23:10:44 +08:00
|
|
|
|
2023-11-22 17:13:16 +08:00
|
|
|
from fastapi import FastAPI
|
2023-12-30 15:51:11 +08:00
|
|
|
|
2023-12-30 19:42:48 +08:00
|
|
|
from lims import register_felicity
|
2021-09-20 18:50:01 +08:00
|
|
|
|
2023-11-22 17:13:16 +08:00
|
|
|
description = """
|
|
|
|
Felicity LIMS API helps you do awesome stuff. 🚀
|
|
|
|
|
|
|
|
You will be able to:
|
|
|
|
...
|
|
|
|
"""
|
|
|
|
|
|
|
|
felicity = FastAPI(
|
|
|
|
title="Felicity LIMS",
|
|
|
|
description=description,
|
|
|
|
# root_path="api/v1",
|
|
|
|
# version="1.0.0",
|
|
|
|
# openapi_url="/openapi.json"
|
|
|
|
)
|
|
|
|
|
2023-09-11 13:02:05 +08:00
|
|
|
register_felicity(felicity)
|