Skip to content

Commit

Permalink
fix(explorer): add an api tag for explorer api
Browse files Browse the repository at this point in the history
Signed-off-by: Sylvain Leclerc <[email protected]>
  • Loading branch information
sylvlecl committed Jan 2, 2025
1 parent c68cd50 commit be065d5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions antarest/core/utils/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class APITag:
tasks = "Manage tasks"
misc = "Miscellaneous"
filesystem = "Filesystem Management"
explorer = "Explorer"


tags_metadata = [
Expand Down Expand Up @@ -71,4 +72,7 @@ class APITag:
{
"name": APITag.filesystem,
},
{
"name": APITag.explorer,
},
]
3 changes: 2 additions & 1 deletion antarest/study/web/explorer_blueprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

from antarest.core.config import Config
from antarest.core.jwt import JWTUser
from antarest.core.utils.web import APITag
from antarest.login.auth import Auth
from antarest.study.model import NonStudyFolder, WorkspaceMetadata
from antarest.study.storage.explorer_service import Explorer
Expand All @@ -34,7 +35,7 @@ def create_explorer_routes(config: Config, explorer: Explorer) -> APIRouter:
Returns:
"""
bp = APIRouter(prefix="/v1/private")
bp = APIRouter(prefix="/v1/private", tags=[APITag.explorer])
auth = Auth(config)

@bp.get(
Expand Down

0 comments on commit be065d5

Please sign in to comment.