santiagobasulto/flask-rest-toolkit

View on GitHub
flask_rest_toolkit/endpoint.py

Summary

Maintainability
A
50 mins
Test Coverage
class ApiEndpoint(object):
    def __init__(self, http_method, endpoint,
                 handler, exceptions=None, authentication=None,
                 middleware=None, serializer=None):
        self.http_method = http_method
        self.endpoint = endpoint
        self.handler = handler
        self.authentication = authentication
        self.serializer = serializer

        self.exceptions = exceptions or []
        self.middleware = middleware or []