Leaf Agriculture API Reference > Beta > Layers API

The API Reference > Beta > Layers API from Leaf Agriculture — 2 operation(s) for api reference > beta > layers.

OpenAPI Specification

leaf-agriculture-api-reference-beta-layers-api-openapi.yml Raw ↑
openapi: 3.0.0
info:
  title: Leaf Agriculture Leaf API Reference > Alerts API Reference > Beta > Layers API
  description: We are Leaf Agriculture, provider of a unified farm data API. After experiencing the difficulty of building applications in food and agriculture first hand as software developers, and hearing similar stories of frustration with existing tools and often insurmountable technical barriers from other companies, we decided to tackle the problem at hand.
  version: 1.0.0
tags:
- name: API Reference > Beta > Layers
paths:
  /services/beta/api/users/{leaf_user_id}/layers:
    get:
      tags:
      - API Reference > Beta > Layers
      summary: Leaf Agriculture Get all layers
      parameters:
      - name: Authorization
        in: header
        schema:
          type: string
        example: Bearer {{leaf_token}}
      - name: Content-Type
        in: header
        schema:
          type: string
        example: application/json
      - name: leaf_user_id
        in: path
        schema:
          type: string
        required: true
      responses:
        '200':
          description: Successful response
          content:
            application/json: {}
  /services/beta/api/users/{leaf_user_id}/layers/climateFieldView:
    post:
      tags:
      - API Reference > Beta > Layers
      summary: Leaf Agriculture Upload a layer to Climate Field View
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                file:
                  type: string
                  format: binary
      parameters:
      - name: Authorization
        in: header
        schema:
          type: string
        example: Bearer {{leaf_token}}
      - name: Content-Type
        in: header
        schema:
          type: string
        example: application/json
      - name: uploadType
        in: query
        schema:
          type: string
        description: only true color image (RGB) files are supported
        example: RGB
      - name: leaf_user_id
        in: path
        schema:
          type: string
        required: true
      responses:
        '200':
          description: Successful response
          content:
            application/json: {}