MaxKB/apps/application/api/application_api_key.py
shaohuzhang1 60ff19be17
feat: Application Apikey (#3149)
Co-authored-by: zhangzhanwei <zhanwei.zhang@fit2cloud.com>
2025-05-27 10:41:05 +08:00

34 lines
886 B
Python

from drf_spectacular.types import OpenApiTypes
from drf_spectacular.utils import OpenApiParameter
from common.mixins.api_mixin import APIMixin
class ApplicationKeyCreateAPI(APIMixin):
@staticmethod
def get_parameters():
return [
OpenApiParameter(
name="workspace_id",
description="工作空间id",
type=OpenApiTypes.STR,
location='path',
required=True,
),
OpenApiParameter(
name="application_id",
description="application ID",
type=OpenApiTypes.STR,
location='path',
required=True,
)
]
# class Operate(APIMixin):
# @staticmethod
# def s():
# pass
# def get_response():
# return ApplicationKeyCreateResponse