My Fit GPT
My Fit GPT · GPT アクション
MyFitGPT help to upload and track trainning plan and like a pro
POST /functions/v1/renderupload training plan to myfitgpt cloud to keep track in other device (only support one week training plan)
元の API スキーマ
{
"openapi": "3.0.0",
"info": {
"title": "MyFitGPT help to upload and track trainning plan and like a pro",
"version": "0.2.1"
},
"servers": [
{
"url": "https://xyrolrcyjlidsymgwmrb.supabase.co"
}
],
"paths": {
"/functions/v1/render": {
"post": {
"summary": "upload training plan to myfitgpt cloud to keep track in other device (only support one week training plan)",
"operationId": "uploadPlan",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"day": {
"type": "string",
"description": "the training day in iso day format for example 2023-10-01"
},
"title": {
"type": "string",
"description": "the training title for example shoulders & leg"
},
"notice": {
"type": "string",
"description": "the training notice should be taking carefully"
},
"motivation": {
"type": "string",
"description": "a recommend motivation quote without by information"
},
"motivation_by": {
"type": "string",
"description": "the guy who said motivation quote"
},
"activities": {
"type": "array",
"maxItems": 100,
"items": {
"$ref": "#/components/schemas/Activity"
}
}
}
}
}
}
},
"responses": {
"200": {
"description": "Successfully rendered training plan detail guide as a markdown and image as well.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"link": {
"type": "string",
"description": "the training link, which could click to track and record your training better"
},
"id": {
"type": "string",
"description": "the temp plan id generated"
}
}
}
}
}
},
"400": {
"description": "Bad request. HTML and CSS are required.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
}
}
}
}
}
},
"500": {
"description": "Internal server error.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
}
}
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"Activity": {
"type": "object",
"required": [
"title",
"type"
],
"properties": {
"title": {
"type": "string",
"description": "the activity title, for example Muscle Stretching"
},
"type": {
"type": "string",
"description": "the activity type try to loopup your supported action list, for example air_bike"
},
"description": {
"type": "string",
"description": "the activity detail description, for example notice or guide"
},
"reps": {
"type": "integer",
"description": "the activity reps"
},
"sets": {
"type": "integer",
"description": "the activity sets"
},
"duration_minutes": {
"type": "integer",
"description": "the activity estimated exerice in minutes"
},
"muscle_groups": {
"type": "array",
"description": "the activity will training muscle group name",
"items": {
"type": "string"
}
}
}
}
}
}
}