-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathchatgptplugin.planfit.ai.yaml
103 lines (102 loc) · 3.4 KB
/
chatgptplugin.planfit.ai.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
openapi: 3.0.1
info:
title: Planfit
description: Plugin for recommending workout routine. It also gives you a guide with video for each exercise.
version: "v1"
servers:
- url: https://chatgptplugin.planfit.ai/
paths:
/get-workout-routine/:
post:
operationId: getWorkoutRoutine
summary: Get today's workout routine.
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/recommendWorkoutRoutineRequest"
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/getWorkoutRoutineResponse"
components:
schemas:
recommendWorkoutRoutineRequest:
type: object
properties:
gender:
type: string
description: User's Gender. M or F or O. M is Male, F is Female, O is Other.
required: true
fitness_level:
type: integer
description: User's level of fitness. 1 to 5, 1 is Intoductory, 2 is Beginner, 3 is Intermediate, 4 is Advanced, 5 is Expert.
required: true
body_weight:
type: number
description: User's Body weight. If user don't want to tell, it has to be null. If user enter it as pound, it should be converted to kg.
required: false
parts:
type: array
items:
type: string
description: Muscle parts that are trained today. They should be in the list. (leg, back, chest, shoulder, core, biceps, triceps, forearm, cardio)
required: true
location:
type: string
description: The location where user work out, gym or home. If home is selected, the workout routine will be body weight exercise.
required: true
user_language_code:
type: string
description: User's language code that should be reconized from user's prompts.
required: false
getWorkoutRoutineResponse:
type: array
items:
$ref: "#/components/schemas/getWorkoutRoutineResponseItem"
getWorkoutRoutineResponseItem:
type: object
properties:
training_model_id:
type: integer
name:
type: string
description: The name of this exercise.
weight:
type: number
nullable: true
description: weight in kg. It should be shown to user.
weight_lbs:
type: number
nullable: true
description: weight in lbs(pound). It should be shown to user.
reps:
type: number
nullable: true
minutes:
type: number
nullable: true
type:
type: string
description: Type of exercise. ex. normal, body_weight, time, etc.
set_count:
type: integer
alternatives:
type: array
items:
type: object
properties:
name:
type: string
description: Alternative training name.
guide_url:
type: string
description: The guide web page url of training. It should be provided as hyperlink.
description: Alternative training name list.
guide_url:
type: string
description: The guide web page url of training. It should be provided as hyperlink.