International-Aerobatic-Club / iaccdb

IAC Aerobatic Contest Database
iaccdb.iac.org
1 stars 1 forks source link

Provide has_results flag in contests.json #135

Closed wbreeze closed 5 years ago

wbreeze commented 5 years ago

The data returned from, for example, https://iaccdb.iac.org/contests.json does not indicate whether result data is present for a contest.

This need arises from the api added about two years ago, that creates an empty (no data) contest record and assigns an id when the someone enters a new contest at iac.org. The endpoint that creates a contest via api is the contests controller create method (authenticated to a contest_admin) at https://github.com/wbreeze/iaccdb/blob/7b1454e93d71a2087bc4cdd6dbbaa47c9d24080b/app/controllers/contests_controller.rb#L31

wbreeze commented 5 years ago
Screen Shot 2019-09-30 at 5 22 00 PM