Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/maxogod/gymchad-server

This is the backend for the Gymchad website
https://github.com/maxogod/gymchad-server

backend full-stack java mongodb spring spring-boot spring-security

Last synced: about 2 months ago
JSON representation

This is the backend for the Gymchad website

Awesome Lists containing this project

README

        

# gymchad-server

[(checkout the frontend)](https://github.com/maxogod/gymchad-app)

~ Website to organize different fitness activities such as dancing/leg day/boxing and the exercises that belong to that activity, including images of the exercise, a brief description or annotation, sets/reps or duration time.

~ For people like me, who always forget what good exercises they can do for each different activity (or muscle group), and want a more **aethetic** visual representation of them instead of writing them all on paper or something boring like that.

## 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)