Skip to content

Releases: maxogod/gymchad-server

Gymchad Server 1.0.1

23 Aug 00:22
Compare
Choose a tag to compare

First version of Gymchad server

Endpoints:

/api/auth

The first two endpoints will open a new session in the db for the user

  • POST /register (needs email, googleId, name, picture)
  • POST /login (needs email and googleId)
  • GET /session (to get the user that is currently logged in)
  • GET /logout (closes the open session and removes it from the db)

/api/activity

  • POST / (creates a new activity for the session user, needs name, banner and a list of exercises)
  • GET / (gets all activities of session user)
  • GET / (gets the specific activity if it belongs to the user)
  • PUT / (update activity info, needs same fields as activity creation except for exercises)
  • POST /add-exercise/ (adds exercise to the activity)
  • DELETE / (deletes the activity from the user)

/api/exercises

  • PUT / (edit exercise)
  • DELETE / (deletes exercise from its activity)

Gymchad Server 1.0.0

20 Aug 23:26
Compare
Choose a tag to compare

First version of Gymchad server

Endpoints:

/api/auth

The first two endpoints will open a new session in the db for the user

  • POST /register (needs email, googleId, name, picture)
  • POST /login (needs email and googleId)
  • GET /session (to get the user that is currently logged in)
  • GET /logout (closes the open session and removes it from the db)

/api/activity

  • POST / (creates a new activity for the session user, needs name, banner and a list of exercises)
  • GET / (gets all activities of session user)
  • GET / (gets the specific activity if it belongs to the user)
  • PUT / (update activity info, needs same fields as activity creation except for exercises)
  • POST /add-exercise/ (adds exercise to the activity)
  • DELETE / (deletes the activity from the user)

/api/exercises

  • PUT / (edit exercise)
  • DELETE / (deletes exercise from its activity)