Files
dify/api/controllers/service_api/__init__.py
T

67 lines
1.2 KiB
Python
Raw Normal View History

2023-05-15 08:51:32 +08:00
from flask import Blueprint
2025-08-25 09:26:54 +08:00
from flask_restx import Namespace
2023-05-15 08:51:32 +08:00
from libs.external_api import ExternalApi
bp = Blueprint("service_api", __name__, url_prefix="/v1")
2025-08-25 09:26:54 +08:00
api = ExternalApi(
bp,
version="1.0",
title="Service API",
description="API for application services",
)
service_api_ns = Namespace("service_api", description="Service operations", path="/")
2023-05-15 08:51:32 +08:00
2025-09-14 19:40:06 +09:00
from . import index
2025-09-10 01:54:26 +08:00
from .app import (
2025-09-14 19:40:06 +09:00
annotation,
app,
audio,
completion,
conversation,
file,
file_preview,
2026-04-24 14:37:10 +08:00
human_input_form,
2025-09-14 19:40:06 +09:00
message,
site,
workflow,
2026-04-24 14:37:10 +08:00
workflow_events,
2025-09-10 01:54:26 +08:00
)
from .dataset import (
2025-09-14 19:40:06 +09:00
dataset,
document,
hit_testing,
metadata,
segment,
2025-09-10 01:54:26 +08:00
)
from .dataset.rag_pipeline import rag_pipeline_workflow
from .end_user import end_user
2025-09-14 19:40:06 +09:00
from .workspace import models
__all__ = [
"annotation",
"app",
"audio",
"completion",
"conversation",
"dataset",
"document",
"end_user",
2025-09-14 19:40:06 +09:00
"file",
"file_preview",
"hit_testing",
2026-04-24 14:37:10 +08:00
"human_input_form",
2025-09-14 19:40:06 +09:00
"index",
"message",
"metadata",
"models",
"rag_pipeline_workflow",
2025-09-14 19:40:06 +09:00
"segment",
"site",
"workflow",
2026-04-24 14:37:10 +08:00
"workflow_events",
2025-09-14 19:40:06 +09:00
]
2025-08-25 09:26:54 +08:00
api.add_namespace(service_api_ns)