Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/maxogod/gymchad-server
- Owner: maxogod
- Created: 2023-08-16T20:58:51.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-09-09T16:06:32.000Z (over 1 year ago)
- Last Synced: 2023-09-09T17:24:44.770Z (over 1 year ago)
- Topics: backend, full-stack, java, mongodb, spring, spring-boot, spring-security
- Language: Java
- Homepage: https://gymchad.onrender.com
- Size: 90.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)