https://github.com/rekram1-node/workout-backend
https://github.com/rekram1-node/workout-backend
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/rekram1-node/workout-backend
- Owner: rekram1-node
- License: mit
- Created: 2023-04-11T00:15:13.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-26T02:58:35.000Z (about 3 years ago)
- Last Synced: 2024-06-21T01:58:45.958Z (almost 2 years ago)
- Language: Go
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# workout-backend
CS API for my application
Current Features
* JWT User Auth
* User CRUD Operations
Coming Soon
* Logout Endpoint
* Refresh token?
## Usage
### Create Meso:
Endpoint: /client-services/meso
Body:
```json
{
"Name": "Brand New Meso",
"Monday": {
"Lifts": [
{
"Exercise": "Squat"
}
]
},
"Tuesday": {
"Lifts": [
{
"Exercise": "Pulldown"
}
]
},
"Wednesday": {
"Lifts": [
{
"Exercise": "Bench Press"
}
]
},
"Thursday": {
"Lifts": [
{
"Exercise": "Leg Press"
}
]
},
"Friday": {
"Lifts": [
{
"Exercise": "Pull Up"
}
]
},
"Saturday": {
"Lifts": [
{
"Exercise": "Dumbell Bench"
}
]
},
"Sunday": {
"Lifts": []
}
}
```
Response:
```json
{
"UserUUID": "9ab4d6f7-eafb-4a47-99d4-15de066a7434",
"UserID": 4,
"UUID": "4bd81dc7-6720-4550-ab13-571c9e5267e2",
"Name": "Brand New Meso",
"Weeks": [
{
"MesoID": 0,
"Monday": {
"WeekID": 0,
"Lifts": [
{
"DayID": 0,
"exercise": "Squat",
"sets": 0,
"weight": 0,
"reps": 0,
"pump": 0,
"soreness": 0
}
]
},
"Tuesday": {
"WeekID": 0,
"Lifts": [
{
"DayID": 0,
"exercise": "Pulldown",
"sets": 0,
"weight": 0,
"reps": 0,
"pump": 0,
"soreness": 0
}
]
},
"Wednesday": {
"WeekID": 0,
"Lifts": [
{
"DayID": 0,
"exercise": "Bench Press",
"sets": 0,
"weight": 0,
"reps": 0,
"pump": 0,
"soreness": 0
}
]
},
"Thursday": {
"WeekID": 0,
"Lifts": [
{
"DayID": 0,
"exercise": "Leg Press",
"sets": 0,
"weight": 0,
"reps": 0,
"pump": 0,
"soreness": 0
}
]
},
"Friday": {
"WeekID": 0,
"Lifts": [
{
"DayID": 0,
"exercise": "Pull Up",
"sets": 0,
"weight": 0,
"reps": 0,
"pump": 0,
"soreness": 0
}
]
},
"Saturday": {
"WeekID": 0,
"Lifts": [
{
"DayID": 0,
"exercise": "Dumbell Bench",
"sets": 0,
"weight": 0,
"reps": 0,
"pump": 0,
"soreness": 0
}
]
},
"Sunday": {
"WeekID": 0,
"Lifts": []
}
}
]
}
```