You are on page 1of 5

Package

a. create package

API name: {{base_url}}/package

payload
{
"name":"656734592a56b2b1ff9a5925",
"amountPerSqft":2200,
"features":[
{
"name":"Design",
"listOfFeatures":[
{
"description":"2D- plan"
},
{
"description":"3D- elevation"
},
{
"description":"design development"
},
{
"description":"Soil Test report"
}
]
},
{
"name":"Civil construction",
"listOfFeatures":[
{
"description":"Floor to floor height – 10’6”"
},
{
"description":"The plinth of 1’6” will be provided"
},
{
"description":"Cement (Grade 53 & 43) – Brand of client’s choice"
}
]
},
{
"name":"Kitchen",
"listOfFeatures":[
{
"description":"Kitchen Wall Dado (Up to 2’ above counter):
Backsplash tiles (4’ x 2’)"
},
{
"description":"Faber Water Purifier"
},
{
"description":"SS sink with drain board"
}
]
}
]
}
response
{
"result": {
"name": "656734592a56b2b1ff9a5925",
"amountPerSqft": 2200,
"features": [
{
"name": "Design",
"sortOrder": 1,
"listOfFeatures": [
{
"sortOrder": 1,
"description": "2D- plan",
"_id": "656abb883af6965c52d1e50f"
},
{
"sortOrder": 2,
"description": "3D- elevation",
"_id": "656abb883af6965c52d1e510"
},
{
"sortOrder": 3,
"description": "design development",
"_id": "656abb883af6965c52d1e511"
},
{
"sortOrder": 4,
"description": "Soil Test report",
"_id": "656abb883af6965c52d1e512"
}
],
"_id": "656abb883af6965c52d1e50e"
},
{
"name": "Civil construction",
"sortOrder": 2,
"listOfFeatures": [
{
"sortOrder": 1,
"description": "Floor to floor height – 10’6”",
"_id": "656abb883af6965c52d1e514"
},
{
"sortOrder": 2,
"description": "Cement (Grade 53 & 43) – Brand of client’s
choice",
"_id": "656abb883af6965c52d1e515"
},
{
"sortOrder": 3,
"description": "The plinth of 1’6” will be provided",
"_id": "656abb883af6965c52d1e516"
}
],
"_id": "656abb883af6965c52d1e513"
},
{
"name": "Kitchen",
"sortOrder": 3,
"listOfFeatures": [
{
"sortOrder": 1,
"description": "Kitchen Wall Dado (Up to 2’ above counter):
Backsplash tiles (4’ x 2’)",
"_id": "656abb883af6965c52d1e518"
},
{
"sortOrder": 2,
"description": "SS sink with drain board",
"_id": "656abb883af6965c52d1e519"
},
{
"sortOrder": 3,
"description": "Faber Water Purifier",
"_id": "656abb883af6965c52d1e51a"
}
],
"_id": "656abb883af6965c52d1e517"
}
],
"isDeleted": false,
"status": "active",
"_id": "656abb883af6965c52d1e50d",
"createdAt": "2023-12-02T05:07:20.131Z",
"updatedAt": "2023-12-02T05:07:20.131Z"
},
"msg": "package created successfully!!!"
}
------------------------------------------------------------------------------
b. read package

API: {{base_url}}/package/:id
{
"result": {
"_id": "6567375f391d5bcb25c61507",
"name": {
"_id": "656734142a56b2b1ff9a591e",
"name": "Standard"
},
"amountPerSqft": 1800,
"features": [
{
"name": "Civil construction",
"sortOrder": 1,
"_id": "6567375f391d5bcb25c61508",
"listOfFeatures": [
{
"sortOrder": 1,
"description": "Floor to floor height – 10’6”",
"_id": "6567375f391d5bcb25c61509"
},
{
"sortOrder": 2,
"description": "Cement (Grade 53 & 43) – Brand of client’s
choice",
"_id": "6567375f391d5bcb25c6150a"
},
{
"sortOrder": 3,
"description": "The plinth of 1’6” will be provided",
"_id": "6567375f391d5bcb25c6150b"
}
]
},
{
"name": "Design",
"sortOrder": 2,
"_id": "6567375f391d5bcb25c6150c",
"listOfFeatures": [
{
"sortOrder": 1,
"description": "2D- plan",
"_id": "6567375f391d5bcb25c6150d"
},
{
"sortOrder": 2,
"description": "3D- elevation",
"_id": "6567375f391d5bcb25c6150e"
},
{
"sortOrder": 3,
"description": "design development",
"_id": "6567375f391d5bcb25c6150f"
}
]
}
],
"isDeleted": false,
"status": "active",
"createdAt": "2023-11-29T13:06:39.081Z",
"updatedAt": "2023-12-02T05:54:23.203Z"
},
"msg": "package fetched successfully!!"
}
----------------------------------------------------------------------------
c. update

API: {{base_url}}/package/:id

payload
{
"name":"6567343b2a56b2b1ff9a5922",
"amountPerSqft":2000,
"features":[
{
"name":"Design",
"listOfFeatures":[
{
"description":"2D- plan"
},
{
"description":"3D- elevation"
},
{
"description":"design development"
}
]
},
{
"name":"Civil construction",
"listOfFeatures":[
{
"description":"The plinth of 1’6” will be provided"
},
{
"description":"Floor to floor height – 10’6”"
},
{
"description":"Cement (Grade 53 & 43) – Brand of client’s choice"
}
]
}
]
}

response
{
"result": {
"acknowledged": true,
"modifiedCount": 1,
"upsertedId": null,
"upsertedCount": 0,
"matchedCount": 1
},
"msg": "package updated successfully!!"
}

d.delete

API: {{base_url}}/package/:id

response
{
"result": {
"acknowledged": true,
"modifiedCount": 1,
"upsertedId": null,
"upsertedCount": 0,
"matchedCount": 1
},
"msg": "package deleted successfully"
}
-----------------------------------------------------------------------------
e. package status active inactive

API: {{base_url}}/packageStatus/:id

response
{
"result": null,
"msg": "status inActivated successfully!!"
}

You might also like