Commit 505f9d9d authored by Pelayo Torres's avatar Pelayo Torres
Browse files

REL 19 API_provider_Management_API

parent 898ae96b
Loading
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
import connexion
from typing import Dict
from typing import Tuple
from typing import Union

from api_provider_management.models.problem_details import ProblemDetails  # noqa: E501
from api_provider_management import util

from functools import wraps

from api_provider_management.models.api_provider_enrolment_details import APIProviderEnrolmentDetails  # noqa: E501
@@ -9,6 +17,7 @@ from flask_jwt_extended import get_jwt_identity, jwt_required
from ..core.provider_enrolment_details_api import ProviderManagementOperations
from ..core.validate_user import ControlAccess


provider_management_ops = ProviderManagementOperations()
valid_user = ControlAccess()

@@ -76,7 +85,6 @@ def registrations_registration_id_delete(registration_id): # noqa: E501

    return res


@cert_validation()
def registrations_registration_id_put(registration_id, body):  # noqa: E501
    """registrations_registration_id_put
+10 −0
Original line number Diff line number Diff line
import connexion
from typing import Dict
from typing import Tuple
from typing import Union

from api_provider_management.models.api_provider_enrolment_details import APIProviderEnrolmentDetails  # noqa: E501
from api_provider_management.models.api_provider_enrolment_details_patch import APIProviderEnrolmentDetailsPatch  # noqa: E501
from api_provider_management.models.problem_details import ProblemDetails  # noqa: E501
from api_provider_management import util

from flask import current_app, request

from ..core.provider_enrolment_details_api import ProviderManagementOperations
+1 −1
Original line number Diff line number Diff line
from connexion.jsonifier import JSONEncoder

from .models.base_model import Model
from api_provider_management.models.base_model import Model


class CustomJSONEncoder(JSONEncoder):
+7 −0
Original line number Diff line number Diff line
# flake8: noqa
# import models into model package
from api_provider_management.models.api_provider_enrolment_details import APIProviderEnrolmentDetails
from api_provider_management.models.api_provider_enrolment_details_patch import APIProviderEnrolmentDetailsPatch
from api_provider_management.models.api_provider_function_details import APIProviderFunctionDetails
from api_provider_management.models.api_provider_func_role import ApiProviderFuncRole
from api_provider_management.models.invalid_param import InvalidParam
from api_provider_management.models.problem_details import ProblemDetails
from api_provider_management.models.registration_information import RegistrationInformation
Loading