{
  "openapi": "3.1.0",
  "info": {
    "title": "Fire Services Department — Record of Target Mini-Storage Premises (MSP) without common fire hazards",
    "version": "csdi-native-readonly-v1",
    "description": "Deterministic derivative of retained native CSDI metadata. Read-only GET operations are selected only where native capabilities and protocol documentation support them. Publisher originals remain separate. Successful metadata retrieval does not prove current data-query success, complete response fields or all layer combinations."
  },
  "paths": {
    "/server/rest/services/common/hkfsd_rcd_1666326904545_5957/FeatureServer/{layerId}/query": {
      "get": {
        "operationId": "ArcgisFeatureServerQueryFeatures",
        "tags": [
          "ArcGIS REST"
        ],
        "summary": "Query published features",
        "description": "Read-only GET query follows the source-advertised Query capability. One parameterized operation covers all queryable layers. Metadata field types are declared without inventing universally required attributes. Omitted f may produce the native REST default representation, which is not asserted as a JSON payload.",
        "parameters": [
          {
            "name": "layerId",
            "in": "path",
            "required": true,
            "description": "Published queryable layer or table. Values are publisher identifiers; examples are choices, not a closed enumeration. The full ID/title directory is in x-csdi-layer-choices.",
            "schema": {
              "type": "integer"
            },
            "examples": {
              "choice1": {
                "summary": "MSP_without_common_fire_hazards",
                "value": 0
              }
            },
            "x-choice-count": 1
          },
          {
            "name": "f",
            "in": "query",
            "required": false,
            "description": "Advertised query representation. Supply this selector for the represented JSON/GeoJSON/PBF responses.",
            "schema": {
              "type": "string",
              "enum": [
                "json",
                "geojson",
                "pbf"
              ]
            },
            "example": "json"
          },
          {
            "name": "where",
            "in": "query",
            "required": false,
            "description": "SQL WHERE expression over the published fields; source protocol supports this read-only query filter.",
            "schema": {
              "type": "string"
            },
            "example": "1=1"
          },
          {
            "name": "outFields",
            "in": "query",
            "required": false,
            "description": "Comma-separated source field names, or *. Field schemas are conditional on the selected layer and returned fields.",
            "schema": {
              "type": "string"
            },
            "example": "*"
          },
          {
            "name": "returnGeometry",
            "in": "query",
            "required": false,
            "description": "Whether native feature geometry should be included.",
            "schema": {
              "type": "boolean"
            },
            "example": false
          },
          {
            "name": "resultRecordCount",
            "in": "query",
            "required": false,
            "description": "Bound returned records where the selected layer advertises pagination; no global range is inferred.",
            "schema": {
              "type": "integer"
            },
            "example": 1,
            "x-supported-layer-ids": [
              0
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "Native publisher response; protocol or business errors may also be returned. Metadata connection and actual data-query success are separate.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArcgisFeatureServerArcgisJsonEnvelope"
                }
              },
              "application/geo+json": {
                "schema": {
                  "$ref": "#/components/schemas/ArcgisFeatureServerArcgisGeoJson"
                }
              },
              "application/x-protobuf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "externalDocs": {
          "url": "https://developers.arcgis.com/rest/services-reference/enterprise/query-feature-service-layer/"
        },
        "servers": [
          {
            "url": "https://portal.csdi.gov.hk"
          }
        ],
        "x-native-source-evidence": [
          {
            "url": "https://portal.csdi.gov.hk/server/rest/services/common/hkfsd_rcd_1666326904545_5957/FeatureServer?f=pjson",
            "sha256": "3449c95a8f69194c1494f1e7385b2cfc5ef25650d68a5066c4b4042c75060936",
            "httpStatus": 200,
            "contentType": "text/plain;charset=UTF-8",
            "role": "arcgis-service",
            "parseStatus": "pass",
            "kind": "arcgis-service"
          },
          {
            "url": "https://portal.csdi.gov.hk/server/rest/services/common/hkfsd_rcd_1666326904545_5957/FeatureServer/0?f=pjson",
            "sha256": "cd8e4e15c22b134536e333f02c0667de975398d86fbfa17fd6f3a20ed87bc363",
            "httpStatus": 200,
            "contentType": "text/plain;charset=UTF-8",
            "role": "arcgis-layer",
            "parseStatus": "pass",
            "kind": "arcgis-layer"
          }
        ]
      }
    },
    "/server/services/common/hkfsd_rcd_1666326904545_5957/MapServer/WMSServer": {
      "get": {
        "operationId": "WmsMapServerGetMap",
        "tags": [
          "WMS"
        ],
        "summary": "Render a map image",
        "description": "Map rendering returns its advertised native image/document representation. It does not return a feature JSON collection. Layer CRS, style and bounding-box choices are retained; no data observation is implied by metadata availability.",
        "parameters": [
          {
            "name": "service",
            "in": "query",
            "required": true,
            "description": "OGC service identifier.",
            "schema": {
              "type": "string",
              "enum": [
                "WMS"
              ]
            },
            "example": "WMS"
          },
          {
            "name": "version",
            "in": "query",
            "required": true,
            "description": "Exact advertised WMS version.",
            "schema": {
              "type": "string",
              "enum": [
                "1.3.0"
              ]
            },
            "example": "1.3.0"
          },
          {
            "name": "request",
            "in": "query",
            "required": true,
            "description": "Read-only GetMap operation.",
            "schema": {
              "type": "string",
              "enum": [
                "GetMap"
              ]
            },
            "example": "GetMap"
          },
          {
            "name": "layers",
            "in": "query",
            "required": true,
            "description": "Comma-separated published map layer names. Values are publisher identifiers; examples are choices, not a closed enumeration. The full ID/title directory is in x-csdi-layer-choices.",
            "schema": {
              "type": "string"
            },
            "examples": {
              "choice1": {
                "summary": "MSP_without_common_fire_hazards",
                "value": "MSP_without_common_fire_hazards"
              }
            },
            "x-choice-count": 1
          },
          {
            "name": "styles",
            "in": "query",
            "required": true,
            "description": "Comma-separated style names; an empty string selects the standard default style.",
            "schema": {
              "type": "string"
            },
            "example": "",
            "allowEmptyValue": true
          },
          {
            "name": "format",
            "in": "query",
            "required": true,
            "description": "Advertised GetMap representation.",
            "schema": {
              "type": "string",
              "enum": [
                "image/bmp",
                "image/jpeg",
                "image/tiff",
                "image/png",
                "image/png8",
                "image/png24",
                "image/png32",
                "image/gif",
                "image/svg+xml"
              ]
            },
            "example": "image/png"
          },
          {
            "name": "width",
            "in": "query",
            "required": true,
            "description": "Requested image width in pixels; no invented maximum.",
            "schema": {
              "type": "integer"
            },
            "example": 256
          },
          {
            "name": "height",
            "in": "query",
            "required": true,
            "description": "Requested image height in pixels; no invented maximum.",
            "schema": {
              "type": "integer"
            },
            "example": 256
          },
          {
            "name": "crs",
            "in": "query",
            "required": true,
            "description": "Advertised coordinate reference system; support depends on selected layer. Observe the WMS version and CRS axis order.",
            "schema": {
              "type": "string"
            },
            "example": "CRS:84"
          },
          {
            "name": "bbox",
            "in": "query",
            "required": true,
            "description": "minx,miny,maxx,maxy in the chosen CRS and its specified axis order. Example, when present, is an actual advertised bounding box.",
            "schema": {
              "type": "string"
            },
            "example": "113.967896,22.237122,114.246521,22.497498"
          }
        ],
        "responses": {
          "200": {
            "description": "Native publisher response; protocol or business errors may also be returned. Metadata connection and actual data-query success are separate.",
            "content": {
              "image/bmp": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/jpeg": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/tiff": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/png": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/png8": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/png24": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/png32": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/gif": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/svg+xml": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "externalDocs": {
          "url": "https://portal.csdi.gov.hk/csdi-webpage/doc/GeoSpatialServices"
        },
        "x-advertised-crss": [
          "CRS:84",
          "EPSG:4326"
        ],
        "servers": [
          {
            "url": "https://portal.csdi.gov.hk"
          }
        ],
        "x-native-source-evidence": [
          {
            "url": "https://portal.csdi.gov.hk/server/services/common/hkfsd_rcd_1666326904545_5957/MapServer/WMSServer?service=wms&request=GetCapabilities",
            "sha256": "176ac6a06e83e3956d258edabd74c0e43fc3a692352cdf4a4dbfad3f31b61547",
            "httpStatus": 200,
            "contentType": "text/xml",
            "role": "wms-capabilities",
            "parseStatus": "pass",
            "kind": "wms-capabilities"
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "ArcgisFeatureServerArcgisLayer0Attributes": {
        "type": "object",
        "properties": {
          "OBJECTID": {
            "description": "Publisher field type: esriFieldTypeOID",
            "title": "OBJECTID",
            "type": "integer"
          },
          "Address_en": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "Address_en",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 255
          },
          "Address_tc": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "Address_tc",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 255
          },
          "Address_sc": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "Address_sc",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 255
          },
          "Building_en": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "Building_en",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 255
          },
          "Building_tc": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "Building_tc",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 255
          },
          "Building_sc": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "Building_sc",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 255
          },
          "Region_en": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "Region_en",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 255
          },
          "Region_tc": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "Region_tc",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 255
          },
          "Region_sc": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "Region_sc",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 255
          },
          "District_en": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "District_en",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 255
          },
          "District_tc": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "District_tc",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 255
          },
          "District_sc": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "District_sc",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 255
          },
          "Inspection_Date": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "Inspection_Date",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 255
          },
          "Latitude": {
            "description": "Publisher field type: esriFieldTypeDouble",
            "title": "Latitude",
            "type": [
              "number",
              "null"
            ]
          },
          "Longitude": {
            "description": "Publisher field type: esriFieldTypeDouble",
            "title": "Longitude",
            "type": [
              "number",
              "null"
            ]
          }
        },
        "additionalProperties": true
      },
      "ArcgisFeatureServerArcgisFeatureSet": {
        "type": "object",
        "properties": {
          "features": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "attributes": {
                  "$ref": "#/components/schemas/ArcgisFeatureServerArcgisLayer0Attributes"
                },
                "geometry": {
                  "description": "Native geometry and spatial reference are not constrained by attribute metadata."
                }
              },
              "additionalProperties": true
            }
          },
          "exceededTransferLimit": {
            "type": "boolean"
          }
        },
        "additionalProperties": true
      },
      "ArcgisFeatureServerArcgisGeoJson": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "features": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string"
                },
                "properties": {
                  "$ref": "#/components/schemas/ArcgisFeatureServerArcgisLayer0Attributes"
                },
                "geometry": {
                  "description": "Geometry representation is not constrained by the retained attribute metadata."
                }
              },
              "additionalProperties": true
            }
          }
        },
        "additionalProperties": true
      },
      "ArcgisFeatureServerArcgisJsonEnvelope": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "features": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string"
                },
                "attributes": {
                  "$ref": "#/components/schemas/ArcgisFeatureServerArcgisLayer0Attributes"
                },
                "properties": {
                  "$ref": "#/components/schemas/ArcgisFeatureServerArcgisLayer0Attributes"
                },
                "geometry": {
                  "description": "Geometry is not constrained by attribute metadata."
                }
              },
              "additionalProperties": true
            }
          },
          "exceededTransferLimit": {
            "type": "boolean"
          }
        },
        "additionalProperties": true
      }
    }
  },
  "externalDocs": {
    "url": "https://portal.csdi.gov.hk/csdi-webpage/doc/GeoSpatialServices"
  },
  "x-csdi-layer-choices": [
    {
      "id": 0,
      "title": "MSP_without_common_fire_hazards",
      "protocol": "arcgis"
    },
    {
      "id": "MSP_without_common_fire_hazards",
      "title": "MSP_without_common_fire_hazards",
      "protocol": "wms",
      "crss": [
        "CRS:84",
        "EPSG:4326"
      ],
      "bounds": [
        {
          "CRS": "CRS:84",
          "minx": "113.967896",
          "miny": "22.237122",
          "maxx": "114.246521",
          "maxy": "22.497498"
        },
        {
          "CRS": "EPSG:4326",
          "minx": "22.237122",
          "miny": "113.967896",
          "maxx": "22.497498",
          "maxy": "114.246521"
        },
        {
          "CRS": "CRS:84",
          "minx": "113.967896",
          "miny": "22.237122",
          "maxx": "114.246521",
          "maxy": "22.497498"
        },
        {
          "CRS": "EPSG:4326",
          "minx": "22.237122",
          "miny": "113.967896",
          "maxx": "22.497498",
          "maxy": "114.246521"
        }
      ],
      "styles": [
        {
          "id": "default",
          "title": "MSP_without_common_fire_hazards"
        }
      ]
    }
  ],
  "x-csdi-source-evidence": [
    {
      "url": "https://portal.csdi.gov.hk/geoportal/csw?service=CSW&version=2.0.2&request=GetRecordById&elementSetName=full&id=hkfsd_rcd_1666326904545_5957",
      "sha256": "95577fdcd64e38d9312ee1396bbb7002482a2c201971ccb6b82d0dadf2ae2243",
      "httpStatus": 200,
      "contentType": "application/xml;charset=UTF-8",
      "role": "csw-record",
      "parseStatus": "pass",
      "kind": "csw-record"
    },
    {
      "url": "https://portal.csdi.gov.hk/server/rest/services/common/hkfsd_rcd_1666326904545_5957/FeatureServer?f=pjson",
      "sha256": "3449c95a8f69194c1494f1e7385b2cfc5ef25650d68a5066c4b4042c75060936",
      "httpStatus": 200,
      "contentType": "text/plain;charset=UTF-8",
      "role": "arcgis-service",
      "parseStatus": "pass",
      "kind": "arcgis-service"
    },
    {
      "url": "https://portal.csdi.gov.hk/server/rest/services/common/hkfsd_rcd_1666326904545_5957/FeatureServer/0?f=pjson",
      "sha256": "cd8e4e15c22b134536e333f02c0667de975398d86fbfa17fd6f3a20ed87bc363",
      "httpStatus": 200,
      "contentType": "text/plain;charset=UTF-8",
      "role": "arcgis-layer",
      "parseStatus": "pass",
      "kind": "arcgis-layer"
    },
    {
      "url": "https://portal.csdi.gov.hk/server/services/common/hkfsd_rcd_1666326904545_5957/MapServer/WMSServer?service=wms&request=GetCapabilities",
      "sha256": "176ac6a06e83e3956d258edabd74c0e43fc3a692352cdf4a4dbfad3f31b61547",
      "httpStatus": 200,
      "contentType": "text/xml",
      "role": "wms-capabilities",
      "parseStatus": "pass",
      "kind": "wms-capabilities"
    }
  ],
  "x-csdi-source-scope": {
    "partialProtocols": [
      {
        "code": "metadata_http_not_200",
        "url": "https://portal.csdi.gov.hk/server/services/common/hkfsd_rcd_1666326904545_5957/MapServer/WFSServer?service=WFS&request=GetCapabilities",
        "httpStatus": 403
      },
      {
        "serviceId": "csdi-service-ea8512267dbcb8730c539e88",
        "code": "discovery_metadata_error",
        "reason": "Metadata request status http_error",
        "url": "https://portal.csdi.gov.hk/server/services/common/hkfsd_rcd_1666326904545_5957/MapServer/WFSServer?service=WFS&request=GetCapabilities"
      },
      {
        "serviceId": "csdi-service-ea8512267dbcb8730c539e88",
        "protocol": "wfs",
        "code": "unsupported_or_incomplete_native_contract",
        "reason": "No retained parseable WFS GetCapabilities"
      }
    ],
    "nativeMetadataStatus": {
      "status": "http_200_retained",
      "http200Sources": 4
    },
    "fullSourceCompleteness": "not_established",
    "actualDataQueriesByConversion": 0
  }
}
