dld_backend/Transactions_Only.postman_collection.json
2025-10-30 12:13:02 +05:30

221 lines
6.6 KiB
JSON

{
"info": {
"name": "Dubai DLD - Transactions Only",
"_postman_id": "f3c2a1b8-6d5e-4e9a-93d1-txn-only-001",
"description": "Collection with only recent transactions connection examples for the /api/transactions/recent endpoint.",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"variable": [
{
"key": "baseUrl",
"value": "http://localhost:3000"
}
],
"item": [
{
"name": "Recent Transactions - No Filters (default limit=30)",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{baseUrl}}/api/transactions/recent",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"transactions",
"recent"
]
}
}
},
{
"name": "Filter by area_name (contains, case-insensitive)",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{baseUrl}}/api/transactions/recent?area_name=business%20bay&limit=30",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"transactions",
"recent"
],
"query": [
{ "key": "area_name", "value": "business bay" },
{ "key": "limit", "value": "30" }
]
}
}
},
{
"name": "Filter by property_type (matches prop_type_en or prop_sb_type_en)",
"request": {
"method": "GET",
"header": [
{ "key": "Accept", "value": "application/json" }
],
"url": {
"raw": "{{baseUrl}}/api/transactions/recent?property_type=apartment&limit=30",
"host": [ "{{baseUrl}}" ],
"path": [ "api", "transactions", "recent" ],
"query": [
{ "key": "property_type", "value": "apartment" },
{ "key": "limit", "value": "30" }
]
}
}
},
{
"name": "Filter by beds (e.g., 2, 3, studio)",
"request": {
"method": "GET",
"header": [ { "key": "Accept", "value": "application/json" } ],
"url": {
"raw": "{{baseUrl}}/api/transactions/recent?beds=3&limit=30",
"host": [ "{{baseUrl}}" ],
"path": [ "api", "transactions", "recent" ],
"query": [
{ "key": "beds", "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/transactions/recent?project=29%20boulevard&limit=30",
"host": [ "{{baseUrl}}" ],
"path": [ "api", "transactions", "recent" ],
"query": [
{ "key": "project", "value": "29 boulevard" },
{ "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/transactions/recent?size_min=1000&size_max=5000&limit=30",
"host": [ "{{baseUrl}}" ],
"path": [ "api", "transactions", "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/transactions/recent?size_min=1500&limit=30",
"host": [ "{{baseUrl}}" ],
"path": [ "api", "transactions", "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/transactions/recent?size_max=3000&limit=30",
"host": [ "{{baseUrl}}" ],
"path": [ "api", "transactions", "recent" ],
"query": [
{ "key": "size_max", "value": "3000" },
{ "key": "limit", "value": "30" }
]
}
}
},
{
"name": "Legacy size param (acts as size_max)",
"request": {
"method": "GET",
"header": [ { "key": "Accept", "value": "application/json" } ],
"url": {
"raw": "{{baseUrl}}/api/transactions/recent?size=2500&limit=30",
"host": [ "{{baseUrl}}" ],
"path": [ "api", "transactions", "recent" ],
"query": [
{ "key": "size", "value": "2500" },
{ "key": "limit", "value": "30" }
]
}
}
},
{
"name": "Combined filters (area + type + beds + project + size range)",
"request": {
"method": "GET",
"header": [ { "key": "Accept", "value": "application/json" } ],
"url": {
"raw": "{{baseUrl}}/api/transactions/recent?area_name=business%20bay&property_type=apartment&beds=2&project=29%20boulevard&size_min=800&size_max=1600&limit=50",
"host": [ "{{baseUrl}}" ],
"path": [ "api", "transactions", "recent" ],
"query": [
{ "key": "area_name", "value": "business bay" },
{ "key": "property_type", "value": "apartment" },
{ "key": "beds", "value": "2" },
{ "key": "project", "value": "29 boulevard" },
{ "key": "size_min", "value": "800" },
{ "key": "size_max", "value": "1600" },
{ "key": "limit", "value": "50" }
]
}
}
},
{
"name": "Limit override (max 100)",
"request": {
"method": "GET",
"header": [ { "key": "Accept", "value": "application/json" } ],
"url": {
"raw": "{{baseUrl}}/api/transactions/recent?limit=100",
"host": [ "{{baseUrl}}" ],
"path": [ "api", "transactions", "recent" ],
"query": [
{ "key": "limit", "value": "100" }
]
}
}
}
]
}