RichardVargas1 / Project_2_UTHOU201808FSF_p2g4

Repo setup.
1 stars 0 forks source link

API Structures #12

Open salilbhise opened 5 years ago

salilbhise commented 5 years ago

Create customized API calls for each product, based off of pertinent information we would like to have returned. Going with United States market only.

https://www.energystar.gov/productfinder/advanced

pd_id brand_name model_name model_number additional_model_information upc type heat_pump_technology voltage height_inches width_inches depth_inches combined_energy_factor_cef estimated_annual_energy_use_kwh_yr estimated_energy_test_cycle_time_min energy_test_cycle_information additional_dryer_features vented_or_ventless energy_star_model_identifier meets_most_efficient_criteria

pd_id brand_name model_number additional_model_information upc load_configuration additional_washer_features volume_cubic_feet integrated_modified_energy_factor_imef annual_energy_use_kwh_year integrated_water_factor_iwf annual_water_use_gallons_year energy_star_model_identifier meets_most_efficient_criteria

pd_id brand_name model_number additional_model_information annual_energy_use_kwh_year us_federal_standard_kwh_year better_than_us_federal_standard_kwh_year energy_factor_ef water_use_gallons_cycle us_federal_standard_gallons_cycle better_than_us_federal_standard_gallons_cycle energy_star_model_identifier meets_most_efficient_criteria

pd_id brand_name model_number additional_model_information product_class defrost_type compact built_in thru_the_door_dispenser ice_maker standard_or_counter_depth height_in width_in capacity_total_volume_ft3 adjusted_volume_ft3 annual_energy_use_kwh_yr us_federal_standard_kwh_yr percent_less_energy_use_than_us_federal_standard energy_star_model_identifier meets_most_efficient_criteria

salilbhise commented 5 years ago

Consider omitting "Office Equipment products"

salilbhise commented 5 years ago

Only going with Washer, Dryer, Fridge, and Dishwasher for now due to bandwidth.

Ideal API return will be as follows:

Dryer brand_name model_name model_number additional_model_information meets_most_efficient_criteria

Washer brand_name model_number additional_model_information meets_most_efficient_criteria

Dishwasher brand_name model_number additional_model_information meets_most_efficient_criteria

Refrigerators brand_name model_number additional_model_information meets_most_efficient_criteria

salilbhise commented 5 years ago

Added Product.js to models, added and updated route params to apiRoutes.js and htmlRoutes.js. Added to handlebars: dishwashers.handlebars, dryers.handlebars, fridges.handlebars, and washers.handlebar.

Started testing by commenting out anything Passport related, and server is able to produce data from table. Need to further research table view and list view options for handlebars.