2from flask_restx
import Resource
5current_directory = os.getcwd()
8sys.path.append(os.path.join(current_directory))
11from Common.Requirements.operator_req
import require_operator_account
12from Common.Requirements
import valid_token
as vt
13from flask_jwt_extended
import jwt_required
17 @ns.route('/operatorStatus')
19 @ns.doc(
'operatorStatus',
20 description=
'Test route, returns OK if the API is running and the user is logged in as operator.',
22 400:
'Invalid Argument',
23 500:
'Mapping Key Error'})
27 @vt.require_valid_token
28 @require_operator_account
31 return {
"Test":
"OK"},200