{"info":{"name":"Inspector API (UAT)","schema":"https://schema.getpostman.com/json/collection/v2.1.0/collection.json","description":"UAT uses sample data only.\n\n1. Set the `password` variable (Collection → Variables).\n2. Run **1. Login**: the token is saved automatically.\n3. Send any case under **2. Inspect cases**.\n\nGuide: https://uat.lumasystem.com/  ·  Reference: https://uat.lumasystem.com/docs"},"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{token}}","type":"string"}]},"variable":[{"key":"baseUrl","value":"https://uat.lumasystem.com"},{"key":"email","value":"client@uat.lumasystem.com"},{"key":"password","value":""},{"key":"token","value":""}],"item":[{"name":"1. Login (run first)","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/api/auth/login","host":["{{baseUrl}}"],"path":["api","auth","login"]},"body":{"mode":"raw","raw":"{\n  \"email\": \"{{email}}\",\n  \"password\": \"{{password}}\"\n}","options":{"raw":{"language":"json"}}},"description":"Saves the token to {{token}}. A new login ends the previous token.","auth":{"type":"noauth"}},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["const j = pm.response.json();","if (j.token) pm.collectionVariables.set('token', j.token);"]}}]},{"name":"2. Inspect cases","item":[{"name":"Point","item":[{"name":"Point inside a red zone","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/api/inspect","host":["{{baseUrl}}"],"path":["api","inspect"]},"body":{"mode":"raw","raw":"{\n  \"type\": \"Point\",\n  \"coordinates\": [\n    103.56,\n    11.71\n  ]\n}","options":{"raw":{"language":"json"}}},"description":""},"response":[{"name":"Expected","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/api/inspect","host":["{{baseUrl}}"],"path":["api","inspect"]},"body":{"mode":"raw","raw":"{\n  \"type\": \"Point\",\n  \"coordinates\": [\n    103.56,\n    11.71\n  ]\n}","options":{"raw":{"language":"json"}}},"description":""},"code":200,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"geometry\": {\n    \"type\": \"Point\",\n    \"coordinates\": [\n      103.56,\n      11.71\n    ]\n  },\n  \"intersects\": [\n    {\n      \"key\": \"protected-area-moe\",\n      \"name\": \"Protected areas MOE\",\n      \"label\": \"តំបន់ការពារធម្មជាតិ ក្រសួងបរិស្ថាន\"\n    }\n  ],\n  \"zones\": []\n}","_postman_previewlanguage":"json"}]},{"name":"Point inside another red zone","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/api/inspect","host":["{{baseUrl}}"],"path":["api","inspect"]},"body":{"mode":"raw","raw":"{\n  \"type\": \"Point\",\n  \"coordinates\": [\n    104.345,\n    11.605\n  ]\n}","options":{"raw":{"language":"json"}}},"description":""},"response":[{"name":"Expected","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/api/inspect","host":["{{baseUrl}}"],"path":["api","inspect"]},"body":{"mode":"raw","raw":"{\n  \"type\": \"Point\",\n  \"coordinates\": [\n    104.345,\n    11.605\n  ]\n}","options":{"raw":{"language":"json"}}},"description":""},"code":200,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"geometry\": {\n    \"type\": \"Point\",\n    \"coordinates\": [\n      104.345,\n      11.605\n    ]\n  },\n  \"intersects\": [\n    {\n      \"key\": \"forest-cover\",\n      \"name\": \"Forest cover\",\n      \"label\": \"ព្រំប្រទលដែនគម្របព្រៃឈើឆ្នាំ២០០២\"\n    }\n  ],\n  \"zones\": []\n}","_postman_previewlanguage":"json"}]},{"name":"Point inside two overlapping red zones","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/api/inspect","host":["{{baseUrl}}"],"path":["api","inspect"]},"body":{"mode":"raw","raw":"{\n  \"type\": \"Point\",\n  \"coordinates\": [\n    103.45,\n    11.95\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"Where two zones overlap, both are listed."},"response":[{"name":"Expected","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/api/inspect","host":["{{baseUrl}}"],"path":["api","inspect"]},"body":{"mode":"raw","raw":"{\n  \"type\": \"Point\",\n  \"coordinates\": [\n    103.45,\n    11.95\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"Where two zones overlap, both are listed."},"code":200,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"geometry\": {\n    \"type\": \"Point\",\n    \"coordinates\": [\n      103.45,\n      11.95\n    ]\n  },\n  \"intersects\": [\n    {\n      \"key\": \"protected-area-moe\",\n      \"name\": \"Protected areas MOE\",\n      \"label\": \"តំបន់ការពារធម្មជាតិ ក្រសួងបរិស្ថាន\"\n    },\n    {\n      \"key\": \"protected-area-moe-2\",\n      \"name\": \"Protected areas MOE 2\",\n      \"label\": \"តំបន់សហគមន៍នៃតំបន់ការពារធម្មជាតិ អនុក្រឹត្យ២៤៥\"\n    }\n  ],\n  \"zones\": [\n    {\n      \"code\": \"03030303\",\n      \"name\": \"ភូមិគំរូ៣ ឃុំគំរូ ស្រុកគំរូ ខេត្តគំរូ\",\n      \"type\": \"ភូមិ\",\n      \"village\": \"គំរូ៣\",\n      \"registration\": {\n        \"stage\": 1,\n        \"label\": \"កំពុងចុះបញ្ជី\",\n        \"stages\": [\n          {\n            \"stage\": 1,\n            \"label\": \"កំពុងចុះបញ្ជី\",\n            \"done\": true,\n            \"current\": true\n          },\n          {\n            \"stage\": 2,\n            \"label\": \"ការផ្សព្វផ្សាយជាសាធារណៈ\",\n            \"done\": false,\n            \"current\": false\n          },\n          {\n            \"stage\": 3,\n            \"label\": \"បោះពុម្ភប័ណ្ណកម្មសិទ្ធិ\",\n            \"done\": false,\n            \"current\": false\n          }\n        ]\n      }\n    }\n  ]\n}","_postman_previewlanguage":"json"}]},{"name":"Point outside every red zone","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/api/inspect","host":["{{baseUrl}}"],"path":["api","inspect"]},"body":{"mode":"raw","raw":"{\n  \"type\": \"Point\",\n  \"coordinates\": [\n    103,\n    10.5\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"An empty list means the shape is clear."},"response":[{"name":"Expected","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/api/inspect","host":["{{baseUrl}}"],"path":["api","inspect"]},"body":{"mode":"raw","raw":"{\n  \"type\": \"Point\",\n  \"coordinates\": [\n    103,\n    10.5\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"An empty list means the shape is clear."},"code":200,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"geometry\": {\n    \"type\": \"Point\",\n    \"coordinates\": [\n      103,\n      10.5\n    ]\n  },\n  \"intersects\": [],\n  \"zones\": []\n}","_postman_previewlanguage":"json"}]}]},{"name":"LineString","item":[{"name":"Line entering a red zone","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/api/inspect","host":["{{baseUrl}}"],"path":["api","inspect"]},"body":{"mode":"raw","raw":"{\n  \"type\": \"LineString\",\n  \"coordinates\": [\n    [\n      103.52,\n      11.71\n    ],\n    [\n      103.57,\n      11.71\n    ]\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"Starts outside and ends inside a zone."},"response":[{"name":"Expected","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/api/inspect","host":["{{baseUrl}}"],"path":["api","inspect"]},"body":{"mode":"raw","raw":"{\n  \"type\": \"LineString\",\n  \"coordinates\": [\n    [\n      103.52,\n      11.71\n    ],\n    [\n      103.57,\n      11.71\n    ]\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"Starts outside and ends inside a zone."},"code":200,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"geometry\": {\n    \"type\": \"LineString\",\n    \"coordinates\": [\n      [\n        103.52,\n        11.71\n      ],\n      [\n        103.57,\n        11.71\n      ]\n    ]\n  },\n  \"intersects\": [\n    {\n      \"key\": \"protected-area-moe\",\n      \"name\": \"Protected areas MOE\",\n      \"label\": \"តំបន់ការពារធម្មជាតិ ក្រសួងបរិស្ថាន\"\n    }\n  ],\n  \"zones\": []\n}","_postman_previewlanguage":"json"}]},{"name":"Line clipping the edge of a red zone","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/api/inspect","host":["{{baseUrl}}"],"path":["api","inspect"]},"body":{"mode":"raw","raw":"{\n  \"type\": \"LineString\",\n  \"coordinates\": [\n    [\n      103.6,\n      11.75\n    ],\n    [\n      103.61,\n      11.755\n    ],\n    [\n      103.625,\n      11.76\n    ]\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"Only the first stretch is inside; any overlap counts."},"response":[{"name":"Expected","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/api/inspect","host":["{{baseUrl}}"],"path":["api","inspect"]},"body":{"mode":"raw","raw":"{\n  \"type\": \"LineString\",\n  \"coordinates\": [\n    [\n      103.6,\n      11.75\n    ],\n    [\n      103.61,\n      11.755\n    ],\n    [\n      103.625,\n      11.76\n    ]\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"Only the first stretch is inside; any overlap counts."},"code":200,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"geometry\": {\n    \"type\": \"LineString\",\n    \"coordinates\": [\n      [\n        103.6,\n        11.75\n      ],\n      [\n        103.61,\n        11.755\n      ],\n      [\n        103.625,\n        11.76\n      ]\n    ]\n  },\n  \"intersects\": [\n    {\n      \"key\": \"protected-area-moe\",\n      \"name\": \"Protected areas MOE\",\n      \"label\": \"តំបន់ការពារធម្មជាតិ ក្រសួងបរិស្ថាន\"\n    }\n  ],\n  \"zones\": [\n    {\n      \"code\": \"02020202\",\n      \"name\": \"ភូមិគំរូ២ ឃុំគំរូ ស្រុកគំរូ ខេត្តគំរូ\",\n      \"type\": \"ភូមិ\",\n      \"village\": \"គំរូ២\",\n      \"registration\": {\n        \"stage\": 2,\n        \"label\": \"ការផ្សព្វផ្សាយជាសាធារណៈ\",\n        \"stages\": [\n          {\n            \"stage\": 1,\n            \"label\": \"កំពុងចុះបញ្ជី\",\n            \"done\": true,\n            \"current\": false\n          },\n          {\n            \"stage\": 2,\n            \"label\": \"ការផ្សព្វផ្សាយជាសាធារណៈ\",\n            \"done\": true,\n            \"current\": true\n          },\n          {\n            \"stage\": 3,\n            \"label\": \"បោះពុម្ភប័ណ្ណកម្មសិទ្ធិ\",\n            \"done\": false,\n            \"current\": false\n          }\n        ]\n      }\n    },\n    {\n      \"code\": \"02020203\",\n      \"name\": \"ភូមិគំរូ៤ ឃុំគំរូ ស្រុកគំរូ ខេត្តគំរូ\",\n      \"type\": \"ភូមិ\",\n      \"village\": \"គំរូ៤\",\n      \"registration\": {\n        \"stage\": 3,\n        \"label\": \"បោះពុម្ភប័ណ្ណកម្មសិទ្ធិ\",\n        \"stages\": [\n          {\n            \"stage\": 1,\n            \"label\": \"កំពុងចុះបញ្ជី\",\n            \"done\": true,\n            \"current\": false\n          },\n          {\n            \"stage\": 2,\n            \"label\": \"ការផ្សព្វផ្សាយជាសាធារណៈ\",\n            \"done\": true,\n            \"current\": false\n          },\n          {\n            \"stage\": 3,\n            \"label\": \"បោះពុម្ភប័ណ្ណកម្មសិទ្ធិ\",\n            \"done\": true,\n            \"current\": true\n          }\n        ]\n      }\n    }\n  ]\n}","_postman_previewlanguage":"json"}]},{"name":"Line outside every red zone","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/api/inspect","host":["{{baseUrl}}"],"path":["api","inspect"]},"body":{"mode":"raw","raw":"{\n  \"type\": \"LineString\",\n  \"coordinates\": [\n    [\n      103,\n      10.5\n    ],\n    [\n      103.05,\n      10.55\n    ]\n  ]\n}","options":{"raw":{"language":"json"}}},"description":""},"response":[{"name":"Expected","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/api/inspect","host":["{{baseUrl}}"],"path":["api","inspect"]},"body":{"mode":"raw","raw":"{\n  \"type\": \"LineString\",\n  \"coordinates\": [\n    [\n      103,\n      10.5\n    ],\n    [\n      103.05,\n      10.55\n    ]\n  ]\n}","options":{"raw":{"language":"json"}}},"description":""},"code":200,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"geometry\": {\n    \"type\": \"LineString\",\n    \"coordinates\": [\n      [\n        103,\n        10.5\n      ],\n      [\n        103.05,\n        10.55\n      ]\n    ]\n  },\n  \"intersects\": [],\n  \"zones\": []\n}","_postman_previewlanguage":"json"}]}]},{"name":"MultiLineString","item":[{"name":"MultiLineString, one part in a red zone","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/api/inspect","host":["{{baseUrl}}"],"path":["api","inspect"]},"body":{"mode":"raw","raw":"{\n  \"type\": \"MultiLineString\",\n  \"coordinates\": [\n    [\n      [\n        104.33,\n        11.62\n      ],\n      [\n        104.345,\n        11.62\n      ]\n    ],\n    [\n      [\n        103,\n        10.5\n      ],\n      [\n        103.05,\n        10.55\n      ]\n    ]\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"The first line runs into a zone; the second is outside."},"response":[{"name":"Expected","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/api/inspect","host":["{{baseUrl}}"],"path":["api","inspect"]},"body":{"mode":"raw","raw":"{\n  \"type\": \"MultiLineString\",\n  \"coordinates\": [\n    [\n      [\n        104.33,\n        11.62\n      ],\n      [\n        104.345,\n        11.62\n      ]\n    ],\n    [\n      [\n        103,\n        10.5\n      ],\n      [\n        103.05,\n        10.55\n      ]\n    ]\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"The first line runs into a zone; the second is outside."},"code":200,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"geometry\": {\n    \"type\": \"MultiLineString\",\n    \"coordinates\": [\n      [\n        [\n          104.33,\n          11.62\n        ],\n        [\n          104.345,\n          11.62\n        ]\n      ],\n      [\n        [\n          103,\n          10.5\n        ],\n        [\n          103.05,\n          10.55\n        ]\n      ]\n    ]\n  },\n  \"intersects\": [\n    {\n      \"key\": \"forest-cover\",\n      \"name\": \"Forest cover\",\n      \"label\": \"ព្រំប្រទលដែនគម្របព្រៃឈើឆ្នាំ២០០២\"\n    }\n  ],\n  \"zones\": []\n}","_postman_previewlanguage":"json"}]},{"name":"MultiLineString outside every red zone","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/api/inspect","host":["{{baseUrl}}"],"path":["api","inspect"]},"body":{"mode":"raw","raw":"{\n  \"type\": \"MultiLineString\",\n  \"coordinates\": [\n    [\n      [\n        103,\n        10.5\n      ],\n      [\n        103.05,\n        10.55\n      ]\n    ],\n    [\n      [\n        102.5,\n        10.8\n      ],\n      [\n        102.55,\n        10.85\n      ]\n    ]\n  ]\n}","options":{"raw":{"language":"json"}}},"description":""},"response":[{"name":"Expected","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/api/inspect","host":["{{baseUrl}}"],"path":["api","inspect"]},"body":{"mode":"raw","raw":"{\n  \"type\": \"MultiLineString\",\n  \"coordinates\": [\n    [\n      [\n        103,\n        10.5\n      ],\n      [\n        103.05,\n        10.55\n      ]\n    ],\n    [\n      [\n        102.5,\n        10.8\n      ],\n      [\n        102.55,\n        10.85\n      ]\n    ]\n  ]\n}","options":{"raw":{"language":"json"}}},"description":""},"code":200,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"geometry\": {\n    \"type\": \"MultiLineString\",\n    \"coordinates\": [\n      [\n        [\n          103,\n          10.5\n        ],\n        [\n          103.05,\n          10.55\n        ]\n      ],\n      [\n        [\n          102.5,\n          10.8\n        ],\n        [\n          102.55,\n          10.85\n        ]\n      ]\n    ]\n  },\n  \"intersects\": [],\n  \"zones\": []\n}","_postman_previewlanguage":"json"}]}]},{"name":"Polygon","item":[{"name":"Area inside a red zone","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/api/inspect","host":["{{baseUrl}}"],"path":["api","inspect"]},"body":{"mode":"raw","raw":"{\n  \"type\": \"Polygon\",\n  \"coordinates\": [\n    [\n      [\n        104.36,\n        11.62\n      ],\n      [\n        104.365,\n        11.62\n      ],\n      [\n        104.365,\n        11.625\n      ],\n      [\n        104.36,\n        11.625\n      ],\n      [\n        104.36,\n        11.62\n      ]\n    ]\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"A small plot fully inside a zone."},"response":[{"name":"Expected","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/api/inspect","host":["{{baseUrl}}"],"path":["api","inspect"]},"body":{"mode":"raw","raw":"{\n  \"type\": \"Polygon\",\n  \"coordinates\": [\n    [\n      [\n        104.36,\n        11.62\n      ],\n      [\n        104.365,\n        11.62\n      ],\n      [\n        104.365,\n        11.625\n      ],\n      [\n        104.36,\n        11.625\n      ],\n      [\n        104.36,\n        11.62\n      ]\n    ]\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"A small plot fully inside a zone."},"code":200,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"geometry\": {\n    \"type\": \"Polygon\",\n    \"coordinates\": [\n      [\n        [\n          104.36,\n          11.62\n        ],\n        [\n          104.365,\n          11.62\n        ],\n        [\n          104.365,\n          11.625\n        ],\n        [\n          104.36,\n          11.625\n        ],\n        [\n          104.36,\n          11.62\n        ]\n      ]\n    ]\n  },\n  \"intersects\": [\n    {\n      \"key\": \"forest-cover\",\n      \"name\": \"Forest cover\",\n      \"label\": \"ព្រំប្រទលដែនគម្របព្រៃឈើឆ្នាំ២០០២\"\n    }\n  ],\n  \"zones\": [\n    {\n      \"code\": \"05050505\",\n      \"name\": \"ភូមិគំរូ៥ ឃុំគំរូ ស្រុកគំរូ ខេត្តគំរូ\",\n      \"type\": \"ភូមិ\",\n      \"village\": \"គំរូ៥\",\n      \"registration\": {\n        \"stage\": 3,\n        \"label\": \"បោះពុម្ភប័ណ្ណកម្មសិទ្ធិ\",\n        \"stages\": [\n          {\n            \"stage\": 1,\n            \"label\": \"កំពុងចុះបញ្ជី\",\n            \"done\": true,\n            \"current\": false\n          },\n          {\n            \"stage\": 2,\n            \"label\": \"ការផ្សព្វផ្សាយជាសាធារណៈ\",\n            \"done\": true,\n            \"current\": false\n          },\n          {\n            \"stage\": 3,\n            \"label\": \"បោះពុម្ភប័ណ្ណកម្មសិទ្ធិ\",\n            \"done\": true,\n            \"current\": true\n          }\n        ]\n      }\n    }\n  ]\n}","_postman_previewlanguage":"json"}]},{"name":"Area partly overlapping a red zone","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/api/inspect","host":["{{baseUrl}}"],"path":["api","inspect"]},"body":{"mode":"raw","raw":"{\n  \"type\": \"Polygon\",\n  \"coordinates\": [\n    [\n      [\n        104.378,\n        11.605\n      ],\n      [\n        104.39,\n        11.605\n      ],\n      [\n        104.39,\n        11.608\n      ],\n      [\n        104.378,\n        11.608\n      ],\n      [\n        104.378,\n        11.605\n      ]\n    ]\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"Only the edge of the area overlaps; any overlap counts."},"response":[{"name":"Expected","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/api/inspect","host":["{{baseUrl}}"],"path":["api","inspect"]},"body":{"mode":"raw","raw":"{\n  \"type\": \"Polygon\",\n  \"coordinates\": [\n    [\n      [\n        104.378,\n        11.605\n      ],\n      [\n        104.39,\n        11.605\n      ],\n      [\n        104.39,\n        11.608\n      ],\n      [\n        104.378,\n        11.608\n      ],\n      [\n        104.378,\n        11.605\n      ]\n    ]\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"Only the edge of the area overlaps; any overlap counts."},"code":200,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"geometry\": {\n    \"type\": \"Polygon\",\n    \"coordinates\": [\n      [\n        [\n          104.378,\n          11.605\n        ],\n        [\n          104.39,\n          11.605\n        ],\n        [\n          104.39,\n          11.608\n        ],\n        [\n          104.378,\n          11.608\n        ],\n        [\n          104.378,\n          11.605\n        ]\n      ]\n    ]\n  },\n  \"intersects\": [\n    {\n      \"key\": \"forest-cover\",\n      \"name\": \"Forest cover\",\n      \"label\": \"ព្រំប្រទលដែនគម្របព្រៃឈើឆ្នាំ២០០២\"\n    }\n  ],\n  \"zones\": []\n}","_postman_previewlanguage":"json"}]},{"name":"Area covering a whole red zone","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/api/inspect","host":["{{baseUrl}}"],"path":["api","inspect"]},"body":{"mode":"raw","raw":"{\n  \"type\": \"Polygon\",\n  \"coordinates\": [\n    [\n      [\n        103.42,\n        11.92\n      ],\n      [\n        103.48,\n        11.92\n      ],\n      [\n        103.48,\n        11.98\n      ],\n      [\n        103.42,\n        11.98\n      ],\n      [\n        103.42,\n        11.92\n      ]\n    ]\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"Contains one zone completely and lies inside another."},"response":[{"name":"Expected","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/api/inspect","host":["{{baseUrl}}"],"path":["api","inspect"]},"body":{"mode":"raw","raw":"{\n  \"type\": \"Polygon\",\n  \"coordinates\": [\n    [\n      [\n        103.42,\n        11.92\n      ],\n      [\n        103.48,\n        11.92\n      ],\n      [\n        103.48,\n        11.98\n      ],\n      [\n        103.42,\n        11.98\n      ],\n      [\n        103.42,\n        11.92\n      ]\n    ]\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"Contains one zone completely and lies inside another."},"code":200,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"geometry\": {\n    \"type\": \"Polygon\",\n    \"coordinates\": [\n      [\n        [\n          103.42,\n          11.92\n        ],\n        [\n          103.48,\n          11.92\n        ],\n        [\n          103.48,\n          11.98\n        ],\n        [\n          103.42,\n          11.98\n        ],\n        [\n          103.42,\n          11.92\n        ]\n      ]\n    ]\n  },\n  \"intersects\": [\n    {\n      \"key\": \"protected-area-moe\",\n      \"name\": \"Protected areas MOE\",\n      \"label\": \"តំបន់ការពារធម្មជាតិ ក្រសួងបរិស្ថាន\"\n    },\n    {\n      \"key\": \"protected-area-moe-2\",\n      \"name\": \"Protected areas MOE 2\",\n      \"label\": \"តំបន់សហគមន៍នៃតំបន់ការពារធម្មជាតិ អនុក្រឹត្យ២៤៥\"\n    }\n  ],\n  \"zones\": [\n    {\n      \"code\": \"03030303\",\n      \"name\": \"ភូមិគំរូ៣ ឃុំគំរូ ស្រុកគំរូ ខេត្តគំរូ\",\n      \"type\": \"ភូមិ\",\n      \"village\": \"គំរូ៣\",\n      \"registration\": {\n        \"stage\": 1,\n        \"label\": \"កំពុងចុះបញ្ជី\",\n        \"stages\": [\n          {\n            \"stage\": 1,\n            \"label\": \"កំពុងចុះបញ្ជី\",\n            \"done\": true,\n            \"current\": true\n          },\n          {\n            \"stage\": 2,\n            \"label\": \"ការផ្សព្វផ្សាយជាសាធារណៈ\",\n            \"done\": false,\n            \"current\": false\n          },\n          {\n            \"stage\": 3,\n            \"label\": \"បោះពុម្ភប័ណ្ណកម្មសិទ្ធិ\",\n            \"done\": false,\n            \"current\": false\n          }\n        ]\n      }\n    }\n  ]\n}","_postman_previewlanguage":"json"}]},{"name":"Area outside every red zone","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/api/inspect","host":["{{baseUrl}}"],"path":["api","inspect"]},"body":{"mode":"raw","raw":"{\n  \"type\": \"Polygon\",\n  \"coordinates\": [\n    [\n      [\n        103,\n        10.5\n      ],\n      [\n        103.01,\n        10.5\n      ],\n      [\n        103.01,\n        10.51\n      ],\n      [\n        103,\n        10.51\n      ],\n      [\n        103,\n        10.5\n      ]\n    ]\n  ]\n}","options":{"raw":{"language":"json"}}},"description":""},"response":[{"name":"Expected","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/api/inspect","host":["{{baseUrl}}"],"path":["api","inspect"]},"body":{"mode":"raw","raw":"{\n  \"type\": \"Polygon\",\n  \"coordinates\": [\n    [\n      [\n        103,\n        10.5\n      ],\n      [\n        103.01,\n        10.5\n      ],\n      [\n        103.01,\n        10.51\n      ],\n      [\n        103,\n        10.51\n      ],\n      [\n        103,\n        10.5\n      ]\n    ]\n  ]\n}","options":{"raw":{"language":"json"}}},"description":""},"code":200,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"geometry\": {\n    \"type\": \"Polygon\",\n    \"coordinates\": [\n      [\n        [\n          103,\n          10.5\n        ],\n        [\n          103.01,\n          10.5\n        ],\n        [\n          103.01,\n          10.51\n        ],\n        [\n          103,\n          10.51\n        ],\n        [\n          103,\n          10.5\n        ]\n      ]\n    ]\n  },\n  \"intersects\": [],\n  \"zones\": []\n}","_postman_previewlanguage":"json"}]}]},{"name":"MultiPolygon","item":[{"name":"MultiPolygon in two different red zones","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/api/inspect","host":["{{baseUrl}}"],"path":["api","inspect"]},"body":{"mode":"raw","raw":"{\n  \"type\": \"MultiPolygon\",\n  \"coordinates\": [\n    [\n      [\n        [\n          103.555,\n          11.705\n        ],\n        [\n          103.56,\n          11.705\n        ],\n        [\n          103.56,\n          11.71\n        ],\n        [\n          103.555,\n          11.71\n        ],\n        [\n          103.555,\n          11.705\n        ]\n      ]\n    ],\n    [\n      [\n        [\n          104.36,\n          11.62\n        ],\n        [\n          104.365,\n          11.62\n        ],\n        [\n          104.365,\n          11.625\n        ],\n        [\n          104.36,\n          11.625\n        ],\n        [\n          104.36,\n          11.62\n        ]\n      ]\n    ]\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"One plot in each zone."},"response":[{"name":"Expected","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/api/inspect","host":["{{baseUrl}}"],"path":["api","inspect"]},"body":{"mode":"raw","raw":"{\n  \"type\": \"MultiPolygon\",\n  \"coordinates\": [\n    [\n      [\n        [\n          103.555,\n          11.705\n        ],\n        [\n          103.56,\n          11.705\n        ],\n        [\n          103.56,\n          11.71\n        ],\n        [\n          103.555,\n          11.71\n        ],\n        [\n          103.555,\n          11.705\n        ]\n      ]\n    ],\n    [\n      [\n        [\n          104.36,\n          11.62\n        ],\n        [\n          104.365,\n          11.62\n        ],\n        [\n          104.365,\n          11.625\n        ],\n        [\n          104.36,\n          11.625\n        ],\n        [\n          104.36,\n          11.62\n        ]\n      ]\n    ]\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"One plot in each zone."},"code":200,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"geometry\": {\n    \"type\": \"MultiPolygon\",\n    \"coordinates\": [\n      [\n        [\n          [\n            103.555,\n            11.705\n          ],\n          [\n            103.56,\n            11.705\n          ],\n          [\n            103.56,\n            11.71\n          ],\n          [\n            103.555,\n            11.71\n          ],\n          [\n            103.555,\n            11.705\n          ]\n        ]\n      ],\n      [\n        [\n          [\n            104.36,\n            11.62\n          ],\n          [\n            104.365,\n            11.62\n          ],\n          [\n            104.365,\n            11.625\n          ],\n          [\n            104.36,\n            11.625\n          ],\n          [\n            104.36,\n            11.62\n          ]\n        ]\n      ]\n    ]\n  },\n  \"intersects\": [\n    {\n      \"key\": \"forest-cover\",\n      \"name\": \"Forest cover\",\n      \"label\": \"ព្រំប្រទលដែនគម្របព្រៃឈើឆ្នាំ២០០២\"\n    },\n    {\n      \"key\": \"protected-area-moe\",\n      \"name\": \"Protected areas MOE\",\n      \"label\": \"តំបន់ការពារធម្មជាតិ ក្រសួងបរិស្ថាន\"\n    }\n  ],\n  \"zones\": [\n    {\n      \"code\": \"05050505\",\n      \"name\": \"ភូមិគំរូ៥ ឃុំគំរូ ស្រុកគំរូ ខេត្តគំរូ\",\n      \"type\": \"ភូមិ\",\n      \"village\": \"គំរូ៥\",\n      \"registration\": {\n        \"stage\": 3,\n        \"label\": \"បោះពុម្ភប័ណ្ណកម្មសិទ្ធិ\",\n        \"stages\": [\n          {\n            \"stage\": 1,\n            \"label\": \"កំពុងចុះបញ្ជី\",\n            \"done\": true,\n            \"current\": false\n          },\n          {\n            \"stage\": 2,\n            \"label\": \"ការផ្សព្វផ្សាយជាសាធារណៈ\",\n            \"done\": true,\n            \"current\": false\n          },\n          {\n            \"stage\": 3,\n            \"label\": \"បោះពុម្ភប័ណ្ណកម្មសិទ្ធិ\",\n            \"done\": true,\n            \"current\": true\n          }\n        ]\n      }\n    }\n  ]\n}","_postman_previewlanguage":"json"}]},{"name":"MultiPolygon, one part in a red zone","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/api/inspect","host":["{{baseUrl}}"],"path":["api","inspect"]},"body":{"mode":"raw","raw":"{\n  \"type\": \"MultiPolygon\",\n  \"coordinates\": [\n    [\n      [\n        [\n          103.555,\n          11.705\n        ],\n        [\n          103.56,\n          11.705\n        ],\n        [\n          103.56,\n          11.71\n        ],\n        [\n          103.555,\n          11.71\n        ],\n        [\n          103.555,\n          11.705\n        ]\n      ]\n    ],\n    [\n      [\n        [\n          103,\n          10.5\n        ],\n        [\n          103.01,\n          10.5\n        ],\n        [\n          103.01,\n          10.51\n        ],\n        [\n          103,\n          10.51\n        ],\n        [\n          103,\n          10.5\n        ]\n      ]\n    ]\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"The first plot is inside a zone; the second is outside."},"response":[{"name":"Expected","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/api/inspect","host":["{{baseUrl}}"],"path":["api","inspect"]},"body":{"mode":"raw","raw":"{\n  \"type\": \"MultiPolygon\",\n  \"coordinates\": [\n    [\n      [\n        [\n          103.555,\n          11.705\n        ],\n        [\n          103.56,\n          11.705\n        ],\n        [\n          103.56,\n          11.71\n        ],\n        [\n          103.555,\n          11.71\n        ],\n        [\n          103.555,\n          11.705\n        ]\n      ]\n    ],\n    [\n      [\n        [\n          103,\n          10.5\n        ],\n        [\n          103.01,\n          10.5\n        ],\n        [\n          103.01,\n          10.51\n        ],\n        [\n          103,\n          10.51\n        ],\n        [\n          103,\n          10.5\n        ]\n      ]\n    ]\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"The first plot is inside a zone; the second is outside."},"code":200,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"geometry\": {\n    \"type\": \"MultiPolygon\",\n    \"coordinates\": [\n      [\n        [\n          [\n            103.555,\n            11.705\n          ],\n          [\n            103.56,\n            11.705\n          ],\n          [\n            103.56,\n            11.71\n          ],\n          [\n            103.555,\n            11.71\n          ],\n          [\n            103.555,\n            11.705\n          ]\n        ]\n      ],\n      [\n        [\n          [\n            103,\n            10.5\n          ],\n          [\n            103.01,\n            10.5\n          ],\n          [\n            103.01,\n            10.51\n          ],\n          [\n            103,\n            10.51\n          ],\n          [\n            103,\n            10.5\n          ]\n        ]\n      ]\n    ]\n  },\n  \"intersects\": [\n    {\n      \"key\": \"protected-area-moe\",\n      \"name\": \"Protected areas MOE\",\n      \"label\": \"តំបន់ការពារធម្មជាតិ ក្រសួងបរិស្ថាន\"\n    }\n  ],\n  \"zones\": []\n}","_postman_previewlanguage":"json"}]},{"name":"MultiPolygon outside every red zone","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/api/inspect","host":["{{baseUrl}}"],"path":["api","inspect"]},"body":{"mode":"raw","raw":"{\n  \"type\": \"MultiPolygon\",\n  \"coordinates\": [\n    [\n      [\n        [\n          103,\n          10.5\n        ],\n        [\n          103.01,\n          10.5\n        ],\n        [\n          103.01,\n          10.51\n        ],\n        [\n          103,\n          10.51\n        ],\n        [\n          103,\n          10.5\n        ]\n      ]\n    ],\n    [\n      [\n        [\n          102.5,\n          10.8\n        ],\n        [\n          102.51,\n          10.8\n        ],\n        [\n          102.51,\n          10.81\n        ],\n        [\n          102.5,\n          10.81\n        ],\n        [\n          102.5,\n          10.8\n        ]\n      ]\n    ]\n  ]\n}","options":{"raw":{"language":"json"}}},"description":""},"response":[{"name":"Expected","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/api/inspect","host":["{{baseUrl}}"],"path":["api","inspect"]},"body":{"mode":"raw","raw":"{\n  \"type\": \"MultiPolygon\",\n  \"coordinates\": [\n    [\n      [\n        [\n          103,\n          10.5\n        ],\n        [\n          103.01,\n          10.5\n        ],\n        [\n          103.01,\n          10.51\n        ],\n        [\n          103,\n          10.51\n        ],\n        [\n          103,\n          10.5\n        ]\n      ]\n    ],\n    [\n      [\n        [\n          102.5,\n          10.8\n        ],\n        [\n          102.51,\n          10.8\n        ],\n        [\n          102.51,\n          10.81\n        ],\n        [\n          102.5,\n          10.81\n        ],\n        [\n          102.5,\n          10.8\n        ]\n      ]\n    ]\n  ]\n}","options":{"raw":{"language":"json"}}},"description":""},"code":200,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"geometry\": {\n    \"type\": \"MultiPolygon\",\n    \"coordinates\": [\n      [\n        [\n          [\n            103,\n            10.5\n          ],\n          [\n            103.01,\n            10.5\n          ],\n          [\n            103.01,\n            10.51\n          ],\n          [\n            103,\n            10.51\n          ],\n          [\n            103,\n            10.5\n          ]\n        ]\n      ],\n      [\n        [\n          [\n            102.5,\n            10.8\n          ],\n          [\n            102.51,\n            10.8\n          ],\n          [\n            102.51,\n            10.81\n          ],\n          [\n            102.5,\n            10.81\n          ],\n          [\n            102.5,\n            10.8\n          ]\n        ]\n      ]\n    ]\n  },\n  \"intersects\": [],\n  \"zones\": []\n}","_postman_previewlanguage":"json"}]}]},{"name":"Errors","item":[{"name":"Error: shape too large","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/api/inspect","host":["{{baseUrl}}"],"path":["api","inspect"]},"body":{"mode":"raw","raw":"{\n  \"type\": \"Polygon\",\n  \"coordinates\": [\n    [\n      [\n        103,\n        10\n      ],\n      [\n        104,\n        10\n      ],\n      [\n        104,\n        11\n      ],\n      [\n        103,\n        11\n      ],\n      [\n        103,\n        10\n      ]\n    ]\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"A very large area is rejected with 400. Split big shapes into smaller ones."},"response":[{"name":"Expected","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/api/inspect","host":["{{baseUrl}}"],"path":["api","inspect"]},"body":{"mode":"raw","raw":"{\n  \"type\": \"Polygon\",\n  \"coordinates\": [\n    [\n      [\n        103,\n        10\n      ],\n      [\n        104,\n        10\n      ],\n      [\n        104,\n        11\n      ],\n      [\n        103,\n        11\n      ],\n      [\n        103,\n        10\n      ]\n    ]\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"A very large area is rejected with 400. Split big shapes into smaller ones."},"code":400,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"error\": {\n    \"code\": \"BAD_REQUEST\",\n    \"message\": \"Shape too large. Split it into smaller shapes and send them separately.\"\n  }\n}","_postman_previewlanguage":"json"}]},{"name":"Error: invalid coordinates","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/api/inspect","host":["{{baseUrl}}"],"path":["api","inspect"]},"body":{"mode":"raw","raw":"{\n  \"type\": \"Point\",\n  \"coordinates\": [\n    11.55,\n    104.92\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"Latitude must be between -90 and 90 (coordinates are [lng, lat])."},"response":[{"name":"Expected","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/api/inspect","host":["{{baseUrl}}"],"path":["api","inspect"]},"body":{"mode":"raw","raw":"{\n  \"type\": \"Point\",\n  \"coordinates\": [\n    11.55,\n    104.92\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"Latitude must be between -90 and 90 (coordinates are [lng, lat])."},"code":400,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"error\": {\n    \"code\": \"BAD_REQUEST\",\n    \"message\": \"Invalid body\",\n    \"details\": [\n      {\n        \"path\": \"coordinates\",\n        \"message\": \"Position out of range: expected [longitude -180..180, latitude -90..90]\"\n      }\n    ]\n  }\n}","_postman_previewlanguage":"json"}]},{"name":"Error: unsupported type","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/api/inspect","host":["{{baseUrl}}"],"path":["api","inspect"]},"body":{"mode":"raw","raw":"{\n  \"type\": \"GeometryCollection\",\n  \"geometries\": [\n    {\n      \"type\": \"Point\",\n      \"coordinates\": [\n        104.92,\n        11.55\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"GeometryCollection is not accepted; send each geometry separately."},"response":[{"name":"Expected","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/api/inspect","host":["{{baseUrl}}"],"path":["api","inspect"]},"body":{"mode":"raw","raw":"{\n  \"type\": \"GeometryCollection\",\n  \"geometries\": [\n    {\n      \"type\": \"Point\",\n      \"coordinates\": [\n        104.92,\n        11.55\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"GeometryCollection is not accepted; send each geometry separately."},"code":400,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"error\": {\n    \"code\": \"BAD_REQUEST\",\n    \"message\": \"Invalid body\",\n    \"details\": [\n      {\n        \"path\": \"type\",\n        \"message\": \"Invalid discriminator value. Expected 'Feature' | 'Point' | 'MultiPoint' | 'LineString' | 'MultiLineString' | 'Polygon' | 'MultiPolygon'\"\n      }\n    ]\n  }\n}","_postman_previewlanguage":"json"}]}]}]},{"name":"3. Logout","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/api/auth/logout","host":["{{baseUrl}}"],"path":["api","auth","logout"]},"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"description":"Ends the session; the token stops working."}}]}