def protagonists_protagonist_iddelete(protagonist_id):  # noqa: E501
    """Delete Protagonist object

    Test # noqa: E501

    :param protagonist_id: The Id of a Protagonist
    :type protagonist_id: int

    :rtype: None
    """
    return Database.deleteObjectFromID(Protagonist, protagonist_id)
def quotes_quote_iddelete(quote_id):  # noqa: E501
    """Delete Quote object

    Test # noqa: E501

    :param quote_id: The Id of a Quote
    :type quote_id: int

    :rtype: None
    """
    return Database.deleteObjectFromID(Quote, quote_id)
Ejemplo n.º 3
0
def references_reference_idget(reference_id):  # noqa: E501
    """Retrieve a Reference object

    Test # noqa: E501

    :param reference_id: The Id of a Reference
    :type reference_id: int

    :rtype: None
    """
    return Database.getObjectFromIDWithDetailsFromOtherClassParameters(Reference,reference_id)
Ejemplo n.º 4
0
def references_reference_iddelete(reference_id):  # noqa: E501
    """Delete Reference object

    Test # noqa: E501

    :param reference_id: The Id of a Reference
    :type reference_id: int

    :rtype: None
    """
    return Database.deleteObjectFromID(Reference,reference_id)
def protagonists_protagonist_idget(protagonist_id):  # noqa: E501
    """Retrieve a Protagonist object

    Test # noqa: E501

    :param protagonist_id: The Id of a Protagonist
    :type protagonist_id: int

    :rtype: None
    """
    return Database.getObjectFromIDWithDetailsFromOtherClassParameters(
        Protagonist, protagonist_id)
def quotes_quote_idget(quote_id):  # noqa: E501
    """Retrieve a Quote object

    Test # noqa: E501

    :param quote_id: The Id of a Quote
    :type quote_id: int

    :rtype: None
    """
    return Database.getObjectFromIDWithDetailsFromOtherClassParameters(
        Quote, quote_id)
def protagonist_get(offset=None, limit=None):  # noqa: E501
    """Retrieve a collection of Protagonist objects

    This operation supports pagination # noqa: E501

    :param offset: The number of items to skip before returning the results
    :type offset: int
    :param limit: The number of items to return
    :type limit: int

    :rtype: None
    """
    return Database.getListWithDetailsFromOtherClassParameters(Protagonist)
def quotes_quote_id_mains_get(quote_id, offset=None, limit=None):  # noqa: E501
    """Get list of mains quotes supported by a specific quote

    This operation supports pagination # noqa: E501

    :param quote_id: The Id of a Quote
    :type quote_id: int
    :param offset: The number of items to skip before returning the results
    :type offset: int
    :param limit: The number of items to return
    :type limit: int

    :rtype: None
    """
    return Database.getListFromOtherIDWithDetailsFromOtherClassParameters(
        QuoteLink, "quoteMains", quote_id)
def quote_post(quote):  # noqa: E501
    """Create Quote

     # noqa: E501

    :param quote: 
    :type quote: dict | bytes

    :rtype: None
    """
    returnObject = None
    codeReturn = 401

    if connexion.request.is_json:
        quote = Quote.from_dict(connexion.request.get_json())  # noqa: E501
        returnObject, codeReturn = Database.postNewObject(quote)

    return returnObject, codeReturn
Ejemplo n.º 10
0
def reference_post(reference):  # noqa: E501
    """Create Reference

     # noqa: E501

    :param reference: 
    :type reference: dict | bytes

    :rtype: None
    """
    valueReturn = 0
    codeReturn = 401

    if connexion.request.is_json:
        reference = Reference.from_dict(connexion.request.get_json())  # noqa: E501
        valueReturn, codeReturn = Database.postNewObject(reference)

    return valueReturn, codeReturn
def protagonist_post(protagonist):  # noqa: E501
    """Create Protagonist

     # noqa: E501

    :param protagonist: 
    :type protagonist: dict | bytes

    :rtype: None
    """
    valueReturn = 0
    codeReturn = 401

    if connexion.request.is_json:
        protagonist = Protagonist.from_dict(
            connexion.request.get_json())  # noqa: E501
        valueReturn, codeReturn = Database.postNewObject(protagonist)

    return valueReturn, codeReturn
def quotes_quote_idpatch(quote_id, quote):  # noqa: E501
    """Update Quote object

    Test # noqa: E501

    :param quote_id: The Id of a Quote
    :type quote_id: int
    :param quote: 
    :type quote: dict | bytes

    :rtype: None
    """
    returnObject = None
    codeReturn = 401

    if connexion.request.is_json:
        quote = Quote.from_dict(connexion.request.get_json())  # noqa: E501
        returnObject, codeReturn = Database.patchObject(quote, quote_id)

    return returnObject, codeReturn
Ejemplo n.º 13
0
def references_reference_idpatch(reference_id, reference):  # noqa: E501
    """Update Reference object

    Test # noqa: E501

    :param reference_id: The Id of a Reference
    :type reference_id: int
    :param reference: 
    :type reference: dict | bytes

    :rtype: None
    """
    valueReturn = 0
    codeReturn = 401

    if connexion.request.is_json:
        reference = Reference.from_dict(connexion.request.get_json())  # noqa: E501
        valueReturn, codeReturn = Database.patchObject(reference, reference_id)

    return valueReturn, codeReturn
def protagonists_protagonist_idpatch(protagonist_id,
                                     protagonist):  # noqa: E501
    """Update Protagonist object

    Test # noqa: E501

    :param protagonist_id: The Id of a Protagonist
    :type protagonist_id: int
    :param protagonist: 
    :type protagonist: dict | bytes

    :rtype: None
    """
    valueReturn = 0
    codeReturn = 401

    if connexion.request.is_json:
        protagonist = Protagonist.from_dict(
            connexion.request.get_json())  # noqa: E501
        valueReturn, codeReturn = Database.patchObject(protagonist,
                                                       protagonist_id)

    return valueReturn, codeReturn