try flask_restful -> flask_restx (#24310)

Signed-off-by: -LAN- <laipz8200@outlook.com>
Co-authored-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
Asuka Minato
2025-08-24 14:45:47 +09:00
committed by GitHub
parent b84bb4164f
commit 18dce66443
141 changed files with 176 additions and 168 deletions

View File

@@ -1,7 +1,7 @@
from typing import Literal
from flask import request
from flask_restful import Resource, marshal, marshal_with, reqparse
from flask_restx import Resource, marshal, marshal_with, reqparse
from werkzeug.exceptions import Forbidden
from controllers.service_api import api

View File

@@ -1,4 +1,4 @@
from flask_restful import Resource, marshal_with
from flask_restx import Resource, marshal_with
from controllers.common import fields
from controllers.service_api import api

View File

@@ -1,7 +1,7 @@
import logging
from flask import request
from flask_restful import Resource, reqparse
from flask_restx import Resource, reqparse
from werkzeug.exceptions import InternalServerError
import services

View File

@@ -1,7 +1,7 @@
import logging
from flask import request
from flask_restful import Resource, reqparse
from flask_restx import Resource, reqparse
from werkzeug.exceptions import BadRequest, InternalServerError, NotFound
import services

View File

@@ -1,5 +1,5 @@
from flask_restful import Resource, marshal_with, reqparse
from flask_restful.inputs import int_range
from flask_restx import Resource, marshal_with, reqparse
from flask_restx.inputs import int_range
from sqlalchemy.orm import Session
from werkzeug.exceptions import BadRequest, NotFound

View File

@@ -1,5 +1,5 @@
from flask import request
from flask_restful import Resource, marshal_with
from flask_restx import Resource, marshal_with
import services
from controllers.common.errors import (

View File

@@ -2,7 +2,7 @@ import logging
from urllib.parse import quote
from flask import Response
from flask_restful import Resource, reqparse
from flask_restx import Resource, reqparse
from controllers.service_api import api
from controllers.service_api.app.error import (

View File

@@ -1,8 +1,8 @@
import json
import logging
from flask_restful import Resource, fields, marshal_with, reqparse
from flask_restful.inputs import int_range
from flask_restx import Resource, fields, marshal_with, reqparse
from flask_restx.inputs import int_range
from werkzeug.exceptions import BadRequest, InternalServerError, NotFound
import services

View File

@@ -1,4 +1,4 @@
from flask_restful import Resource, marshal_with
from flask_restx import Resource, marshal_with
from werkzeug.exceptions import Forbidden
from controllers.common import fields

View File

@@ -2,8 +2,8 @@ import logging
from dateutil.parser import isoparse
from flask import request
from flask_restful import Resource, fields, marshal_with, reqparse
from flask_restful.inputs import int_range
from flask_restx import Resource, fields, marshal_with, reqparse
from flask_restx.inputs import int_range
from sqlalchemy.orm import Session, sessionmaker
from werkzeug.exceptions import BadRequest, InternalServerError, NotFound