Server API - TaisukeYasuda/cmimc-problem-proposals GitHub Wiki

Authentication Routes

  • POST /signup: Requires { name, email, andrewid, password }
  • POST /login: Requires { email, password }

Problem Proposal Routes

These routes are all subroutes of /api/proposals.

  • POST /: Posts a new problem proposal. Requires { subject, difficulty, problem, answer, solution } and a token in the header.
  • GET /:staffId: Gets all the problem proposals written by the user with staff id staffId.