![]() The structure of the request body should be like /bodyfat?age=ageValue&gender=genderValue&weight=weightValue&height=heightValue&activitylevel=levelĪn example of the request is /bodyfat?age=30&gender=male&weight=80&height=178&activitylevel=level_1 } How to use parameters to request properly for /dailycalorie endpoint? ‘level _ 6’ : “ Very intense exercise daily, or physical job” ‘level _ 5’ : “ Intense exercise 6-7 times/week”, ‘level _ 4’ : “ Daily exercise or intense exercise 3-4 times/week”, ‘level _ 3’ : “ Exercise 4-5 times/week”, ‘level _ 2’ : “ Exercise 1-3 times/week”, ![]() ‘level _ 1’ : “ Sedentary: little or no exercise”, There are six possible activity levels which are The unit of weight is in cm.Īctivitylevel represent that an activity’s value how much bigger than the basal metabolic rate (BMR). It cannot be smaller than 130 or bigger than 230. It should use to input the user’s height. What are the Parameters of The /dailycalorie? These goals are maintain, mild-lose, normal-lose, extreme loss, mild-gain, normal-gain, extreme gain weight. You can calculate your daily calorie req. Knowing your daily calorie requirements is important to achieve your final goal. Our body is burning calories every day with respect to activity level. The structure of the request body should be like /bodyfat?age=ageValue&gender=genderValue&weight=weightValue&height=heightValue&neck=neckValue&waist=waistValue&hip=hipValueĪn example of the request is /bodyfat?age=30&gender=male&weight=80&height=178&neck=50&waist=96&hip=99 How to use parameters to request properly for /bodyfat endpoint? It cannot be smaller than 40 or bigger than 130. It should use to input the user’s hip circumference. It should use to input the user’s waist circumference. It cannot be smaller than 20 or bigger than 80. It should use to input the user’s neck circumference. It cannot be smaller than 40 or bigger than 160. It should use to input the user’s gender. Additionally, Jackson & Pollard’s ideal body fat percentage table is used to show the user’s health status. In this endpoint, two methods are used to calculate body fat percentage. Knowing the body fat percentage of the body would be helpful to make a well-prepared fitness program. #/bodyfat What is the goal of using body fat? The structure of the request body should be like /bmi?age=ageValue&weight=weightValue&height=heightValueĪn example of the request is /bmi?age=30&weight=80&height=178 How to use parameters to request properly for /bmi endpoint? There are three parameters of ‘bmi endpoint’. The main goal of using it is to decide whether a person is overweight, normal-weight, or underweight. The unit of weight is kg while height is cm. It is calculated by using the mass(weight) and height of him/her. The BMI value refers to the body mass index of a person. Response Codes 200 -> ok 400 -> bad request ( check the structure of request body) 422 -> unprocessable entity ( check the variable values) Endpoints How to use parameters to request properly?.What are the parameters of this endpoint?.In every endpoint, there are 3 important titles that are The aim of the documentation is to give a map for endpoints and explain response codes.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |