Skip to content
Snippets Groups Projects
  1. Aug 10, 2016
    • João Victor Risso's avatar
      Add education level and fix issue with adm_dependency_id · 8d77d014
      João Victor Risso authored
      Changelog:
      - Add education level to all queries
      
      - Add route '/education_level' to query the available education levels.
        The response is a set of pairs (id, education_level)
      
      - Change var declarations to their respective const and let counterparts
      
      - Fix wrong foreign key name in the aggregation by states. When a
        adm_dependency_id parameter was supplied, the query would fail.
      Unverified
      8d77d014
  2. Aug 03, 2016
    • João Victor Risso's avatar
      Change type verification to typeof · 2c75a3db
      João Victor Risso authored
      Unverified
      2c75a3db
    • João Victor Risso's avatar
    • João Victor Risso's avatar
      Refactor enrollments route to include query building · 1baf5471
      João Victor Risso authored
      Changes:
      - Add error handling in the database query function. When a database error
      occurs, it is logged in the server and a plain text response is returned to the
      user.
      - Implement the building of queries inside the API, which removes the
        need to have stored functions/procedures on the database, which is not
        flexible or efficient to maintain/extend.
      - Use route chaining to determine which function will build the query
        that needs to be executed. The last function is the one that actually
        sends the query to the database and send the response.
      
      Future Work:
      - Instead of returning a plain text response, return a HTTP 501 status,
        which is currently not possible. When one attempts to send such status
        the framework throws an error that the headers were already sent for
        the current request.
      - Chaining based on the route might not be the best solution here.
      Unverified
      1baf5471
  3. Aug 02, 2016
  4. Jul 25, 2016
  5. Jul 12, 2016
  6. Jul 11, 2016
  7. Jul 08, 2016
  8. Jul 07, 2016
  9. Jul 06, 2016
  10. Jul 01, 2016
    • João Victor Risso's avatar
      Implement matriculas in the API · da577da6
      João Victor Risso authored
      Implement the following aggregations:
      - per-state
      - per-region
      - country
      
      In order to use these queries one should use the /api/v1/matriculas route. When
      the 'agregar' query parameter is set, one could use the values 'estado' and 'regiao'
      to run the aggregation for state and region, respectively. Otherwise, if no parameters
      are supplied, it defaults to the whole country aggregation query.
      Unverified
      da577da6
  11. Jun 24, 2016
  12. Jun 15, 2016
Loading