swaggergenerator3/__init__.py
def provide_example(self, request, response, description='', summary=''):
        """Store an example interaction to use later in generation.

        If ``existing_schema`` was provided and the interaction matches an existing path/verb pair,
        it will be ignored.

        Request and response are normalized by flex.
        A complete list of supported types can be found `in the flex docs
        <http://flex-swagger.readthedocs.org/en/latest/#api-call-validation>`__.

        Args:
            request: a request object recognized by flex
            response: a response object recognized by flex
            description: a string for function mentioned.
        """
        flex_response = flex.http.normalize_response(response, request)

        example = Example(flex_response.request, flex_response, description, summary)
        example = self.normalize_example(example)

        if not self.existing_schema or not self._known_to_schema(example):
            self.path_to_examples[flex_response.path].append(example)
Store an example interaction to use later in generation.

        If ``existing_schema`` was provided and the interaction matches an existing path/verb pair,
        it will be ignored.

        Request and response are normalized by flex.
        A complete list of supported types can be found `in the flex docs
        <http://flex-swagger.readthedocs.org/en/latest/#api-call-validation>`__.

        Args:
            request: a request object recognized by flex
            response: a response object recognized by flex
            description: a string for function mentioned.
        
Store an example interaction to use later in generation.
If ``existing_schema`` was provided and the interaction matches an existing path/verb pair,
it will be ignored.

Request and response are normalized by flex.
A complete list of supported types can be found `in the flex docs
`__.
Store an example interaction to use later in generation . If ` ` existing_schema ` ` was provided and the interaction matches an existing path / verb pair it will be ignored . Request and response are normalized by flex . A complete list of supported types can be found ` in the flex docs ` __ .
def provide_example(self, request, response, description='', summary=''):
        flex_response = flex.http.normalize_response(response, request)
        example = Example(flex_response.request, flex_response, description, summary)
        example = self.normalize_example(example)
        if not self.existing_schema or not self._known_to_schema(example):
            self.path_to_examples[flex_response.path].append(example)
def provide_example ( self , request , response , description = '' , summary = '' ) : flex_response = flex . http . normalize_response ( response , request ) example = Example ( flex_response . request , flex_response , description , summary ) example = self . normalize_example ( example ) if not self . existing_schema or not self . _known_to_schema ( example ) : self . path_to_examples [ flex_response . path ] . append ( example )
Store an example interaction to use later in generation.
Store an example interaction to use later in generation .
"""Store an example interaction to use later in generation.

        If ``existing_schema`` was provided and the interaction matches an existing path/verb pair,
        it will be ignored.

        Request and response are normalized by flex.
        A complete list of supported types can be found `in the flex docs
        <http://flex-swagger.readthedocs.org/en/latest/#api-call-validation>`__.

        Args:
            request: a request object recognized by flex
            response: a response object recognized by flex
            description: a string for function mentioned.
        """
self
request
a request object recognized by flex
a request object recognized by flex
response
a response object recognized by flex
a response object recognized by flex
description
a string for function mentioned.
a string for function mentioned .
summary