OpenAgri Farm Calendar

Django REST API for digital farm calendar management. Records farmer operations (planting, spraying, harvesting, irrigation), farm observations, parcel properties, and farm assets. Provides data in both JSON and JSON-LD formats conforming to the OpenAgri Common Semantic Model (OCSM). Part of the OpenAgri EU Horizon Europe project.

OpenAPI Specification

agstack-openagri-farm-calendar-openapi.yml Raw ↑
openapi: 3.0.3
info:
  title: OpenAgri Farm Calendar API
  version: 1.0.0
  description: API for farm assets and other farm related things.
paths:
  /api/v1/AddRawMaterialOperations/:
    get:
      operationId: api_v1_AddRawMaterialOperations_list
      description: API endpoint that allows AddRawMaterialOperation to be viewed or
        edited.
      parameters:
      - in: query
        name: activity_type
        schema:
          type: string
          format: uuid
      - in: query
        name: format
        schema:
          type: string
          enum:
          - json
          - jsonld
      - in: query
        name: fromDate
        schema:
          type: string
          format: date-time
      - in: query
        name: parcel
        schema:
          type: string
          format: uuid
      - in: query
        name: title
        schema:
          type: string
      - in: query
        name: toDate
        schema:
          type: string
          format: date-time
      tags:
      - api
      security:
      - cookieAuth: []
      responses:
        '200':
          content:
            application/ld+json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/AddRawMaterialOperation'
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/AddRawMaterialOperation'
          description: ''
    post:
      operationId: api_v1_AddRawMaterialOperations_create
      description: API endpoint that allows AddRawMaterialOperation to be viewed or
        edited.
      parameters:
      - in: query
        name: format
        schema:
          type: string
          enum:
          - json
          - jsonld
      tags:
      - api
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddRawMaterialOperation'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/AddRawMaterialOperation'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/AddRawMaterialOperation'
        required: true
      security:
      - cookieAuth: []
      responses:
        '201':
          content:
            application/ld+json:
              schema:
                $ref: '#/components/schemas/AddRawMaterialOperation'
            application/json:
              schema:
                $ref: '#/components/schemas/AddRawMaterialOperation'
          description: ''
  /api/v1/AddRawMaterialOperations/{id}/:
    get:
      operationId: api_v1_AddRawMaterialOperations_retrieve
      description: API endpoint that allows AddRawMaterialOperation to be viewed or
        edited.
      parameters:
      - in: query
        name: format
        schema:
          type: string
          enum:
          - json
          - jsonld
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this Add Raw Material Operation.
        required: true
      tags:
      - api
      security:
      - cookieAuth: []
      responses:
        '200':
          content:
            application/ld+json:
              schema:
                $ref: '#/components/schemas/AddRawMaterialOperation'
            application/json:
              schema:
                $ref: '#/components/schemas/AddRawMaterialOperation'
          description: ''
    put:
      operationId: api_v1_AddRawMaterialOperations_update
      description: API endpoint that allows AddRawMaterialOperation to be viewed or
        edited.
      parameters:
      - in: query
        name: format
        schema:
          type: string
          enum:
          - json
          - jsonld
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this Add Raw Material Operation.
        required: true
      tags:
      - api
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddRawMaterialOperation'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/AddRawMaterialOperation'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/AddRawMaterialOperation'
        required: true
      security:
      - cookieAuth: []
      responses:
        '200':
          content:
            application/ld+json:
              schema:
                $ref: '#/components/schemas/AddRawMaterialOperation'
            application/json:
              schema:
                $ref: '#/components/schemas/AddRawMaterialOperation'
          description: ''
    patch:
      operationId: api_v1_AddRawMaterialOperations_partial_update
      description: API endpoint that allows AddRawMaterialOperation to be viewed or
        edited.
      parameters:
      - in: query
        name: format
        schema:
          type: string
          enum:
          - json
          - jsonld
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this Add Raw Material Operation.
        required: true
      tags:
      - api
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedAddRawMaterialOperation'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PatchedAddRawMaterialOperation'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/PatchedAddRawMaterialOperation'
      security:
      - cookieAuth: []
      responses:
        '200':
          content:
            application/ld+json:
              schema:
                $ref: '#/components/schemas/AddRawMaterialOperation'
            application/json:
              schema:
                $ref: '#/components/schemas/AddRawMaterialOperation'
          description: ''
    delete:
      operationId: api_v1_AddRawMaterialOperations_destroy
      description: API endpoint that allows AddRawMaterialOperation to be viewed or
        edited.
      parameters:
      - in: query
        name: format
        schema:
          type: string
          enum:
          - json
          - jsonld
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this Add Raw Material Operation.
        required: true
      tags:
      - api
      security:
      - cookieAuth: []
      responses:
        '204':
          description: No response body
  /api/v1/AgriculturalMachines/:
    get:
      operationId: api_v1_AgriculturalMachines_list
      description: API endpoint that allows AgriculturalMachine to be viewed or edited.
      parameters:
      - in: query
        name: format
        schema:
          type: string
          enum:
          - json
          - jsonld
      - in: query
        name: name
        schema:
          type: string
      - in: query
        name: parcel
        schema:
          type: string
          format: uuid
      - in: query
        name: status
        schema:
          type: integer
          enum:
          - 0
          - 1
          - 2
        description: |-
          * `0` - Inactive
          * `1` - Active
          * `2` - Deleted
      tags:
      - api
      security:
      - cookieAuth: []
      responses:
        '200':
          content:
            application/ld+json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/AgriculturalMachine'
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/AgriculturalMachine'
          description: ''
    post:
      operationId: api_v1_AgriculturalMachines_create
      description: API endpoint that allows AgriculturalMachine to be viewed or edited.
      parameters:
      - in: query
        name: format
        schema:
          type: string
          enum:
          - json
          - jsonld
      tags:
      - api
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AgriculturalMachine'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/AgriculturalMachine'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/AgriculturalMachine'
        required: true
      security:
      - cookieAuth: []
      responses:
        '201':
          content:
            application/ld+json:
              schema:
                $ref: '#/components/schemas/AgriculturalMachine'
            application/json:
              schema:
                $ref: '#/components/schemas/AgriculturalMachine'
          description: ''
  /api/v1/AgriculturalMachines/{id}/:
    get:
      operationId: api_v1_AgriculturalMachines_retrieve
      description: API endpoint that allows AgriculturalMachine to be viewed or edited.
      parameters:
      - in: query
        name: format
        schema:
          type: string
          enum:
          - json
          - jsonld
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this Farm Machine.
        required: true
      tags:
      - api
      security:
      - cookieAuth: []
      responses:
        '200':
          content:
            application/ld+json:
              schema:
                $ref: '#/components/schemas/AgriculturalMachine'
            application/json:
              schema:
                $ref: '#/components/schemas/AgriculturalMachine'
          description: ''
    put:
      operationId: api_v1_AgriculturalMachines_update
      description: API endpoint that allows AgriculturalMachine to be viewed or edited.
      parameters:
      - in: query
        name: format
        schema:
          type: string
          enum:
          - json
          - jsonld
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this Farm Machine.
        required: true
      tags:
      - api
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AgriculturalMachine'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/AgriculturalMachine'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/AgriculturalMachine'
        required: true
      security:
      - cookieAuth: []
      responses:
        '200':
          content:
            application/ld+json:
              schema:
                $ref: '#/components/schemas/AgriculturalMachine'
            application/json:
              schema:
                $ref: '#/components/schemas/AgriculturalMachine'
          description: ''
    patch:
      operationId: api_v1_AgriculturalMachines_partial_update
      description: API endpoint that allows AgriculturalMachine to be viewed or edited.
      parameters:
      - in: query
        name: format
        schema:
          type: string
          enum:
          - json
          - jsonld
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this Farm Machine.
        required: true
      tags:
      - api
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedAgriculturalMachine'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PatchedAgriculturalMachine'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/PatchedAgriculturalMachine'
      security:
      - cookieAuth: []
      responses:
        '200':
          content:
            application/ld+json:
              schema:
                $ref: '#/components/schemas/AgriculturalMachine'
            application/json:
              schema:
                $ref: '#/components/schemas/AgriculturalMachine'
          description: ''
    delete:
      operationId: api_v1_AgriculturalMachines_destroy
      description: API endpoint that allows AgriculturalMachine to be viewed or edited.
      parameters:
      - in: query
        name: format
        schema:
          type: string
          enum:
          - json
          - jsonld
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this Farm Machine.
        required: true
      tags:
      - api
      security:
      - cookieAuth: []
      responses:
        '204':
          description: No response body
  /api/v1/Alerts/:
    get:
      operationId: api_v1_Alerts_list
      description: API endpoint that allows Alert to be viewed or edited.
      parameters:
      - in: query
        name: activity_type
        schema:
          type: string
          format: uuid
      - in: query
        name: format
        schema:
          type: string
          enum:
          - json
          - jsonld
      - in: query
        name: fromDate
        schema:
          type: string
          format: date-time
      - in: query
        name: parcel
        schema:
          type: string
          format: uuid
      - in: query
        name: severity
        schema:
          type: string
          enum:
          - critical
          - major
          - minor
          - moderate
          - severe
        description: |-
          * `minor` - Minor
          * `moderate` - Moderate
          * `severe` - Severe
          * `major` - Major
          * `critical` - Critical
      - in: query
        name: title
        schema:
          type: string
      - in: query
        name: toDate
        schema:
          type: string
          format: date-time
      tags:
      - api
      security:
      - cookieAuth: []
      responses:
        '200':
          content:
            application/ld+json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Alert'
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Alert'
          description: ''
    post:
      operationId: api_v1_Alerts_create
      description: API endpoint that allows Alert to be viewed or edited.
      parameters:
      - in: query
        name: format
        schema:
          type: string
          enum:
          - json
          - jsonld
      tags:
      - api
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Alert'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/Alert'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/Alert'
        required: true
      security:
      - cookieAuth: []
      responses:
        '201':
          content:
            application/ld+json:
              schema:
                $ref: '#/components/schemas/Alert'
            application/json:
              schema:
                $ref: '#/components/schemas/Alert'
          description: ''
  /api/v1/Alerts/{id}/:
    get:
      operationId: api_v1_Alerts_retrieve
      description: API endpoint that allows Alert to be viewed or edited.
      parameters:
      - in: query
        name: format
        schema:
          type: string
          enum:
          - json
          - jsonld
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this Alert.
        required: true
      tags:
      - api
      security:
      - cookieAuth: []
      responses:
        '200':
          content:
            application/ld+json:
              schema:
                $ref: '#/components/schemas/Alert'
            application/json:
              schema:
                $ref: '#/components/schemas/Alert'
          description: ''
    put:
      operationId: api_v1_Alerts_update
      description: API endpoint that allows Alert to be viewed or edited.
      parameters:
      - in: query
        name: format
        schema:
          type: string
          enum:
          - json
          - jsonld
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this Alert.
        required: true
      tags:
      - api
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Alert'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/Alert'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/Alert'
        required: true
      security:
      - cookieAuth: []
      responses:
        '200':
          content:
            application/ld+json:
              schema:
                $ref: '#/components/schemas/Alert'
            application/json:
              schema:
                $ref: '#/components/schemas/Alert'
          description: ''
    patch:
      operationId: api_v1_Alerts_partial_update
      description: API endpoint that allows Alert to be viewed or edited.
      parameters:
      - in: query
        name: format
        schema:
          type: string
          enum:
          - json
          - jsonld
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this Alert.
        required: true
      tags:
      - api
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedAlert'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PatchedAlert'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/PatchedAlert'
      security:
      - cookieAuth: []
      responses:
        '200':
          content:
            application/ld+json:
              schema:
                $ref: '#/components/schemas/Alert'
            application/json:
              schema:
                $ref: '#/components/schemas/Alert'
          description: ''
    delete:
      operationId: api_v1_Alerts_destroy
      description: API endpoint that allows Alert to be viewed or edited.
      parameters:
      - in: query
        name: format
        schema:
          type: string
          enum:
          - json
          - jsonld
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this Alert.
        required: true
      tags:
      - api
      security:
      - cookieAuth: []
      responses:
        '204':
          description: No response body
  /api/v1/CompostOperations/:
    get:
      operationId: api_v1_CompostOperations_list
      description: API endpoint that allows CompostOperation to be viewed or edited.
      parameters:
      - in: query
        name: activity_type
        schema:
          type: string
          format: uuid
      - in: query
        name: compost_pile_id
        schema:
          type: string
      - in: query
        name: format
        schema:
          type: string
          enum:
          - json
          - jsonld
      - in: query
        name: fromDate
        schema:
          type: string
          format: date-time
      - in: query
        name: parcel
        schema:
          type: string
          format: uuid
      - in: query
        name: title
        schema:
          type: string
      - in: query
        name: toDate
        schema:
          type: string
          format: date-time
      tags:
      - api
      security:
      - cookieAuth: []
      responses:
        '200':
          content:
            application/ld+json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/CompostOperation'
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/CompostOperation'
          description: ''
    post:
      operationId: api_v1_CompostOperations_create
      description: API endpoint that allows CompostOperation to be viewed or edited.
      parameters:
      - in: query
        name: format
        schema:
          type: string
          enum:
          - json
          - jsonld
      tags:
      - api
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CompostOperation'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/CompostOperation'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/CompostOperation'
        required: true
      security:
      - cookieAuth: []
      responses:
        '201':
          content:
            application/ld+json:
              schema:
                $ref: '#/components/schemas/CompostOperation'
            application/json:
              schema:
                $ref: '#/components/schemas/CompostOperation'
          description: ''
  /api/v1/CompostOperations/{compost_operation_pk}/AddRawMaterialOperations/:
    get:
      operationId: api_v1_CompostOperations_AddRawMaterialOperations_list
      description: API endpoint that allows AddRawMaterialOperation to be viewed or
        edited.
      parameters:
      - in: query
        name: activity_type
        schema:
          type: string
          format: uuid
      - in: path
        name: compost_operation_pk
        schema:
          type: string
        required: true
      - in: query
        name: format
        schema:
          type: string
          enum:
          - json
          - jsonld
      - in: query
        name: fromDate
        schema:
          type: string
          format: date-time
      - in: query
        name: parcel
        schema:
          type: string
          format: uuid
      - in: query
        name: title
        schema:
          type: string
      - in: query
        name: toDate
        schema:
          type: string
          format: date-time
      tags:
      - api
      security:
      - cookieAuth: []
      responses:
        '200':
          content:
            application/ld+json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/AddRawMaterialOperation'
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/AddRawMaterialOperation'
          description: ''
    post:
      operationId: api_v1_CompostOperations_AddRawMaterialOperations_create
      description: API endpoint that allows AddRawMaterialOperation to be viewed or
        edited.
      parameters:
      - in: path
        name: compost_operation_pk
        schema:
          type: string
        required: true
      - in: query
        name: format
        schema:
          type: string
          enum:
          - json
          - jsonld
      tags:
      - api
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddRawMaterialOperation'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/AddRawMaterialOperation'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/AddRawMaterialOperation'
        required: true
      security:
      - cookieAuth: []
      responses:
        '201':
          content:
            application/ld+json:
              schema:
                $ref: '#/components/schemas/AddRawMaterialOperation'
            application/json:
              schema:
                $ref: '#/components/schemas/AddRawMaterialOperation'
          description: ''
  /api/v1/CompostOperations/{compost_operation_pk}/AddRawMaterialOperations/{id}/:
    get:
      operationId: api_v1_CompostOperations_AddRawMaterialOperations_retrieve
      description: API endpoint that allows AddRawMaterialOperation to be viewed or
        edited.
      parameters:
      - in: path
        name: compost_operation_pk
        schema:
          type: string
        required: true
      - in: query
        name: format
        schema:
          type: string
          enum:
          - json
          - jsonld
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this Add Raw Material Operation.
        required: true
      tags:
      - api
      security:
      - cookieAuth: []
      responses:
        '200':
          content:
            application/ld+json:
              schema:
                $ref: '#/components/schemas/AddRawMaterialOperation'
            application/json:
              schema:
                $ref: '#/components/schemas/AddRawMaterialOperation'
          description: ''
    put:
      operationId: api_v1_CompostOperations_AddRawMaterialOperations_update
      description: API endpoint that allows AddRawMaterialOperation to be viewed or
        edited.
      parameters:
      - in: path
        name: compost_operation_pk
        schema:
          type: string
        required: true
      - in: query
        name: format
        schema:
          type: string
          enum:
          - json
          - jsonld
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this Add Raw Material Operation.
        required: true
      tags:
      - api
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddRawMaterialOperation'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/AddRawMaterialOperation'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/AddRawMaterialOperation'
        required: true
      security:
      - cookieAuth: []
      responses:
        '200':
          content:
            application/ld+json:
              schema:
                $ref: '#/components/schemas/AddRawMaterialOperation'
            application/json:
              schema:
                $ref: '#/components/schemas/AddRawMaterialOperation'
          description: ''
    patch:
      operationId: api_v1_CompostOperations_AddRawMaterialOperations_partial_update
      description: API endpoint that allows AddRawMaterialOperation to be viewed or
        edited.
      parameters:
      - in: path
        name: compost_operation_pk
        schema:
          type: string
        required: true
      - in: query
        name: format
        schema:
          type: string
          enum:
          - json
          - jsonld
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this Add Raw Material Operation.
        required: true
      tags:
      - api
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedAddRawMaterialOperation'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PatchedAddRawMaterialOperation'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/PatchedAddRawMaterialOperation'
      security:
      - cookieAuth: []
      responses:
        '200':
          content:
            application/ld+json:
              schema:
                $ref: '#/components/schemas/AddRawMaterialOperation'
            application/json:
              schema:
                $ref: '#/components/schemas/AddRawMaterialOperation'
          description: ''
    delete:
      operationId: api_v1_CompostOperations_AddRawMaterialOperations_destroy
      description: API endpoint that allows AddRawMaterialOperation to be viewed or
        edited.
      parameters:
      - in: path
        name: compost_operation_pk
        schema:
          type: string
        required: true
      - in: query
        name: format
        schema:
          type: string
          enum:
          - json
          - jsonld
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this Add Raw Material Operation.
        required: true
      tags:
      - api
      security:
      - cookieAuth: []
      responses:
        '204':
          description: No response body
  /api/v1/CompostOperations/{compost_operation_pk}/CompostTurningOperations/:
    get:
      operationId: api_v1_CompostOperations_CompostTurningOperations_list
      description: API endpoint that allows CompostTurningOperation to be viewed or
        edited.
      parameters:
      - in: query
        name: activity_type
        schema:
          type: string
          format: uuid
      - in: path
        name: compost_operation_pk
        schema:
          type: string
        required: true
      - in: query
        name: format
        schema:
          type: string
          enum:
          - json
          - jsonld
      - in: query
        name: fromDate
        schema:
          type: string
          format: date-time
      - in: query
        name: parcel
        schema:
          type: string
          format: uuid
      - in: query
        name: title
        schema:
          type: string
      - in: query
        name: toDate
        schema:
          type: string
          format: date-time
      tags:
      - api
      security:
      - cookieAuth: []
      responses:
        '200':
          content:
            application/ld+json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/CompostTurningOperation'
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/CompostTurningOperation'
          description: ''
    post:
      operationId: api_v1_CompostOperations_CompostTurningOperations_create
      description: API endpoint that allows CompostTurningOperation to be viewed or
        edited.
      parameters:
      - in: path
        name: compost_operation_pk
        schema:
          type: string
        required: true
      - in: query
        name: format
        schema:
          type: string
          enum:
          - json
          - jsonld
      tags:
      - api
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CompostTurningOperation'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/CompostTurningOperation'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/CompostTurningOperation'
        required: true
      security:
      - cookieAuth: []
      responses:
        '201':
          content:
            application/ld+json:
              schema:
                $ref: '#/components/schemas/CompostTurningOperation'
            application/json:
              schema:
                $ref: '#/components/schemas/CompostTurningOperation'
          description: ''
  /api/v1/CompostOperations/{compost_operation_pk}/CompostTurningOperations/{id}/:
    get:
      operationId: api_v1_CompostOperations_CompostTurningOperations_retrieve
      description: API endpoint that allows CompostTurningOperation to be viewed or
        edited.
      parameters:
      - in: path
        name: compost_operati

# --- truncated at 32 KB (239 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/agstack/refs/heads/main/openapi/agstack-openagri-farm-calendar-openapi.yml