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
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