turingschool-projects / lookingfor

Hello, is it me you're looking for?
2 stars 4 forks source link

Add d3 data endpoint #115

Closed robbiejaeger closed 8 years ago

robbiejaeger commented 8 years ago

This change is part of a project to add data visualizations of job postings to the front-end side of LookingFor. I have added a model method that counts the number of job openings from the previous two months for each technology.

The model method is called in the API endpoint of the same name (current_openings_technology_count).

The format of the method output looks unusual, but it is deliberately based on what is needed on the front-end site to render the rd3 treemap.

I have also added a request test to be sure the endpoint works as it should and returns the JSON format I expect for the front-end.

coveralls commented 8 years ago

Coverage Status

Coverage increased (+0.6%) to 62.595% when pulling 88498cbb5b05a3c303130716fee70ba3892ff4e8 on add_d3_data_endpoint into d365d0ca56d6f136633ee35c97339bd644d6a9c3 on master.