> ## Documentation Index
> Fetch the complete documentation index at: https://api-docs.iklim.co/llms.txt
> Use this file to discover all available pages before exploring further.

# İlçe getir

> Verilen ilçe ID’si için ilçe sınır bilgisini döndürür.



## OpenAPI

````yaml /open-api/tr/forecast-alarm_version-1.json get /v1/alarms/forecasts/district/{districtId}
openapi: 3.1.0
info:
  title: OpenAPI definition
  version: v0
servers:
  - url: https://api.iklim.co
    description: Production server
  - url: https://api-test.iklim.co
    description: Test server
security: []
tags:
  - name: Tahmin Nokta Alarm Kayıtları
    description: Tahmin nokta alarm kayıtları için CRUD ve sorgulama uç noktaları
paths:
  /v1/alarms/forecasts/district/{districtId}:
    get:
      tags:
        - Tahmin Nokta Alarm Kayıtları
      summary: İlçe getir
      description: Verilen ilçe ID’si için ilçe sınır bilgisini döndürür.
      operationId: getDistrict
      parameters:
        - name: districtId
          in: path
          description: İlçe ID’si
          required: true
          schema:
            type: integer
            format: int64
          example: 557
      responses:
        '200':
          description: Başarılı
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/BoundaryDistrict'
        '400':
          description: Bad Request
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/StandardErrorResponse'
        '401':
          description: Unauthorized
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/StandardErrorResponse'
        '403':
          description: Forbidden
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/StandardErrorResponse'
        '500':
          description: Internal Server Error
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/StandardErrorResponse'
components:
  schemas:
    BoundaryDistrict:
      type: object
      description: İlçe idari sınır bilgisi.
      properties:
        id:
          type: integer
          format: int64
          description: Benzersiz ilçe tanımlayıcısı.
          example: 557
        name:
          type: string
          description: Resmi ilçe adı.
          example: Çankaya
        polygon:
          $ref: '#/components/schemas/GeoPolygon'
          description: İlçe sınır poligonu (GeoJSON halka koordinatları).
        city:
          $ref: '#/components/schemas/BoundaryCity'
          description: Bu ilçenin bağlı olduğu şehir.
    StandardErrorResponse:
      type: object
      description: Standart API hata cevabı yapısı
      properties:
        timestamp:
          type: string
          format: date-time
          description: Hatanın oluştuğu zaman damgası
          example: YYYY-mm-DDTHH:MM:SS.nnnnnnnnn
        status:
          type: integer
          format: int32
          description: HTTP durum kodu
          example: XXX
        error:
          type: string
          description: Hata adı veya tipi
          example: Error Name
          minLength: 1
        message:
          type: string
          description: Ana hata mesajı
          example: Error Message
          minLength: 1
        messages:
          type: array
          description: Ek detaylı hata mesajları
          items:
            type: string
        path:
          type: string
          description: Hatanın oluştuğu istek yolu
          example: /endpoint/uri/here
          minLength: 1
      required:
        - error
        - message
        - path
        - status
        - timestamp
    GeoPolygon:
      type: object
      properties:
        exterior:
          type: array
          description: Poligonun dış halkasını tanımlayan GeoPoint listesi.
          example:
            - lng: 32.85
              lat: 39.93
            - lng: 32.86
              lat: 39.93
            - lng: 32.86
              lat: 39.94
            - lng: 32.85
              lat: 39.94
            - lng: 32.85
              lat: 39.93
          items:
            $ref: '#/components/schemas/GeoPoint'
        holes:
          type: array
          description: >-
            İç halkaların (deliklerin) listesi. Her delik kendi GeoPoint listesi
            ile tanımlanır. Boş veya null olabilir.
          example:
            - - lng: 32.852
                lat: 39.932
              - lng: 32.853
                lat: 39.932
              - lng: 32.853
                lat: 39.933
              - lng: 32.852
                lat: 39.933
              - lng: 32.852
                lat: 39.932
          items:
            type: array
            items:
              $ref: '#/components/schemas/GeoPoint'
      required:
        - exterior
    BoundaryCity:
      type: object
      description: Şehir idari sınır bilgisi.
      properties:
        id:
          type: integer
          format: int64
          description: Benzersiz şehir tanımlayıcısı.
          example: 6
        name:
          type: string
          description: Resmi şehir adı.
          example: Ankara
        licensePlateCode:
          type: integer
          format: int32
          description: Şehrin Türkiye plaka kodu.
          example: 6
        polygon:
          $ref: '#/components/schemas/GeoPolygon'
          description: Şehir sınır poligonu (GeoJSON halka koordinatları).
    GeoPoint:
      type: object
      properties:
        lng:
          type: number
          format: double
          description: Boylam koordinatı.
          example: 32.857358
          maximum: 180
          minimum: -180
        lat:
          type: number
          format: double
          description: Enlem koordinatı.
          example: 39.93504
          maximum: 90
          minimum: -90
      required:
        - lat
        - lng

````