swagger: '2.0'
info:
  description: NLSC_COM_005_代碼服務_地段清單
  version: V1
  title: ListLandSection V1
host: api.nlsc.gov.tw
basePath: /other
schemes:
  - https
tags:
  - name: ListLandSection
    description: 單點坐標回傳行政區
paths:
  '/ListLandSection/{COUNTY_CODE}/{TOWN_CODE}':
    get:
      tags:
        - ListLandSection
      summary: 輸入縣市及鄉鎮區代碼，取得地段清單
      description: 輸入縣市及鄉鎮區代碼，取得地段清單（包含地所代碼、地段代碼、地段名稱）。
      operationId: ListLandSection
      consumes:
        - ''
      produces:
        - application/xml
      parameters:
        - name: COUNTY_CODE
          in: path
          description: 縣市代碼
          required: true
          type: string
          x-example: 'B'
        - name: TOWN_CODE
          in: path
          description: 鄉鎮區代碼
          required: true
          type: string
          x-example: 'B01'
      responses:
        '200':
          description: XML；包含包含地所代碼、地段代碼、地段名稱。
          schema:
            type: string
          examples:
            parameters:
              COUNTY_CODE: B
              TOWN_CODE: B01
            application/xml: >-
              <sectItems> <sectItem> <office>BA</office>
              <sectcode>0001</sectcode> <sectstr>繼光段一小段</sectstr> </sectItem>
              <sectItem> <office>BA</office> <sectcode>0002</sectcode>
              <sectstr>繼光段二小段</sectstr> </sectItem> <sectItem>
              <office>BA</office> <sectcode>0003</sectcode>
              <sectstr>繼光段三小段</sectstr> </sectItem> </sectItems>
