updateRecipient(recipient){
        const url = `${API_URL}/api/clients/${recipient.id}/`;
        //const url = `${API_URL}/clients/${recipient.pk}`;
        return axios.put(url,recipient);
    }
/**
     * This method updates the information for a recipient in the database 
     * based on the recipient object passed as a parameter to the method.
     * @param {Object} recipient The updated recipient object to be stored in the 
     *                  database.
     * @returns A JSON object of the recipient that has been updated, or 
     *          an error message if the request fails.
     */
This method updates the information for a recipient in the database
based on the recipient object passed as a parameter to the method.
@param {Object} recipient The updated recipient object to be stored in the
database.
@returns A JSON object of the recipient that has been updated, or
an error message if the request fails.
This method updates the information for a recipient in the database based on the recipient object passed as a parameter to the method . @param { Object } recipient The updated recipient object to be stored in the database . @returns A JSON object of the recipient that has been updated or an error message if the request fails .
updateRecipient(recipient){
        const url = `${API_URL}/api/clients/${recipient.id}/`;
        return axios.put(url,recipient);
    }
updateRecipient ( recipient ) { const url = ` ${ API_URL } ${ recipient . id } ` ; return axios . put ( url , recipient ) ; }
This method updates the information for a recipient in the database
 based on the recipient object passed as a parameter to the method.
This method updates the information for a recipient in the database based on the recipient object passed as a parameter to the method .
//const url = `${API_URL}/clients/${recipient.pk}`;