HackGT / SponsorshipPortal

[in development] Web interface for sponsors to view participant information. Integrates with HackGT/registration
GNU General Public License v3.0
7 stars 0 forks source link

Implement basic participant controller functionality #59

Open bunsenmcdubbs opened 6 years ago

bunsenmcdubbs commented 6 years ago

Relevant routes from #58 (to be finalized):

Route Method Description Request Response
/participant GET Get all participants - {participants: []<participant>}
/participant/flag PUT Flag participants for the current user {participant_ids: []<id>} {status: "ok"}
/participant/flag DELETE Unflag participants for the current user {participant_ids: []<id>} {status: "ok"}
/participant/flagged GET Get all flagged participants for the current user - {participants: []<participant>}
/participant/{id}/flag POST Flag participant for the current user None {status: "ok"}
/participant/{id}/flag DELETE Unflag participant for the current user None {status: "ok"}

Paths/interface will be finalized in #58

If #57 (user authentication middleware) is not yet complete, this can be initially implemented with a static user and wait until that feature is merged.