{
  "openapi" : "3.1.0",
  "info" : {
    "title" : "City Government Services API",
    "description" : "API providing access to planning applications, park amenities, and municipal facilities for the City Government.",
    "version" : "1.0.0",
    "summary" : ""
  },
  "servers" : [ {
    "url" : "http://KC-LS-SS2:80/api/OpenGovData"
  } ],
  "tags" : [ {
    "name" : "facilities",
    "description" : "Municipal facilities information"
  }, {
    "name" : "parks",
    "description" : "Parks and recreation services"
  }, {
    "name" : "planning",
    "description" : "City planning and development services"
  } ],
  "paths" : {
    "/planning/applications" : {
      "get" : {
        "tags" : [ "planning" ],
        "summary" : "List planning applications",
        "description" : "",
        "operationId" : "getPlanningApplications",
        "parameters" : [ {
          "name" : "status",
          "in" : "query",
          "description" : "Filter by application status (e.g., pending, approved)",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : { }
      },
      "post" : {
        "tags" : [ "planning" ],
        "summary" : "Submit a new planning application",
        "description" : "",
        "operationId" : "postPlanningApplications",
        "parameters" : [ ],
        "responses" : {
          "201" : {
            "description" : "Planning application submitted"
          }
        }
      }
    },
    "/parks" : {
      "get" : {
        "tags" : [ "parks" ],
        "summary" : "List all city parks",
        "description" : "",
        "operationId" : "getParks",
        "parameters" : [ ],
        "responses" : {
          "200" : {
            "description" : "A list of city parks"
          }
        }
      }
    },
    "/parks/{parkId}/amenities" : {
      "get" : {
        "tags" : [ "parks" ],
        "summary" : "Get amenities for a specific park",
        "description" : "",
        "operationId" : "getParksByParkIdAmenities",
        "parameters" : [ {
          "name" : "parkId",
          "in" : "path",
          "description" : "",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "List of park amenities"
          }
        }
      }
    },
    "/facilities" : {
      "get" : {
        "tags" : [ "facilities" ],
        "summary" : "Get all municipal facilities",
        "description" : "",
        "operationId" : "getFacilities",
        "parameters" : [ {
          "name" : "type",
          "in" : "query",
          "description" : "Filter facilities by type",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "A list of municipal facilities"
          }
        }
      }
    },
    "/facilities/{facilityId}" : {
      "get" : {
        "tags" : [ "facilities" ],
        "summary" : "Get details of a specific facility",
        "description" : "",
        "operationId" : "getFacilitiesByFacilityId",
        "parameters" : [ {
          "name" : "facilityId",
          "in" : "path",
          "description" : "",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "Facility details",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "id" : {
                      "type" : "string"
                    },
                    "name" : {
                      "type" : "string"
                    },
                    "type" : {
                      "type" : "string"
                    },
                    "address" : {
                      "type" : "string"
                    },
                    "openingHours" : {
                      "type" : "string"
                    }
                  },
                  "required" : [ ]
                }
              }
            }
          }
        }
      },
      "delete" : {
        "tags" : [ "facilities" ],
        "summary" : "Delete a facility record",
        "description" : "",
        "operationId" : "deleteFacilitiesByFacilityId",
        "parameters" : [ {
          "name" : "facilityId",
          "in" : "path",
          "description" : "",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "204" : {
            "description" : "Facility record deleted"
          },
          "404" : {
            "description" : "Facility not found"
          }
        }
      }
    }
  },
  "components" : {
    "schemas" : {
      "PlanningApplication" : {
        "type" : "object",
        "description" : "",
        "properties" : {
          "id" : {
            "type" : "string"
          },
          "status" : {
            "type" : "string"
          },
          "applicant" : {
            "type" : "string"
          },
          "submissionDate" : {
            "type" : "string"
          },
          "details" : {
            "type" : "string"
          }
        },
        "required" : [ ]
      }
    }
  }
}