{
    "variable": [
        {
            "id": "baseUrl",
            "key": "baseUrl",
            "type": "string",
            "name": "string",
            "value": "http:\/\/localhost"
        }
    ],
    "info": {
        "name": "Laravel API Documentation",
        "_postman_id": "a577d1ef-3d2c-4555-b9b3-5d53d62e00fe",
        "description": "API documentation for hydroponic operations and performance tracking",
        "schema": "https:\/\/schema.getpostman.com\/json\/collection\/v2.1.0\/collection.json"
    },
    "item": [
        {
            "name": "Authentication",
            "description": "\nAPIs for user authentication",
            "item": [
                {
                    "name": "Login",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/login",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/login"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"email\":\"admin@example.com\",\"password\":\"password\"}"
                        },
                        "description": "Authenticate a user and return JWT tokens.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"user\": {\n    \"id\": \"uuid\",\n    \"name\": \"Admin User\",\n    \"role\": \"SUPER_ADMIN\",\n    \"email\": \"admin@example.com\",\n    \"farm_id\": null,\n    \"permissions\": []\n  },\n  \"access_token\": \"jwt-token\",\n  \"token_type\": \"bearer\",\n  \"expires_in\": 3600\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 401,
                            "body": "{\n  \"error\": \"Invalid credentials\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Register",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/register",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/register"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"name\":\"John Doe\",\"email\":\"john@example.com\",\"password\":\"password123\",\"role\":\"FARMER\",\"farm_id\":\"uuid\",\"permissions\":[\"consequatur\"]}"
                        },
                        "description": "Register a new user."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 201,
                            "body": "{\n  \"id\": \"uuid\",\n  \"name\": \"John Doe\",\n  \"email\": \"john@example.com\",\n  \"role\": \"FARMER\",\n  \"permissions\": []\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Refresh token",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/refresh",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/refresh"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Refresh the JWT token."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"access_token\": \"new-jwt-token\",\n  \"token_type\": \"bearer\",\n  \"expires_in\": 3600\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Logout",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/logout",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/logout"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Invalidate the user's token."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"message\": \"Successfully logged out\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Get current user",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/me",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/me"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Get the authenticated user's information."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"id\": \"uuid\",\n  \"name\": \"Admin User\",\n  \"email\": \"admin@example.com\",\n  \"role\": \"SUPER_ADMIN\",\n  \"farm_id\": null,\n  \"permissions\": []\n}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Farms",
            "description": "\nAPIs for managing farms",
            "item": [
                {
                    "name": "List farms",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/farms",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/farms"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Get a list of all farms."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "[\n  {\n    \"id\": \"uuid\",\n    \"name\": \"Farm 1\",\n    \"status\": \"ACTIVE\",\n    \"location\": \"Location 1\",\n    \"created_at\": \"2023-01-01T00:00:00.000000Z\",\n    \"updated_at\": \"2023-01-01T00:00:00.000000Z\"\n  }\n]",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Create farm",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/farms",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/farms"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"name\":\"New Farm\",\"status\":\"ACTIVE\",\"location\":\"City, Country\"}"
                        },
                        "description": "Create a new farm."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 201,
                            "body": "{\n  \"id\": \"uuid\",\n  \"name\": \"New Farm\",\n  \"status\": \"ACTIVE\",\n  \"location\": \"City, Country\",\n  \"created_at\": \"2023-01-01T00:00:00.000000Z\",\n  \"updated_at\": \"2023-01-01T00:00:00.000000Z\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Get farm",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/farms\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/farms\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "uuid",
                                    "description": "The farm ID."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Get a specific farm by ID."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"id\": \"uuid\",\n  \"name\": \"Farm 1\",\n  \"status\": \"ACTIVE\",\n  \"location\": \"Location 1\",\n  \"created_at\": \"2023-01-01T00:00:00.000000Z\",\n  \"updated_at\": \"2023-01-01T00:00:00.000000Z\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Update farm",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/farms\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/farms\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "uuid",
                                    "description": "The farm ID."
                                }
                            ]
                        },
                        "method": "PUT",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"name\":\"Updated Farm\",\"status\":\"MAINTENANCE\",\"location\":\"New City\"}"
                        },
                        "description": "Update a specific farm."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"id\": \"uuid\",\n  \"name\": \"Updated Farm\",\n  \"status\": \"MAINTENANCE\",\n  \"location\": \"New City\",\n  \"created_at\": \"2023-01-01T00:00:00.000000Z\",\n  \"updated_at\": \"2023-01-01T00:00:00.000000Z\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Delete farm",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/farms\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/farms\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "uuid",
                                    "description": "The farm ID."
                                }
                            ]
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Delete a specific farm."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"message\": \"Farm deleted\"\n}",
                            "name": ""
                        }
                    ]
                }
            ]
        }
    ],
    "auth": {
        "type": "bearer",
        "bearer": [
            {
                "key": "Authorization",
                "type": "string"
            }
        ]
    }
}