dld_backend/Rents_Only.postman_collection.json
2025-11-04 13:17:18 +05:30

205 lines
5.9 KiB
JSON

{
"info": {
"name": "Dubai DLD - Rents Only",
"_postman_id": "f3c2a1b8-6d5e-4e9a-93d1-rent-only-001",
"description": "Collection with only recent rents connection examples for the /api/rents/recent endpoint.",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"variable": [
{
"key": "baseUrl",
"value": "http://localhost:3000"
}
],
"item": [
{
"name": "Recent Rents - No Filters (default limit=30)",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{baseUrl}}/api/rents/recent",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"rents",
"recent"
]
}
}
},
{
"name": "Filter by area_name (contains, case-insensitive)",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{baseUrl}}/api/rents/recent?area_name=business%20bay&limit=30",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"rents",
"recent"
],
"query": [
{ "key": "area_name", "value": "business bay" },
{ "key": "limit", "value": "30" }
]
}
}
},
{
"name": "Filter by property_type (matches prop_type_en or prop_sub_type_en)",
"request": {
"method": "GET",
"header": [
{ "key": "Accept", "value": "application/json" }
],
"url": {
"raw": "{{baseUrl}}/api/rents/recent?property_type=unit&limit=30",
"host": [ "{{baseUrl}}" ],
"path": [ "api", "rents", "recent" ],
"query": [
{ "key": "property_type", "value": "unit" },
{ "key": "limit", "value": "30" }
]
}
}
},
{
"name": "Filter by rooms (decimal values: 1, 2, 3, 4, 5)",
"request": {
"method": "GET",
"header": [ { "key": "Accept", "value": "application/json" } ],
"url": {
"raw": "{{baseUrl}}/api/rents/recent?rooms=3&limit=30",
"host": [ "{{baseUrl}}" ],
"path": [ "api", "rents", "recent" ],
"query": [
{ "key": "rooms", "value": "3" },
{ "key": "limit", "value": "30" }
]
}
}
},
{
"name": "Filter by project (matches project_en or master_project_en)",
"request": {
"method": "GET",
"header": [ { "key": "Accept", "value": "application/json" } ],
"url": {
"raw": "{{baseUrl}}/api/rents/recent?project=burj%20views&limit=30",
"host": [ "{{baseUrl}}" ],
"path": [ "api", "rents", "recent" ],
"query": [
{ "key": "project", "value": "burj views" },
{ "key": "limit", "value": "30" }
]
}
}
},
{
"name": "Filter by size_min and size_max (range)",
"request": {
"method": "GET",
"header": [ { "key": "Accept", "value": "application/json" } ],
"url": {
"raw": "{{baseUrl}}/api/rents/recent?size_min=1000&size_max=5000&limit=30",
"host": [ "{{baseUrl}}" ],
"path": [ "api", "rents", "recent" ],
"query": [
{ "key": "size_min", "value": "1000" },
{ "key": "size_max", "value": "5000" },
{ "key": "limit", "value": "30" }
]
}
}
},
{
"name": "Filter by only size_min (greater or equal)",
"request": {
"method": "GET",
"header": [ { "key": "Accept", "value": "application/json" } ],
"url": {
"raw": "{{baseUrl}}/api/rents/recent?size_min=1500&limit=30",
"host": [ "{{baseUrl}}" ],
"path": [ "api", "rents", "recent" ],
"query": [
{ "key": "size_min", "value": "1500" },
{ "key": "limit", "value": "30" }
]
}
}
},
{
"name": "Filter by only size_max (less or equal)",
"request": {
"method": "GET",
"header": [ { "key": "Accept", "value": "application/json" } ],
"url": {
"raw": "{{baseUrl}}/api/rents/recent?size_max=3000&limit=30",
"host": [ "{{baseUrl}}" ],
"path": [ "api", "rents", "recent" ],
"query": [
{ "key": "size_max", "value": "3000" },
{ "key": "limit", "value": "30" }
]
}
}
},
{
"name": "Combined filters (area + type + rooms + project + size range)",
"request": {
"method": "GET",
"header": [ { "key": "Accept", "value": "application/json" } ],
"url": {
"raw": "{{baseUrl}}/api/rents/recent?area_name=business%20bay&property_type=unit&rooms=2&project=sami%20q%20tower&size_min=50&size_max=100&limit=50",
"host": [ "{{baseUrl}}" ],
"path": [ "api", "rents", "recent" ],
"query": [
{ "key": "area_name", "value": "business bay" },
{ "key": "property_type", "value": "unit" },
{ "key": "rooms", "value": "2" },
{ "key": "project", "value": "sami q tower" },
{ "key": "size_min", "value": "50" },
{ "key": "size_max", "value": "100" },
{ "key": "limit", "value": "50" }
]
}
}
},
{
"name": "Limit override (top N)",
"request": {
"method": "GET",
"header": [ { "key": "Accept", "value": "application/json" } ],
"url": {
"raw": "{{baseUrl}}/api/rents/recent?limit=100",
"host": [ "{{baseUrl}}" ],
"path": [ "api", "rents", "recent" ],
"query": [
{ "key": "limit", "value": "100" }
]
}
}
}
]
}