{
    "variable": [
        {
            "id": "baseUrl",
            "key": "baseUrl",
            "type": "string",
            "name": "string",
            "value": "http:\/\/127.0.0.1:8000"
        }
    ],
    "info": {
        "name": "REZYDENT Nieruchomo\u015bci API Documentation",
        "_postman_id": "891ad767-b1a7-4da3-8c72-0829b39310af",
        "description": "API dla portalu nieruchomo\u015bci REZYDENT. Umo\u017cliwia pobieranie ofert, kategorii i statystyk.",
        "schema": "https:\/\/schema.getpostman.com\/json\/collection\/v2.1.0\/collection.json"
    },
    "item": [
        {
            "name": "Categories",
            "description": "\nAPI endpoints for managing property categories",
            "item": [
                {
                    "name": "Get categories list",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/categories",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/categories"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Retrieve all available property categories.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"data\": [\n    {\n      \"id\": 1,\n      \"name\": \"Mieszkania\",\n      \"slug\": \"mieszkania\",\n      \"description\": null\n    },\n    {\n      \"id\": 2,\n      \"name\": \"Domy\",\n      \"slug\": \"domy\",\n      \"description\": null\n    }\n  ]\n}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Endpoints",
            "description": "",
            "item": [
                {
                    "name": "GET api\/user",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/user",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/user"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [
                                {
                                    "key": "cache-control",
                                    "value": "no-cache, private"
                                },
                                {
                                    "key": "content-type",
                                    "value": "application\/json"
                                },
                                {
                                    "key": "vary",
                                    "value": "Origin"
                                }
                            ],
                            "code": 401,
                            "body": "{\"message\":\"Unauthenticated.\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "POST api\/inquiries",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/inquiries",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/inquiries"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"offer_id\":\"architecto\",\"name\":\"n\",\"email\":\"ashly64@example.com\",\"phone\":\"vdljnikhwaykcmyu\",\"subject\":\"w\",\"message\":\"architecto\",\"inquiry_type\":\"viewing\"}"
                        },
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": []
                }
            ]
        },
        {
            "name": "Offers",
            "description": "\nAPI endpoints for managing real estate offers",
            "item": [
                {
                    "name": "Get offers list",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/offers",
                            "query": [
                                {
                                    "key": "per_page",
                                    "value": "12",
                                    "description": "Number of offers per page. Default: 12.",
                                    "disabled": false
                                },
                                {
                                    "key": "page",
                                    "value": "1",
                                    "description": "Page number.",
                                    "disabled": false
                                },
                                {
                                    "key": "category",
                                    "value": "1",
                                    "description": "Category ID to filter by.",
                                    "disabled": false
                                },
                                {
                                    "key": "city",
                                    "value": "Katowice",
                                    "description": "City name to filter by.",
                                    "disabled": false
                                },
                                {
                                    "key": "min_price",
                                    "value": "100000",
                                    "description": "Minimum price filter.",
                                    "disabled": false
                                },
                                {
                                    "key": "max_price",
                                    "value": "500000",
                                    "description": "Maximum price filter.",
                                    "disabled": false
                                },
                                {
                                    "key": "min_area",
                                    "value": "50",
                                    "description": "Minimum area filter (m\u00b2).",
                                    "disabled": false
                                },
                                {
                                    "key": "max_area",
                                    "value": "150",
                                    "description": "Maximum area filter (m\u00b2).",
                                    "disabled": false
                                },
                                {
                                    "key": "rooms",
                                    "value": "3",
                                    "description": "Number of rooms filter.",
                                    "disabled": false
                                },
                                {
                                    "key": "sort_by",
                                    "value": "cena",
                                    "description": "Sort field. Default: data_zalozenia.",
                                    "disabled": false
                                },
                                {
                                    "key": "sort_order",
                                    "value": "asc",
                                    "description": "Sort direction (asc\/desc). Default: desc.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/offers?per_page=12&page=1&category=1&city=Katowice&min_price=100000&max_price=500000&min_area=50&max_area=150&rooms=3&sort_by=cena&sort_order=asc"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Retrieve a paginated list of active real estate offers with optional filtering.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"data\": [{\n    \"id\": 1,\n    \"numer_oferty\": \"01-S-001\",\n    \"title\": null,\n    \"description\": \"Beautiful apartment in city center\",\n    \"price\": {\n      \"amount\": \"380762.00\",\n      \"currency\": \"PLN\",\n      \"per_meter\": null\n    },\n    \"location\": {\n      \"city\": \"Katowice\",\n      \"district\": \"Centrum\",\n      \"street\": \"Testowa\",\n      \"postal_code\": \"40-001\"\n    },\n    \"agent\": {\n      \"id\": 2,\n      \"name\": \"Piotr Nowak\",\n      \"email\": \"piotr@example.com\",\n      \"phone\": \"+48 600 200 300\"\n    }\n  }],\n  \"meta\": {\n    \"current_page\": 1,\n    \"total\": 12,\n    \"per_page\": 12\n  }\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Get offer details",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/offers\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/offers\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "1",
                                    "description": "The ID of the offer."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Retrieve detailed information about a specific real estate offer.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"data\": {\n    \"id\": 1,\n    \"numer_oferty\": \"01-S-001\",\n    \"title\": null,\n    \"description\": \"Beautiful apartment in city center\",\n    \"price\": {\n      \"amount\": \"380762.00\",\n      \"currency\": \"PLN\",\n      \"per_meter\": null\n    },\n    \"location\": {\n      \"city\": \"Katowice\",\n      \"district\": \"Centrum\",\n      \"street\": \"Testowa\",\n      \"postal_code\": \"40-001\"\n    },\n    \"details\": {\n      \"area\": \"90.00\",\n      \"rooms\": 3,\n      \"floor\": 2,\n      \"total_floors\": 8\n    },\n    \"agent\": {\n      \"id\": 2,\n      \"name\": \"Piotr Nowak\",\n      \"email\": \"piotr@example.com\",\n      \"phone\": \"+48 600 200 300\"\n    },\n    \"category\": {\n      \"id\": 1,\n      \"name\": \"Mieszkania\",\n      \"slug\": \"mieszkania\"\n    }\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"message\": \"No query results for model [App\\\\Models\\\\Offer] 999\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Get offers by category",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/offers\/category\/:category",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/offers\/category\/:category",
                            "variable": [
                                {
                                    "id": "category",
                                    "key": "category",
                                    "value": "architecto",
                                    "description": "The category."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [
                                {
                                    "key": "cache-control",
                                    "value": "no-cache, private"
                                },
                                {
                                    "key": "content-type",
                                    "value": "application\/json"
                                },
                                {
                                    "key": "vary",
                                    "value": "Origin"
                                }
                            ],
                            "code": 200,
                            "body": "{\"data\":[],\"links\":{\"first\":\"http:\\\/\\\/127.0.0.1:8000\\\/api\\\/offers\\\/category\\\/architecto?page=1\",\"last\":\"http:\\\/\\\/127.0.0.1:8000\\\/api\\\/offers\\\/category\\\/architecto?page=1\",\"prev\":null,\"next\":null},\"meta\":{\"current_page\":1,\"from\":null,\"last_page\":1,\"links\":[{\"url\":null,\"label\":\"&laquo; Previous\",\"page\":null,\"active\":false},{\"url\":\"http:\\\/\\\/127.0.0.1:8000\\\/api\\\/offers\\\/category\\\/architecto?page=1\",\"label\":\"1\",\"page\":1,\"active\":true},{\"url\":null,\"label\":\"Next &raquo;\",\"page\":null,\"active\":false}],\"path\":\"http:\\\/\\\/127.0.0.1:8000\\\/api\\\/offers\\\/category\\\/architecto\",\"per_page\":12,\"to\":null,\"total\":0}}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Get offers by location",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/offers\/location\/:location",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/offers\/location\/:location",
                            "variable": [
                                {
                                    "id": "location",
                                    "key": "location",
                                    "value": "architecto",
                                    "description": "The location."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [
                                {
                                    "key": "cache-control",
                                    "value": "no-cache, private"
                                },
                                {
                                    "key": "content-type",
                                    "value": "application\/json"
                                },
                                {
                                    "key": "vary",
                                    "value": "Origin"
                                }
                            ],
                            "code": 200,
                            "body": "{\"data\":[],\"links\":{\"first\":\"http:\\\/\\\/127.0.0.1:8000\\\/api\\\/offers\\\/location\\\/architecto?page=1\",\"last\":\"http:\\\/\\\/127.0.0.1:8000\\\/api\\\/offers\\\/location\\\/architecto?page=1\",\"prev\":null,\"next\":null},\"meta\":{\"current_page\":1,\"from\":null,\"last_page\":1,\"links\":[{\"url\":null,\"label\":\"&laquo; Previous\",\"page\":null,\"active\":false},{\"url\":\"http:\\\/\\\/127.0.0.1:8000\\\/api\\\/offers\\\/location\\\/architecto?page=1\",\"label\":\"1\",\"page\":1,\"active\":true},{\"url\":null,\"label\":\"Next &raquo;\",\"page\":null,\"active\":false}],\"path\":\"http:\\\/\\\/127.0.0.1:8000\\\/api\\\/offers\\\/location\\\/architecto\",\"per_page\":12,\"to\":null,\"total\":0}}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Get portal statistics",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/stats",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/stats"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Retrieve general statistics about the real estate portal.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"total_offers\": 12,\n  \"featured_offers\": 0,\n  \"categories\": [\n    {\n      \"id\": 1,\n      \"name\": \"Mieszkania\",\n      \"offers_count\": 2\n    },\n    {\n      \"id\": 2,\n      \"name\": \"Domy\",\n      \"offers_count\": 2\n    }\n  ]\n}",
                            "name": ""
                        }
                    ]
                }
            ]
        }
    ],
    "auth": {
        "type": "noauth"
    }
}