def add_contact(body=None): # noqa: E501 """Add a new contact description for add new contact # noqa: E501 :param body: Contact object that needs to be added to the store :type body: dict | bytes :rtype: None """ if connexion.request.is_json: body = Contact.from_dict(connexion.request.get_json()) # noqa: E501 return 'do some magic!'
def projects_id_contacts_put(id, project): """ You can't put the entire List :param id: Project id :type id: int :param project: The contact you want to update :type project: dict | bytes :rtype: None """ if connexion.request.is_json: project = Contact.from_dict(connexion.request.get_json()) return 'do some magic!'
def projects_id_contacts_post(id, project): """ Add a new contact :param id: Project id :type id: int :param project: The comment you want to create :type project: dict | bytes :rtype: Message """ if connexion.request.is_json: project = Contact.from_dict(connexion.request.get_json()) return 'do some magic!'
def update_contact(contactId, body=None): # noqa: E501 """Updates a contact in the store with form data # noqa: E501 :param contactId: ID of contact that needs to be updated :type contactId: str :param body: Contact object that needs to be added to the store :type body: dict | bytes :rtype: None """ if connexion.request.is_json: body = Contact.from_dict(connexion.request.get_json()) # noqa: E501 return 'do some magic!'