You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

__init__.py 704B

1234567891011121314151617181920212223
  1. from flask import Blueprint
  2. from flask_restx import Namespace
  3. from libs.external_api import ExternalApi
  4. bp = Blueprint("service_api", __name__, url_prefix="/v1")
  5. api = ExternalApi(
  6. bp,
  7. version="1.0",
  8. title="Service API",
  9. description="API for application services",
  10. doc="/docs", # Enable Swagger UI at /v1/docs
  11. )
  12. service_api_ns = Namespace("service_api", description="Service operations", path="/")
  13. from . import index
  14. from .app import annotation, app, audio, completion, conversation, file, file_preview, message, site, workflow
  15. from .dataset import dataset, document, hit_testing, metadata, segment, upload_file
  16. from .workspace import models
  17. api.add_namespace(service_api_ns)