﻿{
  "swagger": "2.0",
  "info": {
    "description": "Read-Only REST Api to Units",
    "title": "Unit REST Api",
    "version": "3.7.7"
  },
  "host": "irmadevservices.nps.gov",
  "basePath": "/Unit/v2/api",
  "schemes": [
    "https"
  ],
  "definitions": {
    "NPS.Unit.Common.Contract.Code.v1_3_0.County": {
      "format": "NPS.Unit.Common.Contract.Code.v1_3_0.County",
      "properties": {
        "ExtensionData": {
          "$ref": "#/definitions/System.Runtime.Serialization.ExtensionDataObject"
        },
        "Fips": {
          "type": "string",
          "uniqueItems": false
        },
        "Id": {
          "format": "int64",
          "type": "integer",
          "uniqueItems": false
        },
        "Name": {
          "type": "string",
          "uniqueItems": false
        },
        "UnitCodes": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "uniqueItems": false
        }
      },
      "required": [
        "Id",
        "Fips",
        "Name"
      ],
      "type": "object"
    },
    "NPS.Unit.Common.Contract.Code.v1_3_0.State": {
      "format": "NPS.Unit.Common.Contract.Code.v1_3_0.State",
      "properties": {
        "Code": {
          "type": "string",
          "uniqueItems": false
        },
        "Counties": {
          "items": {
            "$ref": "#/definitions/NPS.Unit.Common.Contract.Code.v1_3_0.County"
          },
          "type": "array",
          "uniqueItems": false
        },
        "ExtensionData": {
          "$ref": "#/definitions/System.Runtime.Serialization.ExtensionDataObject"
        },
        "FipsCode": {
          "type": "string",
          "uniqueItems": false
        },
        "Name": {
          "type": "string",
          "uniqueItems": false
        },
        "PhysicalRegions": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "uniqueItems": false
        }
      },
      "required": [
        "Code",
        "FipsCode",
        "Name"
      ],
      "type": "object"
    },
    "NPS.Unit.Common.Contract.Code.v1_3_0.UnitLeaf": {
      "format": "NPS.Unit.Common.Contract.Code.v1_3_0.UnitLeaf",
      "properties": {
        "Code": {
          "type": "string",
          "uniqueItems": false
        },
        "ExtensionData": {
          "$ref": "#/definitions/System.Runtime.Serialization.ExtensionDataObject"
        },
        "FullName": {
          "type": "string",
          "uniqueItems": false
        },
        "Lifecycle": {
          "description": "\r\n\r\n    Active = 0 \r\n    Inactive = 1 \r\n    Pending = 2 \r\n    Denied = 3 \r\n",
          "format": "enum",
          "type": "integer",
          "uniqueItems": false
        },
        "StateCodes": {
          "type": "string",
          "uniqueItems": false
        },
        "SubTypeDisplay": {
          "type": "string",
          "uniqueItems": false
        },
        "TypeDisplay": {
          "type": "string",
          "uniqueItems": false
        },
        "TypeName": {
          "type": "string",
          "uniqueItems": false
        }
      },
      "required": [
        "Code",
        "TypeName",
        "TypeDisplay",
        "SubTypeDisplay",
        "Lifecycle"
      ],
      "type": "object"
    },
    "NPS.Unit.Common.Contract.Code.v1_3_0.UnitNode": {
      "format": "NPS.Unit.Common.Contract.Code.v1_3_0.UnitNode",
      "properties": {
        "DirectInactives": {
          "items": {
            "$ref": "#/definitions/NPS.Unit.Common.Contract.Code.v1_3_0.UnitLeaf"
          },
          "type": "array",
          "uniqueItems": false
        },
        "DirectLinks": {
          "items": {
            "$ref": "#/definitions/NPS.Unit.Common.Contract.Code.v1_3_0.UnitLeaf"
          },
          "type": "array",
          "uniqueItems": false
        },
        "ExtensionData": {
          "$ref": "#/definitions/System.Runtime.Serialization.ExtensionDataObject"
        },
        "IndirectInactives": {
          "items": {
            "$ref": "#/definitions/NPS.Unit.Common.Contract.Code.v1_3_0.UnitLeaf"
          },
          "type": "array",
          "uniqueItems": false
        },
        "IndirectLinks": {
          "items": {
            "$ref": "#/definitions/NPS.Unit.Common.Contract.Code.v1_3_0.UnitLeaf"
          },
          "type": "array",
          "uniqueItems": false
        },
        "RegionCode": {
          "type": "string",
          "uniqueItems": false
        },
        "Unit": {
          "$ref": "#/definitions/NPS.Unit.Common.Contract.Code.v1_3_0.UnitLeaf"
        }
      },
      "required": [
        "Unit"
      ],
      "type": "object"
    },
    "NPS.Unit.Common.Contract.Code.v1_3_0.UnitPoint": {
      "format": "NPS.Unit.Common.Contract.Code.v1_3_0.UnitPoint",
      "properties": {
        "Code": {
          "type": "string",
          "uniqueItems": false
        },
        "ExtensionData": {
          "$ref": "#/definitions/System.Runtime.Serialization.ExtensionDataObject"
        },
        "Latitude": {
          "format": "double",
          "type": "number",
          "uniqueItems": false
        },
        "Longitude": {
          "format": "double",
          "type": "number",
          "uniqueItems": false
        }
      },
      "required": [
        "Code"
      ],
      "type": "object"
    },
    "NPS.Unit.RestServices.Common.QueryOption": {
      "format": "NPS.Unit.RestServices.Common.QueryOption",
      "properties": {
        "Description": {
          "type": "string",
          "uniqueItems": false
        },
        "Value": {
          "type": "string",
          "uniqueItems": false
        }
      },
      "type": "object"
    },
    "NPS.Unit.RestServices.UnitRest.Resources.UnitCollection": {
      "format": "NPS.Unit.RestServices.UnitRest.Resources.UnitCollection",
      "properties": {
        "Code": {
          "type": "string",
          "uniqueItems": false
        },
        "Name": {
          "type": "string",
          "uniqueItems": false
        },
        "Units": {
          "items": {
            "$ref": "#/definitions/NPS.Unit.RestServices.UnitRest.Resources.UnitName"
          },
          "type": "array",
          "uniqueItems": false
        }
      },
      "type": "object"
    },
    "NPS.Unit.RestServices.UnitRest.Resources.UnitDesignation": {
      "format": "NPS.Unit.RestServices.UnitRest.Resources.UnitDesignation",
      "properties": {
        "Code": {
          "type": "string",
          "uniqueItems": false
        },
        "Name": {
          "type": "string",
          "uniqueItems": false
        },
        "Units": {
          "items": {
            "$ref": "#/definitions/NPS.Unit.RestServices.UnitRest.Resources.UnitName"
          },
          "type": "array",
          "uniqueItems": false
        }
      },
      "type": "object"
    },
    "NPS.Unit.RestServices.UnitRest.Resources.UnitGeography": {
      "format": "NPS.Unit.RestServices.UnitRest.Resources.UnitGeography",
      "properties": {
        "Code": {
          "type": "string",
          "uniqueItems": false
        },
        "Geography": {
          "type": "string",
          "uniqueItems": false
        }
      },
      "type": "object"
    },
    "NPS.Unit.RestServices.UnitRest.Resources.UnitName": {
      "format": "NPS.Unit.RestServices.UnitRest.Resources.UnitName",
      "properties": {
        "Code": {
          "type": "string",
          "uniqueItems": false
        },
        "Name": {
          "type": "string",
          "uniqueItems": false
        }
      },
      "type": "object"
    },
    "NPS.Unit.RestServices.UnitRest.Resources.UnitProfile": {
      "format": "NPS.Unit.RestServices.UnitRest.Resources.UnitProfile",
      "properties": {
        "FullName": {
          "type": "string",
          "uniqueItems": false
        },
        "Network": {
          "type": "string",
          "uniqueItems": false
        },
        "NetworkName": {
          "type": "string",
          "uniqueItems": false
        },
        "Region": {
          "type": "string",
          "uniqueItems": false
        },
        "RegionName": {
          "type": "string",
          "uniqueItems": false
        },
        "StateCodes": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "uniqueItems": false
        },
        "UnitCode": {
          "type": "string",
          "uniqueItems": false
        },
        "UnitDesignationCode": {
          "type": "string",
          "uniqueItems": false
        },
        "UnitDesignationName": {
          "type": "string",
          "uniqueItems": false
        },
        "UnitLifecycle": {
          "type": "string",
          "uniqueItems": false
        },
        "UnitName": {
          "type": "string",
          "uniqueItems": false
        },
        "UnitSubTypeCode": {
          "type": "string",
          "uniqueItems": false
        },
        "UnitSubTypeName": {
          "type": "string",
          "uniqueItems": false
        }
      },
      "type": "object"
    },
    "NPS.Unit.RestServices.UnitRest.Resources.UnitSubType": {
      "format": "NPS.Unit.RestServices.UnitRest.Resources.UnitSubType",
      "properties": {
        "Code": {
          "type": "string",
          "uniqueItems": false
        },
        "Name": {
          "type": "string",
          "uniqueItems": false
        },
        "Units": {
          "items": {
            "$ref": "#/definitions/NPS.Unit.RestServices.UnitRest.Resources.UnitName"
          },
          "type": "array",
          "uniqueItems": false
        }
      },
      "type": "object"
    },
    "System.Runtime.Serialization.ExtensionDataObject": {
      "format": "System.Runtime.Serialization.ExtensionDataObject",
      "type": "object"
    }
  },
  "paths": {
    "/": {
      "get": {
        "consumes": [
          "application/json",
          "application/xml"
        ],
        "description": "Gets the list of all Unit Profiles.",
        "operationId": "NPS.Unit.RestServices.UnitRest.UnitRestService.FetchUnits",
        "produces": [
          "application/json",
          "application/xml"
        ],
        "responses": {
          "200": {
            "description": "All Unit Profiles",
            "schema": {
              "items": {
                "$ref": "#/definitions/NPS.Unit.RestServices.UnitRest.Resources.UnitProfile"
              },
              "type": "array"
            }
          }
        },
        "tags": [
          "Unit"
        ]
      }
    },
    "/_schemas/ArrayOfUnitCollection": {
      "get": {
        "consumes": [
          "application/json",
          "application/xml"
        ],
        "description": "Show the schema for a list of Unit Collections.",
        "operationId": "NPS.Unit.RestServices.UnitRest.UnitRestService.NPS.Unit.RestServices.UnitRest.IUnitRestService._ShowUnitCollectionSchema",
        "produces": [
          "application/json",
          "application/xml"
        ],
        "responses": {
          "200": {
            "description": "Schema of a Unit Collection",
            "schema": {
              "items": {
                "$ref": "#/definitions/NPS.Unit.RestServices.UnitRest.Resources.UnitCollection"
              },
              "type": "array"
            }
          }
        },
        "tags": [
          "Schema"
        ]
      }
    },
    "/_schemas/ArrayOfUnitDesignation": {
      "get": {
        "consumes": [
          "application/json",
          "application/xml"
        ],
        "description": "Show the schema for a list of Unit Designations.",
        "operationId": "NPS.Unit.RestServices.UnitRest.UnitRestService.NPS.Unit.RestServices.UnitRest.IUnitRestService._ShowUnitDesignationSchema",
        "produces": [
          "application/json",
          "application/xml"
        ],
        "responses": {
          "200": {
            "description": "Schema of a Unit Designation",
            "schema": {
              "items": {
                "$ref": "#/definitions/NPS.Unit.RestServices.UnitRest.Resources.UnitDesignation"
              },
              "type": "array"
            }
          }
        },
        "tags": [
          "Schema"
        ]
      }
    },
    "/_schemas/ArrayOfUnitGeography": {
      "get": {
        "consumes": [
          "application/json",
          "application/xml"
        ],
        "description": "Show the schema for a list of Unit Geographies.",
        "operationId": "NPS.Unit.RestServices.UnitRest.UnitRestService.NPS.Unit.RestServices.UnitRest.IUnitRestService._ShowUnitGeographySchema",
        "produces": [
          "application/json",
          "application/xml"
        ],
        "responses": {
          "200": {
            "description": "Schema of a Unit Geography",
            "schema": {
              "items": {
                "$ref": "#/definitions/NPS.Unit.RestServices.UnitRest.Resources.UnitGeography"
              },
              "type": "array"
            }
          }
        },
        "tags": [
          "Schema"
        ]
      }
    },
    "/_schemas/ArrayOfUnitProfile": {
      "get": {
        "consumes": [
          "application/json",
          "application/xml"
        ],
        "description": "Show the schema for a list of Unit Profiles.",
        "operationId": "NPS.Unit.RestServices.UnitRest.UnitRestService.NPS.Unit.RestServices.UnitRest.IUnitRestService._ShowUnitProfileSchema",
        "produces": [
          "application/json",
          "application/xml"
        ],
        "responses": {
          "200": {
            "description": "Schema of a Unit Profile",
            "schema": {
              "items": {
                "$ref": "#/definitions/NPS.Unit.RestServices.UnitRest.Resources.UnitProfile"
              },
              "type": "array"
            }
          }
        },
        "tags": [
          "Schema"
        ]
      }
    },
    "/_schemas/StateArray": {
      "get": {
        "consumes": [
          "application/json",
          "application/xml"
        ],
        "description": "Show the schema for a list of State items.",
        "operationId": "NPS.Unit.RestServices.UnitRest.UnitRestService.NPS.Unit.RestServices.UnitRest.IUnitRestService._ShowStateSchema",
        "produces": [
          "application/json",
          "application/xml"
        ],
        "responses": {
          "200": {
            "description": "Schema of a State",
            "schema": {
              "items": {
                "$ref": "#/definitions/NPS.Unit.Common.Contract.Code.v1_3_0.State"
              },
              "type": "array"
            }
          }
        },
        "tags": [
          "Schema"
        ]
      }
    },
    "/_schemas/UnitNodeArray": {
      "get": {
        "consumes": [
          "application/json",
          "application/xml"
        ],
        "description": "Show the schema for the Unit Control Content.",
        "operationId": "NPS.Unit.RestServices.UnitRest.UnitRestService.NPS.Unit.RestServices.UnitRest.IUnitRestService._ShowControlContentSchema",
        "produces": [
          "application/json",
          "application/xml"
        ],
        "responses": {
          "200": {
            "description": "Schema of Unit Hierarchy",
            "schema": {
              "items": {
                "$ref": "#/definitions/NPS.Unit.Common.Contract.Code.v1_3_0.UnitNode"
              },
              "type": "array"
            }
          }
        },
        "tags": [
          "Schema"
        ]
      }
    },
    "/_urlOptions/format": {
      "get": {
        "consumes": [
          "application/json",
          "application/xml"
        ],
        "description": "Show the list of response formats. These are valid strings for the optional '&format=' query parameter of any query. The default is 'xml'",
        "operationId": "NPS.Unit.RestServices.UnitRest.UnitRestService.NPS.Unit.RestServices.UnitRest.IUnitRestService._ShowFormatOptions",
        "produces": [
          "application/json",
          "application/xml"
        ],
        "responses": {
          "200": {
            "description": "Available response formats",
            "schema": {
              "items": {
                "$ref": "#/definitions/NPS.Unit.RestServices.Common.QueryOption"
              },
              "type": "array"
            }
          }
        },
        "tags": [
          "Formats"
        ]
      }
    },
    "/{searchTerm}": {
      "get": {
        "consumes": [
          "application/json",
          "application/xml"
        ],
        "description": "Searches for Unit Profiles matching the given 'searchTerm' in their code, name, lifecycle, designation or subtype. Multiple search terms can be submitted, but they must be separated by semicolons.  If 'searchTerm' is one or more Unit Codes, the results are all matching units. However, any other set of terms result in an 'AND' search - each term further refining the query.",
        "operationId": "NPS.Unit.RestServices.UnitRest.UnitRestService.FetchUnitsBySearchTerm",
        "parameters": [
          {
            "in": "path",
            "name": "searchTerm",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json",
          "application/xml"
        ],
        "responses": {
          "200": {
            "description": "Unit Profiles for requested units",
            "schema": {
              "items": {
                "$ref": "#/definitions/NPS.Unit.RestServices.UnitRest.Resources.UnitProfile"
              },
              "type": "array"
            }
          }
        },
        "tags": [
          "Unit"
        ]
      }
    },
    "/{searchTerm}/geography": {
      "get": {
        "consumes": [
          "application/json",
          "application/xml"
        ],
        "description": "Searches for Units matching the given 'searchTerm' and returns a list of Unit Geographies, each providing a text representation of their WGS84 GIS coordinates. Multiple search terms can be submitted, but they must be separated by semicolons.  Valid values for the 'detail' parameter (the level of geospatial detail) are 'envelope', 'convexhull', or 'feature'. Valid values for the 'dataformat' parameter (the text format of the coordinates) are 'wkt' and 'gml'. If not specified, the default detail is 'convexHull' and the default format is 'wkt'.",
        "operationId": "NPS.Unit.RestServices.UnitRest.UnitRestService.FetchUnitsGeographyBySearchTerm",
        "parameters": [
          {
            "in": "path",
            "name": "searchTerm",
            "required": true,
            "type": "string"
          },
          {
            "in": "query",
            "name": "detail",
            "required": true,
            "type": "string"
          },
          {
            "in": "query",
            "name": "dataformat",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json",
          "application/xml"
        ],
        "responses": {
          "200": {
            "description": "Unit Geography for requested Unit",
            "schema": {
              "items": {
                "$ref": "#/definitions/NPS.Unit.RestServices.UnitRest.Resources.UnitGeography"
              },
              "type": "array"
            }
          }
        },
        "tags": [
          "Unit"
        ]
      }
    },
    "/{unitcode}/linked": {
      "get": {
        "consumes": [
          "application/json",
          "application/xml"
        ],
        "description": "Finds the Unit whose Code is 'code' and returns a Unit Profile list of any units linked to 'code'.",
        "operationId": "NPS.Unit.RestServices.UnitRest.UnitRestService.FetchLinkedUnitsByCode",
        "parameters": [
          {
            "in": "path",
            "name": "unitcode",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json",
          "application/xml"
        ],
        "responses": {
          "200": {
            "description": "Unit Profiles linked to the requested Unit",
            "schema": {
              "items": {
                "$ref": "#/definitions/NPS.Unit.RestServices.UnitRest.Resources.UnitProfile"
              },
              "type": "array"
            }
          }
        },
        "tags": [
          "Unit"
        ]
      }
    },
    "/{unitcode}/linked/functional": {
      "get": {
        "consumes": [
          "application/json",
          "application/xml"
        ],
        "description": "Finds the Unit whose Code is 'code' and returns a Unit Profile list of any functional units linked to 'code'.",
        "operationId": "NPS.Unit.RestServices.UnitRest.UnitRestService.FetchFunctionallyLinkedUnitsByCode",
        "parameters": [
          {
            "in": "path",
            "name": "unitcode",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json",
          "application/xml"
        ],
        "responses": {
          "200": {
            "description": "Functional Unit Profiles linked to the requested Unit",
            "schema": {
              "items": {
                "$ref": "#/definitions/NPS.Unit.RestServices.UnitRest.Resources.UnitProfile"
              },
              "type": "array"
            }
          }
        },
        "tags": [
          "Unit"
        ]
      }
    },
    "/{unitcode}/linked/logical": {
      "get": {
        "consumes": [
          "application/json",
          "application/xml"
        ],
        "description": "Finds the Unit whose Code is 'code' and returns a Unit Profile list of any logical units linked to 'code'.",
        "operationId": "NPS.Unit.RestServices.UnitRest.UnitRestService.FetchLogicallyLinkedUnitsByCode",
        "parameters": [
          {
            "in": "path",
            "name": "unitcode",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json",
          "application/xml"
        ],
        "responses": {
          "200": {
            "description": "Logical Unit Profiles linked to the requested Unit",
            "schema": {
              "items": {
                "$ref": "#/definitions/NPS.Unit.RestServices.UnitRest.Resources.UnitProfile"
              },
              "type": "array"
            }
          }
        },
        "tags": [
          "Unit"
        ]
      }
    },
    "/collections": {
      "get": {
        "consumes": [
          "application/json",
          "application/xml"
        ],
        "description": "Gets the list of all Unit Collections and the Units belonging to each.",
        "operationId": "NPS.Unit.RestServices.UnitRest.UnitRestService.FetchUnitCollections",
        "produces": [
          "application/json",
          "application/xml"
        ],
        "responses": {
          "200": {
            "description": "All Unit Collections",
            "schema": {
              "items": {
                "$ref": "#/definitions/NPS.Unit.RestServices.UnitRest.Resources.UnitCollection"
              },
              "type": "array"
            }
          }
        },
        "tags": [
          "Unit"
        ]
      }
    },
    "/designations": {
      "get": {
        "consumes": [
          "application/json",
          "application/xml"
        ],
        "description": "Gets the list of all Unit Designations and the Units belonging to each.",
        "operationId": "NPS.Unit.RestServices.UnitRest.UnitRestService.FetchUnitDesignations",
        "produces": [
          "application/json",
          "application/xml"
        ],
        "responses": {
          "200": {
            "description": "All Unit Designations",
            "schema": {
              "items": {
                "$ref": "#/definitions/NPS.Unit.RestServices.UnitRest.Resources.UnitDesignation"
              },
              "type": "array"
            }
          }
        },
        "tags": [
          "Unit"
        ]
      }
    },
    "/designations/{designation}": {
      "get": {
        "consumes": [
          "application/json",
          "application/xml"
        ],
        "description": "Gets a single Unit Designation and its Units by code or name.",
        "operationId": "NPS.Unit.RestServices.UnitRest.UnitRestService.FetchUnitDesignationBySearchTerm",
        "parameters": [
          {
            "in": "path",
            "name": "designation",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json",
          "application/xml"
        ],
        "responses": {
          "200": {
            "description": "Units for the requested designation",
            "schema": {
              "$ref": "#/definitions/NPS.Unit.RestServices.UnitRest.Resources.UnitDesignation"
            }
          }
        },
        "tags": [
          "Unit"
        ]
      }
    },
    "/states": {
      "get": {
        "consumes": [
          "application/json",
          "application/xml"
        ],
        "description": "Gets the Hierarchy of States, Counties, Parks.",
        "operationId": "NPS.Unit.RestServices.UnitRest.UnitRestService.FetchStates",
        "produces": [
          "application/json",
          "application/xml"
        ],
        "responses": {
          "200": {
            "description": "Hierarchy of all States, Counties, and Parks",
            "schema": {
              "items": {
                "$ref": "#/definitions/NPS.Unit.Common.Contract.Code.v1_3_0.State"
              },
              "type": "array"
            }
          }
        },
        "tags": [
          "Unit"
        ]
      }
    },
    "/states/{state}": {
      "get": {
        "consumes": [
          "application/json",
          "application/xml"
        ],
        "description": "Gets the Hierarchy of States, Counties, Parks.",
        "operationId": "NPS.Unit.RestServices.UnitRest.UnitRestService.FetchState",
        "parameters": [
          {
            "in": "path",
            "name": "state",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json",
          "application/xml"
        ],
        "responses": {
          "200": {
            "description": "Hierarchy of Counties and Parks for the requested state",
            "schema": {
              "$ref": "#/definitions/NPS.Unit.Common.Contract.Code.v1_3_0.State"
            }
          }
        },
        "tags": [
          "Unit"
        ]
      }
    },
    "/states/{state}/{county}": {
      "get": {
        "consumes": [
          "application/json",
          "application/xml"
        ],
        "description": "Gets the Hierarchy of States, Counties, Parks.",
        "operationId": "NPS.Unit.RestServices.UnitRest.UnitRestService.FetchCounty",
        "parameters": [
          {
            "in": "path",
            "name": "state",
            "required": true,
            "type": "string"
          },
          {
            "in": "path",
            "name": "county",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json",
          "application/xml"
        ],
        "responses": {
          "200": {
            "description": "Hierarchy of Parks for the requested county",
            "schema": {
              "$ref": "#/definitions/NPS.Unit.Common.Contract.Code.v1_3_0.County"
            }
          }
        },
        "tags": [
          "Unit"
        ]
      }
    },
    "/subtypes": {
      "get": {
        "consumes": [
          "application/json",
          "application/xml"
        ],
        "description": "Gets the list of all Unit SubTypes and the Units belonging to each.",
        "operationId": "NPS.Unit.RestServices.UnitRest.UnitRestService.FetchUnitSubTypes",
        "produces": [
          "application/json",
          "application/xml"
        ],
        "responses": {
          "200": {
            "description": "All Unit Subtypes and their associated Parks",
            "schema": {
              "items": {
                "$ref": "#/definitions/NPS.Unit.RestServices.UnitRest.Resources.UnitSubType"
              },
              "type": "array"
            }
          }
        },
        "tags": [
          "Unit"
        ]
      }
    },
    "/subtypes/{subtype}": {
      "get": {
        "consumes": [
          "application/json",
          "application/xml"
        ],
        "description": "Gets a single Unit SubType and its Units by code or name.",
        "operationId": "NPS.Unit.RestServices.UnitRest.UnitRestService.FetchUnitSubTypesBySearchTerm",
        "parameters": [
          {
            "in": "path",
            "name": "subtype",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json",
          "application/xml"
        ],
        "responses": {
          "200": {
            "description": "Subtype and associated Parks for the requested subtype",
            "schema": {
              "$ref": "#/definitions/NPS.Unit.RestServices.UnitRest.Resources.UnitSubType"
            }
          }
        },
        "tags": [
          "Unit"
        ]
      }
    },
    "/unitpoints": {
      "get": {
        "consumes": [
          "application/json",
          "application/xml"
        ],
        "operationId": "NPS.Unit.RestServices.UnitRest.UnitRestService.FetchUnitPoints",
        "produces": [
          "application/json",
          "application/xml"
        ],
        "responses": {
          "200": {
            "description": "not available",
            "schema": {
              "items": {
                "$ref": "#/definitions/NPS.Unit.Common.Contract.Code.v1_3_0.UnitPoint"
              },
              "type": "array"
            }
          }
        },
        "tags": [
          "Unit"
        ]
      }
    },
    "/unitselector": {
      "get": {
        "consumes": [
          "application/json",
          "application/xml"
        ],
        "description": "Gets the Hierarchy of Unit data suitable for a web selector control.",
        "operationId": "NPS.Unit.RestServices.UnitRest.UnitRestService.FetchUnitControlContent",
        "produces": [
          "application/json",
          "application/xml"
        ],
        "responses": {
          "200": {
            "description": "Hierarchy of Unit data",
            "schema": {
              "$ref": "#/definitions/NPS.Unit.Common.Contract.Code.v1_3_0.UnitNode"
            }
          }
        },
        "tags": [
          "Unit"
        ]
      }
    }
  }
}