---
# System prepended metadata

title: API NXL

---

# API NXL


POSTMAN Credentials

nxlfitnessmail@gmail.com
for password: contact hussain abid


## *- Images folder

/workout/workout  => for workout images
/workout/custom_media         => for workout custom media images
/workout/nxl_media         => for workout custom media images
/workout/trainer_media         => for workout custom media images


------------

## *- Look Up:

### 1) Verification Codes:
    200 - Means verified
    201 - Means Pending
    202 - Rejected
    203 - Not applied
------------



***** Generic Structure Introduction ****
## *- Api Collection Name:*

Api Name:

```shell=
url: 
    /url

method:
    GET

headers:
    - Field name (Optional)    

params:

body:

sample response:
```
------------
***** Lets dive into the REAL WORLD ****

##  1- Trainer Verification:

### 1) Get Trainer Verification Data:

```shell=
url: 
    /v2/trainer/verification/get

method:
    GET

params:
      user_id  (optional) (if you need specific user verification data then login should be by admin)
   
sample response:
{
    "code": "1",
    "data": {
        "full_name": "Hussain Abid 11111111111111",
        "address": "US",
        "certificate_validation_date": "2018-10-02",
        "passport_front": {
            "img": "http://cdn.nxlfitness.com/verification/1554363361-bfjpg.jpg",
            "thumb": "http://cdn.nxlfitness.com/verification/small/1554363361-bfjpg.jpg"
        },
        "passport_back": {
            "img": "http://cdn.nxlfitness.com/verification/1554363361-dfjpg.jpg",
            "thumb": "http://cdn.nxlfitness.com/verification/small/1554363361-dfjpg.jpg"
        },
        "certificate_front": {
            "img": "http://cdn.nxlfitness.com/verification/1554363361-dfjpg.jpg",
            "thumb": "http://cdn.nxlfitness.com/verification/small/1554363361-dfjpg.jpg"
        },
        "certificate_back": {
            "img": "http://cdn.nxlfitness.com/verification/1554363361-fefjpg.jpg",
            "thumb": "http://cdn.nxlfitness.com/verification/small/1554363361-fefjpg.jpg"
        },
        "selfie_with_certificate": {
            "img": "http://cdn.nxlfitness.com/verification/1554363361-jpg.jpg",
            "thumb": "http://cdn.nxlfitness.com/verification/small/1554363361-jpg.jpg"
        }
    },
    "message": "",
    "verification_application_status": "202",
    "verification_message": "user_rejected",
    "objection": {
        "full_name": "Your name is incorrect",
        "address": "address is not real"
    }
}

```

### 2) Get Trainer Verification Objection:

:::danger
NOTE: this web service has been deprecated and moved with /v2/trainer/verification/get (Get Trainer Verification Data).
:::

```shell=
url: 
    /v2/trainer/verification/get_objection

method:
    GET


sample response:
{
    "code": "1",
    "data": null,
    "message": " ",
    "objection": {
        "full_name": "Your name is incorrect",
        "address": "address is not real"
    }
}
```

### 3) Trainer Verification Action:

:::info
NOTE: the user who is logged in must be admin type of user to approve and reject application.
:::

```shell=
url: 
    /v2/trainer/verification/action

method:
    POST

body:
    - user_id 
    - status:  [approve | reject | remove]

        if reject 
        - objection:  [{"field_name":"","message":""}]
            
            field_name options: [
  
            full_name | 
            address | 
            street | 
            state | 
            certificate_validation_date | 
            passport_front | 
            passport_back | 
            certificate_front | 
            certificate_back | 
            selfie_with_certificate 

            ]
                
```
### 4) Trainer Verification Apply:

```shell=
url: 
    /v2/trainer/verification/apply

method:
    POST

body:
    - is_image_name [true] (optional) (to send the only the file name to the below field like e.g abc.jpg)
    - full_name
    - address  
    - certificate_validation_date
    - passport_front 
    - passport_back 
    - certificate_front 
    - certificate_back
    - selfie_with_certificate 
                    
```


### 5) Trainer Verification Update:

```shell=
url: 
    /v2/trainer/verification/update

method:
    POST

body:

    - is_image_name [true] (optional) (to send the only the file name to the below field like e.g abc.jpg)

    (Fields which are rejected from following)
    - full_name
    - address
    - certificate_validation_date
    - passport_front 
    - passport_back 
    - certificate_front 
    - certificate_back
    - selfie_with_certificate 
                    
```

##  2- Timeline:


### 2.1) Get Timeline:


```shell=
url: 
    /v2/timeline/

method:
    GET

params:
    - offset (optional)(number)    
    - data_type  (optional) (type: array) [photo | recipe | workout]
                    
```

### 2.2) Add Photo:

```shell=
url: 
    /v2/timeline/add

method:
    POST

body:
    - data_type (string) photo 
    - hash_tags (e.g #new #awesome)

    (At least one of following field must be present)
    - description
    - photo[] 
                    
```

### 2.3) Modify Photo:


```shell=
url: 
    /v2/timeline/update

method:
    POST

body:
    - photo_id
    - hash_tags (e.g #new #awesome)    (if changed it will be replaced by existing one)
    
    (At least one of following field must be present)
    - description       (if changed existing one will be removed)
    - photo[]
    - delete_description  (string) true       (if want to delete existing description, this option is there that when you have description but you want to remove it)
    - delete_image_ids                 (if want to delete existing images)
                    
```

### 2.4) Get Timeline Details:


```shell=
url: 
    /v2/timeline/details

method:
    GET

params:
    - id
    - type [photo | recipe | workout | workout_cardio | workout_strength]     
                    
```

### 2.5) Add Workout:


```shell=
url: 
    /v2/timeline/add

method:
    GET

body:
    
   {
    "data_type": "workout",
    "title": "title",
    "level_id": "2",
    "description": "description",
    "price": "223",
    "status":1,
    "free_access":[
        "633"
    ],
    "categories":[
    	"1",
    	"2"
     ],
     "training_phase":[
    	"1",
    	"2"
     ],
     "media":{
            "files":[{
            "name":"abc.jpg",
            "type":"image"
            },
            {
            "name":"def.jpg",
            "type":"video"
            }
         ]
     },
    "builder": {
        "warm_up": [
            {
                "block_type_id": "5",
                "sort_number": "1",
                "rounds":"2",
                "zones":[{
            		"number":"5",
            		"time":"00:15:00",
            		"sort_number":"0"
                },
                {
            		"number":"2",
            		"time":"00:12:00",
            		"sort_number":"1"
                }
                
                ]
            },
            {
                "block_type_id": "12",
                "sort_number": "1",
                "exercises": [
                    {
                        "id": "12",
                        "sets": [
                            {
                        
                        	    "rep_type":"count",
                                "reps": "50",
                                "rest": "20s",
                                "tempo": "1/2/3",
                                "sort_number": "12"
                               
                            },
                            {
                                "rep_type":"count",
                                "reps": "50",
                                "rest": "20s",
                                "tempo": "4/5/6"
                                
                            }
                        ],
                        "equipments": [
                            "24",
                            "56"
                        ],
                        "coaching_tips": [
                            "testing1",
                            "testing2"
                        ],
                        "sort_number": "1",
                        "media": {
                            "type": "nxl"
                        }
                    },
                    {
                        "id": "13",
                        "sets": [
                            {
                        
                        	    "rep_type":"count",
                                "reps": "50",
                                "rest": "20s",
                                "tempo": "1/2/3",
                                "sort_number": "12"
                               
                            },
                            {
                            	"rep_type":"time",
                                "reps": "50",
                                "rest": "20s",
                                "tempo": "4/5/6"
                                
                            }
                        ],
                        "equipments": [
                            "24",
                            "56"
                        ],
                        "coaching_tips": [
                            "testing1",
                            "testing2"
                        ],
                        "sort_number": "1",
                        "media": {
                            "type": "trainer"
                        }
                    },
                    {
                        "id": "14",
                        "sets": [
                            {
                        
                                "reps": "50",
                                "rest": "20s",
                                "tempo": "1/2/3",
                                "sort_number": "12",
                                "rep_type":"time",
                                "user_params":[
                                {
                                "user_id":"23",
                                "weight":"25"
                                }]
                               
                            },
                            {
                                "reps": "50",
                                "rest": "20s",
                                "tempo": "4/5/6",
                                "rep_type":"count"
                                
                            }
                        ],
                        "equipments": [
                            "24",
                            "56"
                        ],
                        "coaching_tips": [
                            "testing1",
                            "testing2"
                        ],
                        "sort_number": "1",
                        "media": {
                            "type": "custom",
                            "files":[{
                            "name":"abc.jpg",
                            "type":"image"
                            },
                            {
                            "name":"def.jpg",
                            "type":"video"
                            }
                         ]
                        }
                    }
                
                ]
            }
        ]
    }
}
    
                    
```


### 2.5) GET Workout Timeline list:


```shell=
url: 
    /v2/timeline

method:
    GET

params:
    
    "offset": "0"  (Optional),
    "data_type" : "['workout']",
                  
```

### 2.5) GET Workout Full Depth details:


```shell=
url: 
    /v2/timeline/details

method:
    GET

params:
    
   {
    "code": "1",
    "data": {
        "id": 2,
        "user_id": 633,
        "price": "223",
        "description": "description",
        "title": "title",
        "status": 1,
        "workout_level_id": 2,
        "created_at": "2019-05-09 09:52:33",
        "updated_at": "2019-05-09 09:52:33",
        "level_name": "Intermediate",
        "level_name_language": "english",
        "user_name": "Shahryar",
        "user_photo": "http://cdn.nxlfitness.com/profile/1548229391-EditedImagejpg.jpg",
        "categories": [
            {
                "id": 3,
                "workout_id": 2,
                "category_id": 1,
                "created_at": "2019-05-09 09:52:33",
                "updated_at": "2019-05-09 09:52:33",
                "name": "new_workout_category",
                "language": "english"
            },
            {
                "id": 4,
                "workout_id": 2,
                "category_id": 2,
                "created_at": "2019-05-09 09:52:33",
                "updated_at": "2019-05-09 09:52:33",
                "name": "new_workout_category_2",
                "language": "english"
            }
        ],
        "block": [
            {
                "id": 3,
                "workout_id": 2,
                "block_type_id": 5,
                "phase": "warm_up",
                "rest": null,
                "sort_number": 1,
                "created_at": "2019-05-09 09:52:33",
                "updated_at": "2019-05-09 09:52:33",
                "name": "cardio",
                "zones": {
                    "id": 2,
                    "workout_block_id": 3,
                    "rounds": 2,
                    "created_at": "2019-05-09 09:52:33",
                    "updated_at": "2019-05-09 09:52:33",
                    "sets": [
                        {
                            "id": 3,
                            "workout_block_cardio_id": 2,
                            "number": 5,
                            "time": "00:15:00",
                            "sort_number": 0,
                            "created_at": "2019-05-09 09:52:33",
                            "updated_at": "2019-05-09 09:52:33"
                        },
                        {
                            "id": 4,
                            "workout_block_cardio_id": 2,
                            "number": 2,
                            "time": "00:12:00",
                            "sort_number": 1,
                            "created_at": "2019-05-09 09:52:33",
                            "updated_at": "2019-05-09 09:52:33"
                        }
                    ]
                }
            },
            {
                "id": 4,
                "workout_id": 2,
                "block_type_id": 12,
                "phase": "warm_up",
                "rest": null,
                "sort_number": 1,
                "created_at": "2019-05-09 09:52:33",
                "updated_at": "2019-05-09 09:52:33",
                "name": null,
                "exercises": [
                    {
                        "id": 4,
                        "exercise_id": 12,
                        "workout_block_id": 4,
                        "media_type": "nxl",
                        "rest": null,
                        "sort_number": 1,
                        "created_at": "2019-05-09 09:52:33",
                        "updated_at": "2019-05-09 09:52:33",
                        "title": null,
                        "sets": [
                            {
                                "id": 8,
                                "workout_block_exercise_id": 4,
                                "rep_type": "count",
                                "repo": "50",
                                "tempo": "4/5/6",
                                "rest": "20s",
                                "sort_number": 0,
                                "created_at": "2019-05-09 09:52:33",
                                "updated_at": "2019-05-09 09:52:33",
                                "user_params": []
                            },
                            {
                                "id": 7,
                                "workout_block_exercise_id": 4,
                                "rep_type": "count",
                                "repo": "50",
                                "tempo": "1/2/3",
                                "rest": "20s",
                                "sort_number": 12,
                                "created_at": "2019-05-09 09:52:33",
                                "updated_at": "2019-05-09 09:52:33",
                                "user_params": []
                            }
                        ],
                        "coaching_tips": [
                            {
                                "id": 7,
                                "workout_block_exercise_id": 4,
                                "tip": "testing1",
                                "created_at": "2019-05-09 09:52:33",
                                "updated_at": "2019-05-09 09:52:33"
                            },
                            {
                                "id": 8,
                                "workout_block_exercise_id": 4,
                                "tip": "testing2",
                                "created_at": "2019-05-09 09:52:33",
                                "updated_at": "2019-05-09 09:52:33"
                            }
                        ],
                        "equipments": [
                            {
                                "id": 7,
                                "workout_block_exercise_id": 4,
                                "equipment_id": 24,
                                "created_at": "2019-05-09 09:52:33",
                                "updated_at": "2019-05-09 09:52:33",
                                "title": null
                            },
                            {
                                "id": 8,
                                "workout_block_exercise_id": 4,
                                "equipment_id": 56,
                                "created_at": "2019-05-09 09:52:33",
                                "updated_at": "2019-05-09 09:52:33",
                                "title": null
                            }
                        ],
                        "media": []
                    },
                    {
                        "id": 5,
                        "exercise_id": 13,
                        "workout_block_id": 4,
                        "media_type": "trainer",
                        "rest": null,
                        "sort_number": 1,
                        "created_at": "2019-05-09 09:52:33",
                        "updated_at": "2019-05-09 09:52:33",
                        "title": null,
                        "sets": [
                            {
                                "id": 10,
                                "workout_block_exercise_id": 5,
                                "rep_type": "time",
                                "repo": "50",
                                "tempo": "4/5/6",
                                "rest": "20s",
                                "sort_number": 0,
                                "created_at": "2019-05-09 09:52:33",
                                "updated_at": "2019-05-09 09:52:33",
                                "user_params": []
                            },
                            {
                                "id": 9,
                                "workout_block_exercise_id": 5,
                                "rep_type": "count",
                                "repo": "50",
                                "tempo": "1/2/3",
                                "rest": "20s",
                                "sort_number": 12,
                                "created_at": "2019-05-09 09:52:33",
                                "updated_at": "2019-05-09 09:52:33",
                                "user_params": []
                            }
                        ],
                        "coaching_tips": [
                            {
                                "id": 9,
                                "workout_block_exercise_id": 5,
                                "tip": "testing1",
                                "created_at": "2019-05-09 09:52:33",
                                "updated_at": "2019-05-09 09:52:33"
                            },
                            {
                                "id": 10,
                                "workout_block_exercise_id": 5,
                                "tip": "testing2",
                                "created_at": "2019-05-09 09:52:33",
                                "updated_at": "2019-05-09 09:52:33"
                            }
                        ],
                        "equipments": [
                            {
                                "id": 9,
                                "workout_block_exercise_id": 5,
                                "equipment_id": 24,
                                "created_at": "2019-05-09 09:52:33",
                                "updated_at": "2019-05-09 09:52:33",
                                "title": null
                            },
                            {
                                "id": 10,
                                "workout_block_exercise_id": 5,
                                "equipment_id": 56,
                                "created_at": "2019-05-09 09:52:33",
                                "updated_at": "2019-05-09 09:52:33",
                                "title": null
                            }
                        ],
                        "media": []
                    },
                    {
                        "id": 6,
                        "exercise_id": 14,
                        "workout_block_id": 4,
                        "media_type": "custom",
                        "rest": null,
                        "sort_number": 1,
                        "created_at": "2019-05-09 09:52:33",
                        "updated_at": "2019-05-09 09:52:33",
                        "title": null,
                        "sets": [
                            {
                                "id": 12,
                                "workout_block_exercise_id": 6,
                                "rep_type": "count",
                                "repo": "50",
                                "tempo": "4/5/6",
                                "rest": "20s",
                                "sort_number": 0,
                                "created_at": "2019-05-09 09:52:33",
                                "updated_at": "2019-05-09 09:52:33",
                                "user_params": []
                            },
                            {
                                "id": 11,
                                "workout_block_exercise_id": 6,
                                "rep_type": "time",
                                "repo": "50",
                                "tempo": "1/2/3",
                                "rest": "20s",
                                "sort_number": 12,
                                "created_at": "2019-05-09 09:52:33",
                                "updated_at": "2019-05-09 09:52:33",
                                "user_params": []
                            }
                        ],
                        "coaching_tips": [
                            {
                                "id": 11,
                                "workout_block_exercise_id": 6,
                                "tip": "testing1",
                                "created_at": "2019-05-09 09:52:33",
                                "updated_at": "2019-05-09 09:52:33"
                            },
                            {
                                "id": 12,
                                "workout_block_exercise_id": 6,
                                "tip": "testing2",
                                "created_at": "2019-05-09 09:52:33",
                                "updated_at": "2019-05-09 09:52:33"
                            }
                        ],
                        "equipments": [
                            {
                                "id": 11,
                                "workout_block_exercise_id": 6,
                                "equipment_id": 24,
                                "created_at": "2019-05-09 09:52:33",
                                "updated_at": "2019-05-09 09:52:33",
                                "title": null
                            },
                            {
                                "id": 12,
                                "workout_block_exercise_id": 6,
                                "equipment_id": 56,
                                "created_at": "2019-05-09 09:52:33",
                                "updated_at": "2019-05-09 09:52:33",
                                "title": null
                            }
                        ],
                        "media": [
                            {
                                "id": 3,
                                "workout_block_exercise_id": 6,
                                "type": "image",
                                "name": "http://cdn.nxlfitness.com/workout/custom_media/abc.jpg",
                                "created_at": "2019-05-09 09:52:33",
                                "updated_at": "2019-05-09 09:52:33"
                            },
                            {
                                "id": 4,
                                "workout_block_exercise_id": 6,
                                "type": "video",
                                "name": "http://cdn.nxlfitness.com/workout/custom_media/def.jpg",
                                "created_at": "2019-05-09 09:52:33",
                                "updated_at": "2019-05-09 09:52:33"
                            }
                        ]
                    }
                ]
            }
        ],
        "media": [
            {
                "id": 3,
                "workout_id": 2,
                "type": "image",
                "name": "http://cdn.nxlfitness.com/workout/workout/abc.jpg",
                "created_at": "2019-05-09 09:52:33",
                "updated_at": "2019-05-09 09:52:33"
            },
            {
                "id": 4,
                "workout_id": 2,
                "type": "video",
                "name": "http://cdn.nxlfitness.com/workout/workout/def.jpg",
                "created_at": "2019-05-09 09:52:33",
                "updated_at": "2019-05-09 09:52:33"
            }
        ],
        "training_phase": [
            {
                "id": 1,
                "workout_id": 2,
                "training_phase_id": 1,
                "created_at": "2019-05-09 09:52:33",
                "updated_at": "2019-05-09 09:52:33",
                "name": "new_training_phase_1",
                "language": "english"
            },
            {
                "id": 2,
                "workout_id": 2,
                "training_phase_id": 2,
                "created_at": "2019-05-09 09:52:33",
                "updated_at": "2019-05-09 09:52:33",
                "name": "new_training_phase_2",
                "language": "english"
            }
        ]
    },
    "message": "Detail listing."
}
    
                    
```

### 2.6) Add  Exercise:


```shell=
url: 
    /v2/exercise/add

method:
    POST

body:
    
   
	"name":"new_exercise_3",
	"language": "english",
	"coaching_tips":[
		"Testing 1",
		"Testing 2"
	],
	"equipments":[
	{
		"name":"testing",
		"language":"english"
	},
	{
	     "id":"1"
	}
	],
	"media":[{
		"name":"abc.jpg",
		"type":"image"
	},
	{
		"name":"abcd.jpg",
		"type":"video"
	}
	
	]

                    
```


### 2.7) GET Workout Exercise(s):


```shell=
Will return all exercises if id is not specified

url: 
    /v2/exercise/

method:
    GET

body:
    
   	"id":"1" (optional)
    
    
response:

    "code": "1",
    "data": [
        {
            "id": 1,
            "name": "new_exercise_3",
            "language": "english",
            "added_by": 633,
            "status": 1,
            "created_at": "2019-05-06 10:51:38",
            "updated_at": "2019-05-06 10:51:38",
            "coaching_tips": [
                {
                    "id": 1,
                    "exercise_id": 1,
                    "tip": "Testing 1",
                    "status": 1,
                    "added_by": 633,
                    "created_at": "2019-05-06 10:51:38",
                    "updated_at": "2019-05-07 05:45:40"
                },
                {
                    "id": 2,
                    "exercise_id": 1,
                    "tip": "Testing 2",
                    "status": 1,
                    "added_by": 633,
                    "created_at": "2019-05-06 10:51:38",
                    "updated_at": "2019-05-07 05:45:41"
                }
            ]
        },
        {
            "id": 2,
            "name": "new_exercise_3",
            "language": "english",
            "added_by": 633,
            "status": 1,
            "created_at": "2019-05-06 13:19:09",
            "updated_at": "2019-05-06 13:19:09",
            "coaching_tips": [
                {
                    "id": 3,
                    "exercise_id": 2,
                    "tip": "Testing 1",
                    "status": 1,
                    "added_by": 633,
                    "created_at": "2019-05-06 13:19:09",
                    "updated_at": "2019-05-07 05:45:41"
                },
                {
                    "id": 4,
                    "exercise_id": 2,
                    "tip": "Testing 2",
                    "status": 1,
                    "added_by": 633,
                    "created_at": "2019-05-06 13:19:09",
                    "updated_at": "2019-05-07 05:45:41"
                }
            ],
            "equipments": [
                {
                    "id": 1,
                    "exercise_id": 2,
                    "equipment_id": "1",
                    "added_by": 633,
                    "created_at": "2019-05-06 10:51:38",
                    "updated_at": "2019-05-06 10:51:38",
                    "status": 1,
                    "name": "testing",
                    "language": "english"
                },
                {
                    "id": 1,
                    "exercise_id": 2,
                    "equipment_id": "1",
                    "added_by": 633,
                    "created_at": "2019-05-06 10:51:38",
                    "updated_at": "2019-05-06 10:51:38",
                    "status": 1,
                    "name": "testing",
                    "language": "english"
                },
                {
                    "id": 2,
                    "exercise_id": 2,
                    "equipment_id": "2",
                    "added_by": 633,
                    "created_at": "2019-05-06 13:19:09",
                    "updated_at": "2019-05-06 13:19:09",
                    "status": 1,
                    "name": "testing",
                    "language": "english"
                },
                {
                    "id": 1,
                    "exercise_id": 2,
                    "equipment_id": "1",
                    "added_by": 633,
                    "created_at": "2019-05-06 10:51:38",
                    "updated_at": "2019-05-06 10:51:38",
                    "status": 1,
                    "name": "testing",
                    "language": "english"
                }
            ],
            "media": {
                "type": "trainer",
                "data": [
                    {
                        "id": 7,
                        "exercise_id": 2,
                        "added_by": "633",
                        "type": "image",
                        "name": "http://cdn.nxlfitness.com/workout/trainer_media/abc.jpg",
                        "created_at": "2019-05-06 10:51:38",
                        "updated_at": "2019-05-06 10:51:38"
                    },
                    {
                        "id": 8,
                        "exercise_id": 2,
                        "added_by": "633",
                        "type": "video",
                        "name": "http://cdn.nxlfitness.com/workout/trainer_media/abcd.jpg",
                        "created_at": "2019-05-06 10:51:38",
                        "updated_at": "2019-05-06 10:51:38"
                    },
                    {
                        "id": 9,
                        "exercise_id": 2,
                        "added_by": "633",
                        "type": "image",
                        "name": "http://cdn.nxlfitness.com/workout/trainer_media/abc.jpg",
                        "created_at": "2019-05-06 13:19:09",
                        "updated_at": "2019-05-06 13:19:09"
                    },
                    {
                        "id": 10,
                        "exercise_id": 2,
                        "added_by": "633",
                        "type": "video",
                        "name": "http://cdn.nxlfitness.com/workout/trainer_media/abcd.jpg",
                        "created_at": "2019-05-06 13:19:09",
                        "updated_at": "2019-05-06 13:19:09"
                    }
                ]
            }
        }
    ],
    "message": " "      
                    
```

### 2.8) Add Workout Equipment:


```shell=
url: 
    /v2/workout/equipment/add

method:
    POST

body:
    
   	"name":"equipment name",
	"language": "english"

                    
```

### 2.8) GET Workout Equipment(s):


```shell=
Will return all equipment if id is not specified

url: 
    /v2/workout/equipment/

method:
    GET

body:
    
   	"id":"222" (optional)
                    
```

### 2.9) GET Block:


```shell=

url: 
    /v2/workout/block

method:
    GET

body:
             
```


### 2.10) GET Workout Category:


```shell=
postman request name:
 Workout => Get Category

url: 
    /v2/workout/category

method:
    GET

body:

response:
{
    "code": "1",
    "data": [
        {
            "id": 1,
            "name": "new_workout_category",
            "language": "english",
            "added_by": 633,
            "status": 1,
            "created_at": "2019-05-09 03:54:11",
            "updated_at": "2019-05-09 03:54:11",
            "level_id": 1
        },
        {
            "id": 2,
            "name": "new_workout_category_2",
            "language": "english",
            "added_by": 633,
            "status": 1,
            "created_at": "2019-05-09 04:14:42",
            "updated_at": "2019-05-09 04:14:42",
            "level_id": 2
        }
    ],
    "message": " "
}
             
```


### 2.11) Add Workout Category:


```shell=
postman request name:
 Workout => Add Category

url: 
    /v2/workout/category/add

method:
    POST

body:
    
   	"name":"name",
	"language": "english"

                    
```

### 2.12) GET Workout Training Phase:


```shell=
postman request name:
    Workout => Get Training Phase

url: 
    /v2/workout/training_phase

method:
    GET

body:

response:
{
    "code": "1",
    "data": [
        {
            "id": 1,
            "name": "new_training_phase_1",
            "language": "english",
            "added_by": 633,
            "status": 1,
            "created_at": "2019-05-09 03:47:47",
            "updated_at": "2019-05-09 09:27:17",
            "level_id": 1
        },
        {
            "id": 2,
            "name": "new_training_phase_2",
            "language": "english",
            "added_by": 633,
            "status": 1,
            "created_at": "2019-05-09 03:47:47",
            "updated_at": "2019-05-09 03:47:47",
            "level_id": 2
        }
    ],
    "message": " "
}
             
```


### 2.13) Add Workout Training Phase:


```shell=
postman request name:
    Workout => Add Training Phase

url: 
    /v2/workout/training_phase/add

method:
    POST

body:
    
   	"name":"name",
	"language": "english"

                    
```

### 2.14) GET Workout Level:


```shell=
postman request name:
    Workout => Get Level

url: 
    /v2/workout/level

method:
    GET

body:

response:
{
    "code": "1",
    "data": [
        {
            "id": 1,
            "name": "Beginner",
            "language": "english",
            "status": 1,
            "added_by": 1,
            "created_at": "2019-05-09 07:47:23",
            "updated_at": "2019-05-09 07:47:23",
            "level_id": 1
        },
        {
            "id": 2,
            "name": "Intermediate",
            "language": "english",
            "status": 1,
            "added_by": 1,
            "created_at": "2019-05-09 07:47:23",
            "updated_at": "2019-05-09 07:47:23",
            "level_id": 2
        },
        {
            "id": 3,
            "name": "Advanced",
            "language": "english",
            "status": 1,
            "added_by": 1,
            "created_at": "2019-05-09 07:47:52",
            "updated_at": "2019-05-09 07:47:52",
            "level_id": 3
        },
        {
            "id": 4,
            "name": "Expert",
            "language": "english",
            "status": 1,
            "added_by": 1,
            "created_at": "2019-05-09 07:47:52",
            "updated_at": "2019-05-09 07:47:52",
            "level_id": 4
        },
        {
            "id": 5,
            "name": "new_level",
            "language": "english",
            "status": 1,
            "added_by": 633,
            "created_at": "2019-05-09 03:01:14",
            "updated_at": "2019-05-09 03:01:14",
            "level_id": 5
        }
    ],
    "message": " "
}
             
```


### 2.15) Add Workout Level Type:


```shell=
postman request name:
    Workout => Add Level

url: 
    /v2/workout/level/add

method:
    POST

body:
    
   	"name":"name",
	"language": "english"
                    
```
### 2.16) Get Purchased Url of workout:


```shell=
postman request name:
    Workout => Get Purchased Workout

url: 
    /v2/workout/all

method:
    GET

body:
    {
        "code": "1",
        "data": [
            {
                "id": 44,
                "user_id": 646,
                "price": "223",
                "description": "description",
                "title": "title",
                "status": 0,
                "workout_level_id": 2,
                "created_at": "2019-05-13 09:36:37",
                "updated_at": "2019-05-13 09:36:37",
                "level_name": "Intermediate",
                "level_name_language": "english",
                "user_name": "Hussain",
                "user_photo": "http://cdn.nxlfitness.com/profile/1548069841-EditedImagejpg.jpg",
                "categories": [
                    {
                        "id": 52,
                        "workout_id": 44,
                        "category_id": 1,
                        "created_at": "2019-05-13 09:36:37",
                        "updated_at": "2019-05-13 09:36:37",
                        "name": "new_workout_category",
                        "language": "english"
                    },
                    {
                        "id": 53,
                        "workout_id": 44,
                        "category_id": 2,
                        "created_at": "2019-05-13 09:36:37",
                        "updated_at": "2019-05-13 09:36:37",
                        "name": "new_workout_category_2",
                        "language": "english"
                    }
                ],
                "block": [],
                "media": [],
                "training_phase": []
            },
            {
                "id": 45,
                "user_id": 633,
                "price": "223",
                "description": "description",
                "title": "title",
                "status": 0,
                "workout_level_id": 2,
                "created_at": "2019-05-13 09:37:02",
                "updated_at": "2019-05-13 09:37:02",
                "level_name": "Intermediate",
                "level_name_language": "english",
                "user_name": "Shahryar",
                "user_photo": "http://cdn.nxlfitness.com/profile/1548229391-EditedImagejpg.jpg",
                "categories": [
                    {
                        "id": 54,
                        "workout_id": 45,
                        "category_id": 1,
                        "created_at": "2019-05-13 09:37:02",
                        "updated_at": "2019-05-13 09:37:02",
                        "name": "new_workout_category",
                        "language": "english"
                    },
                    {
                        "id": 55,
                        "workout_id": 45,
                        "category_id": 2,
                        "created_at": "2019-05-13 09:37:02",
                        "updated_at": "2019-05-13 09:37:02",
                        "name": "new_workout_category_2",
                        "language": "english"
                    }
                ],
                "block": [],
                "media": [
                    {
                        "id": 42,
                        "workout_id": 45,
                        "type": "image",
                        "name": "http://cdn.nxlfitness.com/workout/workout/abc.jpg",
                        "created_at": "2019-05-13 09:37:02",
                        "updated_at": "2019-05-13 09:37:02"
                    },
                    {
                        "id": 43,
                        "workout_id": 45,
                        "type": "video",
                        "name": "http://cdn.nxlfitness.com/workout/workout/def.jpg",
                        "created_at": "2019-05-13 09:37:02",
                        "updated_at": "2019-05-13 09:37:02"
                    }
                ],
                "training_phase": [
                    {
                        "id": 45,
                        "workout_id": 45,
                        "training_phase_id": 1,
                        "created_at": "2019-05-13 09:37:02",
                        "updated_at": "2019-05-13 09:37:02",
                        "name": "new_training_phase_1",
                        "language": "english"
                    },
                    {
                        "id": 46,
                        "workout_id": 45,
                        "training_phase_id": 2,
                        "created_at": "2019-05-13 09:37:02",
                        "updated_at": "2019-05-13 09:37:02",
                        "name": "new_training_phase_2",
                        "language": "english"
                    }
                ]
            }
        ],
        "message": " "
    }
                    
```

### 2.17) Buy Workout:


```shell=
postman request name:
    Workout => Buy Workout

url: 
    /v1/buy/product

method:
    POST

body:
   {
	"type":"new_workout",
	"type_id":1,  //where type_id is workout id
	"buy_type":"add"
   }
                    
```

### 2.18) Add Workout Tracker:


```shell=
postman request name:
    Workout => Add Workout Tracker

url: 
    /v2/workout_tracker/add

method:
    POST

body:
       {
        "workout_id":"1",
        "average_heart_rate": "title",
        "calories_burned": "2",
        "total_duration": "22:00",
        "feeling_rating": "1",
        "notes":"This is overall workout note, i feel tired after the workout (optional)",
        "points_earned":"223",
        "equipment_used":[
        "Nike Shoes",
        "Sweat Shirt"
        ],
        "heart_rate":[
            {
                "current_zone":"1",
                "target_zone":"4",
                "rate":"160",
                "time":"12:00"
            },
            {
                "current_zone":"1",
                "target_zone":"4",
                "rate":"150",
                "time":"12:00"
            }
        ],
        "speed_rate":[
            {
                "rate":"150",
                "time":"12:00"
            },
            {
                "rate":"110",
                "time":"12:10"
            }
        ],
        "tracker":[
            {
                "workout_block_id":1,
                "exercises":[
                    {
                        "workout_block_exercise_id" :1,
                        "duration":"12:00",
                        "notes":"Feel pain at back",
                        "sets":[
                        {

                            "workout_block_exercise_set_id":1,
                            "reps":"15",
                            "tempo":"1/2/2",
                            "weight":"23",
                            "rest":"24s"
                        },
                        {

                            "workout_block_exercise_set_id":2,
                            "reps":"16",
                            "tempo":"1/2/2",
                            "weight":"23",
                            "rest":"24s"
                        },
                        {
                            "reps":"10",
                            "tempo":"1/2/2",
                            "weight":"23",
                            "rest":"24s"
                        }
                        ]
                    }
                ]
            }
        ]

    }
                    
```


### 2.19) Add Activity Tracker:


```shell=
postman request name:
    Workout => Add Activity Tracker

url: 
    /v2/activity_tracker/add

method:
    POST

body:
    {
	"activity_id":"1",
    "average_heart_rate": "title",
    "calories_burned": "2",
    "feeling_rating": "1",
    "total_duration": "22:00",
    "notes":"This is overall workout note, i feel tired after the workout (optional)",
    "points_earned":"223",
    "distance":"23",
    "max_speed":"223",
    "max_heart_rate":"223",
    "elevation":"",
    "equipment_used":[
    "Nike Shoes",
    "Sweat Shirt"
    ],
    "heart_rate":[
	    {
	    	"current_zone":"1",
	    	"target_zone":"4",
	    	"rate":"160",
	    	"time":"12:00"
	    },
	    {
	    	"current_zone":"1",
	    	"target_zone":"4",
	    	"rate":"150",
	    	"time":"12:00"
	    }
    ],
    "speed_rate":[
	    {
	    	"rate":"150",
	    	"time":"12:00"
	    },
	    {
	    	"rate":"110",
	    	"time":"12:10"
	    }
    ],
    "gps":[
    	{
    		"time":"12:10",
    		"log":"12.45",
    		"lat":"46.23"
    	},
    	{
    		"time":"12:15",
    		"log":"12.55",
    		"lat":"46.30"
    	}
    ],
    "zone":[
    	{
    		"time":"12:10",
    		"current_zone":"12.45"
    	},
    	{
    		"time":"12:10",
    		"current_zone":"12.45"
    	}
    ]
  
    }                    
```


### 2.20) GET All activities list:


```shell=
postman request name:
    Workout => Get Activities

url: 
    /v2/activities

method:
    GET

body:

response:
{
    "code": "1",
    "data": [
        {
            "id": 2,
            "title": "Aerobics",
            "image": "http://cdn.nxlfitness.com/activity/1515664646-aerobic.png",
            "image_hover": "http://cdn.nxlfitness.com/activity/1520843859-aerobic.png",
            "plain_hover": "http://cdn.nxlfitness.com/activity/1520843370-aerobic.png",
            "required": [
                "gps",
                "heart_rate_monitor"
            ]
        },
        {
            "id": 3,
            "title": "American Football",
            "image": "http://cdn.nxlfitness.com/activity/1515664638-americanfootball.png",
            "image_hover": "http://cdn.nxlfitness.com/activity/1520843852-americanfootball.png",
            "plain_hover": "http://cdn.nxlfitness.com/activity/1520843371-americanfootball.png",
            "required": [
                "heart_rate_monitor"
            ]
        },
        {
            "id": 4,
            "title": "Badminton",
            "image": "http://cdn.nxlfitness.com/activity/1515664630-badmintion.png",
            "image_hover": "http://cdn.nxlfitness.com/activity/1520843845-badmintion.png",
            "plain_hover": "http://cdn.nxlfitness.com/activity/1520843372-badmintion.png"
        },
        {
            "id": 5,
            "title": "Ballet",
            "image": "http://cdn.nxlfitness.com/activity/1515664594-ballet.png",
            "image_hover": "http://cdn.nxlfitness.com/activity/1520843838-ballet.png",
            "plain_hover": "http://cdn.nxlfitness.com/activity/1520843373-ballet.png"
        },
        {
            "id": 6,
            "title": "Baseball",
            "image": "http://cdn.nxlfitness.com/activity/1515664583-baseball.png",
            "image_hover": "http://cdn.nxlfitness.com/activity/1520843828-baseball.png",
            "plain_hover": "http://cdn.nxlfitness.com/activity/1520843374-baseball.png"
        },
        {
            "id": 7,
            "title": "Basketball",
            "image": "http://cdn.nxlfitness.com/activity/1515664572-basketball.png",
            "image_hover": "http://cdn.nxlfitness.com/activity/1520843822-basketball.png",
            "plain_hover": "http://cdn.nxlfitness.com/activity/1520843375-basketball.png"
        },
        {
            "id": 8,
            "title": "Beach Volleyball",
            "image": "http://cdn.nxlfitness.com/activity/1515664554-beachvolleyball.png",
            "image_hover": "http://cdn.nxlfitness.com/activity/1520843816-beachvolleyball.png",
            "plain_hover": "http://cdn.nxlfitness.com/activity/1520843376-beachvolleyball.png"
        },
        {
            "id": 9,
            "title": "Biking",
            "image": "http://cdn.nxlfitness.com/activity/1515664544-biking.png",
            "image_hover": "http://cdn.nxlfitness.com/activity/1520843810-biking.png",
            "plain_hover": "http://cdn.nxlfitness.com/activity/1520843377-biking.png"
        },
        {
            "id": 11,
            "title": "Body Attack",
            "image": "http://cdn.nxlfitness.com/activity/1515664519-bodyattack.png",
            "image_hover": "http://cdn.nxlfitness.com/activity/1520843792-bodyattack.png",
            "plain_hover": "http://cdn.nxlfitness.com/activity/1520843379-bodyattack.png"
        },
        {
            "id": 12,
            "title": "Body Combat",
            "image": "http://cdn.nxlfitness.com/activity/1515664510-bodycombat.png",
            "image_hover": "http://cdn.nxlfitness.com/activity/1520843784-bodycombat.png",
            "plain_hover": "http://cdn.nxlfitness.com/activity/1520843380-bodycombat.png"
        },
        {
            "id": 13,
            "title": "Body Jam",
            "image": "http://cdn.nxlfitness.com/activity/1515664500-bodyjam.png",
            "image_hover": "http://cdn.nxlfitness.com/activity/1520843776-bodyjam.png",
            "plain_hover": "http://cdn.nxlfitness.com/activity/1520843381-bodyjam.png"
        },
        {
            "id": 14,
            "title": "Body Pump",
            "image": "http://cdn.nxlfitness.com/activity/1515664485-bodypump.png",
            "image_hover": "http://cdn.nxlfitness.com/activity/1520843767-bodypump.png",
            "plain_hover": "http://cdn.nxlfitness.com/activity/1520843382-bodypump.png"
        },
        {
            "id": 15,
            "title": "Body Step",
            "image": "http://cdn.nxlfitness.com/activity/1515664476-BODYSTEP.png",
            "image_hover": "http://cdn.nxlfitness.com/activity/1520843758-BODYSTEP.png",
            "plain_hover": "http://cdn.nxlfitness.com/activity/1520843383-BODYSTEP.png"
        },
        {
            "id": 10,
            "title": "Body Toning",
            "image": "http://cdn.nxlfitness.com/activity/1515664534-BodyToning.png",
            "image_hover": "http://cdn.nxlfitness.com/activity/1520843802-BodyToning.png",
            "plain_hover": "http://cdn.nxlfitness.com/activity/1520843378-bodytoning.png"
        },
        {
            "id": 34,
            "title": "Boxing",
            "image": "http://cdn.nxlfitness.com/activity/15283478861-boxing.png",
            "image_hover": "http://cdn.nxlfitness.com/activity/15283478862-boxing.png",
            "plain_hover": "http://cdn.nxlfitness.com/activity/15283478863-boxing.png"
        },
        {
            "id": 36,
            "title": "Circuit Training",
            "image": "http://cdn.nxlfitness.com/activity/15283479821-CircuitTraining.png",
            "image_hover": "http://cdn.nxlfitness.com/activity/15283479823-CircuitTraining.png",
            "plain_hover": "http://cdn.nxlfitness.com/activity/"
        },
        {
            "id": 37,
            "title": "Climbing",
            "image": "http://cdn.nxlfitness.com/activity/15283480211-Climbing.png",
            "image_hover": "http://cdn.nxlfitness.com/activity/15283480212-Climbing.png",
            "plain_hover": "http://cdn.nxlfitness.com/activity/15283480213-Climbing.png"
        },
        {
            "id": 40,
            "title": "Crossfit",
            "image": "http://cdn.nxlfitness.com/activity/15283482241-Crossfit.png",
            "image_hover": "http://cdn.nxlfitness.com/activity/15283482242-Crossfit.png",
            "plain_hover": "http://cdn.nxlfitness.com/activity/15283482243-Crossfit.png"
        },
        {
            "id": 38,
            "title": "Curling",
            "image": "http://cdn.nxlfitness.com/activity/15283480641-Curling.png",
            "image_hover": "http://cdn.nxlfitness.com/activity/15283480642-Curling.png",
            "plain_hover": "http://cdn.nxlfitness.com/activity/15283480643-Curling.png"
        },
        {
            "id": 39,
            "title": "CX Worx",
            "image": "http://cdn.nxlfitness.com/activity/15283481321-CXWorx.png",
            "image_hover": "http://cdn.nxlfitness.com/activity/15283481322-CXWorx.png",
            "plain_hover": "http://cdn.nxlfitness.com/activity/15283481323-CXWorx.png"
        },
        {
            "id": 30,
            "title": "Cycling",
            "image": "http://cdn.nxlfitness.com/activity/15283474441-Cycling.png",
            "image_hover": "http://cdn.nxlfitness.com/activity/15283474442-Cycling.png",
            "plain_hover": "http://cdn.nxlfitness.com/activity/15283474453-Cycling.png"
        },
        {
            "id": 35,
            "title": "Dancing",
            "image": "http://cdn.nxlfitness.com/activity/15283479301-Dancing.png",
            "image_hover": "http://cdn.nxlfitness.com/activity/15283479302-Dancing.png",
            "plain_hover": "http://cdn.nxlfitness.com/activity/15283479303-Dancing.png"
        },
        {
            "id": 42,
            "title": "Golf",
            "image": "http://cdn.nxlfitness.com/activity/15283483691-Golf.png",
            "image_hover": "http://cdn.nxlfitness.com/activity/15283483692-Golf.png",
            "plain_hover": "http://cdn.nxlfitness.com/activity/15283483693-Golf.png"
        },
        {
            "id": 31,
            "title": "Gym",
            "image": "http://cdn.nxlfitness.com/activity/15283474881-Gym.png",
            "image_hover": "http://cdn.nxlfitness.com/activity/15283474882-Gym.png",
            "plain_hover": "http://cdn.nxlfitness.com/activity/15283474883-Gym.png"
        },
        {
            "id": 28,
            "title": "Hiking",
            "image": "http://cdn.nxlfitness.com/activity/15283472851-Hiking.png",
            "image_hover": "http://cdn.nxlfitness.com/activity/15283472862-Hiking.png",
            "plain_hover": "http://cdn.nxlfitness.com/activity/15283472863-Hiking.png"
        },
        {
            "id": 43,
            "title": "Hockey",
            "image": "http://cdn.nxlfitness.com/activity/15283484121-Hockey.png",
            "image_hover": "http://cdn.nxlfitness.com/activity/15283484122-Hockey.png",
            "plain_hover": "http://cdn.nxlfitness.com/activity/15283484123-Hockey.png"
        },
        {
            "id": 44,
            "title": "Ice Skating",
            "image": "http://cdn.nxlfitness.com/activity/15283484641-IceSkating.png",
            "image_hover": "http://cdn.nxlfitness.com/activity/15283484642-IceSkating.png",
            "plain_hover": "http://cdn.nxlfitness.com/activity/15283484643-IceSkating.png"
        },
        {
            "id": 45,
            "title": "Kayaking",
            "image": "http://cdn.nxlfitness.com/activity/15283485061-kayaking.png",
            "image_hover": "http://cdn.nxlfitness.com/activity/15283485062-kayaking.png",
            "plain_hover": "http://cdn.nxlfitness.com/activity/15283485063-kayaking.png"
        },
        {
            "id": 41,
            "title": "Martial Arts",
            "image": "http://cdn.nxlfitness.com/activity/15283482661-MartialArts.png",
            "image_hover": "http://cdn.nxlfitness.com/activity/15283482662-MartialArts.png",
            "plain_hover": "http://cdn.nxlfitness.com/activity/15283482663-MartialArts.png"
        },
        {
            "id": 47,
            "title": "Meditation",
            "image": "http://cdn.nxlfitness.com/activity/15283486001-Meditation.png",
            "image_hover": "http://cdn.nxlfitness.com/activity/15283486002-Meditation.png",
            "plain_hover": "http://cdn.nxlfitness.com/activity/15283486003-Meditation.png"
        },
        {
            "id": 49,
            "title": "Pilates",
            "image": "http://cdn.nxlfitness.com/activity/15283486801-pilates.png",
            "image_hover": "http://cdn.nxlfitness.com/activity/15283486802-pilates.png",
            "plain_hover": "http://cdn.nxlfitness.com/activity/15283486803-pilates.png"
        },
        {
            "id": 50,
            "title": "Riding",
            "image": "http://cdn.nxlfitness.com/activity/15283487201-riding.png",
            "image_hover": "http://cdn.nxlfitness.com/activity/15283487202-riding.png",
            "plain_hover": "http://cdn.nxlfitness.com/activity/15283487203-riding.png"
        },
        {
            "id": 46,
            "title": "Rowing",
            "image": "http://cdn.nxlfitness.com/activity/15283485561-rowing.png",
            "image_hover": "http://cdn.nxlfitness.com/activity/15283485562-rowing.png",
            "plain_hover": "http://cdn.nxlfitness.com/activity/15283485563-rowing.png"
        },
        {
            "id": 51,
            "title": "Rugby",
            "image": "http://cdn.nxlfitness.com/activity/15283487571-rugby.png",
            "image_hover": "http://cdn.nxlfitness.com/activity/15283487572-rugby.png",
            "plain_hover": "http://cdn.nxlfitness.com/activity/15283487573-rugby.png"
        },
        {
            "id": 29,
            "title": "Running",
            "image": "http://cdn.nxlfitness.com/activity/15283473701-running.png",
            "image_hover": "http://cdn.nxlfitness.com/activity/15283473702-running.png",
            "plain_hover": "http://cdn.nxlfitness.com/activity/15283473703-running.png"
        },
        {
            "id": 32,
            "title": "Skiing",
            "image": "http://cdn.nxlfitness.com/activity/15283476371-skiing.png",
            "image_hover": "http://cdn.nxlfitness.com/activity/15283476372-skiing.png",
            "plain_hover": "http://cdn.nxlfitness.com/activity/15283476373-skiing.png"
        },
        {
            "id": 52,
            "title": "Soccer",
            "image": "http://cdn.nxlfitness.com/activity/15283487941-soccer.png",
            "image_hover": "http://cdn.nxlfitness.com/activity/15283487942-soccer.png",
            "plain_hover": "http://cdn.nxlfitness.com/activity/15283487943-soccer.png"
        },
        {
            "id": 53,
            "title": "Spinning",
            "image": "http://cdn.nxlfitness.com/activity/15283488321-Spinning.png",
            "image_hover": "http://cdn.nxlfitness.com/activity/15283488322-Spinning.png",
            "plain_hover": "http://cdn.nxlfitness.com/activity/15283488333-Spinning.png"
        },
        {
            "id": 33,
            "title": "Swimming",
            "image": "http://cdn.nxlfitness.com/activity/15283476911-Swimming.png",
            "image_hover": "http://cdn.nxlfitness.com/activity/15283476912-Swimming.png",
            "plain_hover": "http://cdn.nxlfitness.com/activity/15283476913-Swimming.png"
        },
        {
            "id": 54,
            "title": "Tennis",
            "image": "http://cdn.nxlfitness.com/activity/15283488651-tennis.png",
            "image_hover": "http://cdn.nxlfitness.com/activity/15283488652-tennis.png",
            "plain_hover": "http://cdn.nxlfitness.com/activity/15283488653-tennis.png"
        },
        {
            "id": 48,
            "title": "Yoga",
            "image": "http://cdn.nxlfitness.com/activity/15283486321-yoga.png",
            "image_hover": "http://cdn.nxlfitness.com/activity/15283486322-yoga.png",
            "plain_hover": "http://cdn.nxlfitness.com/activity/15283486323-yoga.png"
        },
        {
            "id": 55,
            "title": "Zumba",
            "image": "http://cdn.nxlfitness.com/activity/15283488991-Zumba.png",
            "image_hover": "http://cdn.nxlfitness.com/activity/15283488992-Zumba.png",
            "plain_hover": "http://cdn.nxlfitness.com/activity/15283488993-Zumba.png"
        }
    ],
    "message": "Activities found successfully"
}
             
```
### 2.21) Search API:


```shell=
postman request name:
    Search => V2 => Search API

url: 
    /v2/search

method:
    POST

body:
{
    "search":"keyword",
	"data_type":["workout","recipe",'photo']
}
             
```

##  3- App Version:

### 1) Get 
```shell=
url: 
    /v2/app_version

method:
    GET

params:
    - device_type [ IOS | Android ]
    - app_version 

sample_response:
{
    "code": "1",
    "data": null,
    "message": " ",
    "require_update": true
}

```

### 2) Update 
```shell=
url: 
    /v2/app_version

method:
    POST

params:
    - device_type [ IOS | Android ]
    - app_version
    - require_update [ true | false ] 

```



##  4- Leaderboard:
### 2.1) GET:

```shell=
postman name:
    POST leaderboard (New) V2

url: 
    /v2/leaderboard

method:
    GET

body:
    - group_id
    - data_type  [ all | top ]
    - date       (e.g 2018-09-03) 
    - list_type  (optional) (array so can be more than one) [steps | climbs | time | altitude | calory]             
```
### 2.2) Update:

```shell=
postman name:
    Get leaderboard (New) V2

url: 
    /v2/leaderboard

method:
    POST

body:
    - date (e.g 2018-09-03)
    - steps (string) (optional)  
    - climbs (string) (optional)   
    - calory (string) (optional)  
    - altitude (string) (optional)   
```