OpenTechStrategies / torque

A flexible web-based open source system for collaboratively evaluating proposals.
1 stars 2 forks source link

Revamp the API #50

Closed frankduncan closed 3 years ago

frankduncan commented 3 years ago

This does a wholesale rebuild of the API. It establishes new api endpoints for external users, which are now standard:

In addition, some internal endpoints were reworked to use the new api routes:

All of these endpoints were duplicated for a new configuration SHEETS_ALIAS and ROWS_ALIAS variables, so that the endpoints are customizable as so:

The edit functionality also uses these endpoints now, instead of custom api.

Lastly, a last_updated flag was added to sheets in order return that information with the sheet so that api users can see if they need to refresh their cached data.

This resolves torque-sites issue #84: Feedback on Grants API