module Support
  module Services
    class OwsTerritories
      include HTTParty

      base_uri DOMAINS[:ows_territories]

      class << self
        def iso_spec(spec)
          path = "/territory/#{spec}"
          response = get(path)

          JSON.parse(response.body)["items"]
        end
      end
    end
  end
end
