Documentation

Mock API

Usages

Step 1.

Login in your account and go to product dashboard by clicking GO TO DASHBOARD button.

...

Step 2.

Click on + New Rule to create new mock API.

...

Step 3.

Fill all the required information about a mock API and click Create Rule to save this mock API.

...

Step 4.

To get the URL details click on >_ sign of any mock API.

...

Step 5.

Use this information to make API request

...

Example.
Request
                        https://themockapis.in/api/v1/mock/5f756c8a845057a731f69a4537389248/store
                      
Response
                        {
  "success": "true",
  "data": [{
    "id": 1,
    "name": "Online Store 1"
  }, {
    "id": 3,
    "name": "Online Store 12"
  }, {
    "id": 3,
    "name": "Online Store 3"
  }]
}
                      

CSV Database

Usages

Step 1.

Login in your account and go to product dashboard by clicking GO TO DASHBOARD button.

...

Step 2.

Click on + New CSV Database to create new CSV Database.

...

Step 3.

Select the target CSV file and click on Save Database to save CSV Database.

...

Step 4.

To get the URL details click on >_ sign of any CSV Database.

...

Step 5.

Use this information to make API request

...

Example 1.

Get data without any condition

{ type = getalldata / gad }
{ limit = number }
{ offset = number }


Request
                        https://themockapis.in/api/v1/csv/5f756c8a845057a731f69a4537389248/5a199255de7e989?type=gad&limit=10&offset=1
                      
Response
                        {
  "success": true,
  "data": [{
    "Index": "1",
    "Girth (in)": "8.3",
    "Height (ft)": "70",
    "Volume(ft^3)": "10.3"
  }, {
    "Index": "2",
    "Girth (in)": "8.6",
    "Height (ft)": "65",
    "Volume(ft^3)": "10.3"
  }]
}
                      
Example 2.

Get data with condition
{ type = getconditionaldata / gcd }
{ limit = number }
{ key = column name from csv }
{ value = value }


Request
                        https://themockapis.in/api/v1/csv/5f756c8a845057a731f69a4537389248/5a199255de7e989?type=gcd&key=Index&value=3&limit=10
                      
Response
                        {
  "success": true,
  "data": [{
    "Index": "3",
    "Girth (in)": "8.8",
    "Height (ft)": "63",
    "Volume(ft^3)": "10.2"
  }]
}