{
  "opencollection": "1.0.0",
  "info": {
    "name": "Leaf Agriculture Leaf API Reference > Alerts API Reference > Beta > Input Database > Products API",
    "version": "1.0.0"
  },
  "items": [
    {
      "info": {
        "name": "API Reference > Beta > Input Database > Products",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Leaf Agriculture Get all products",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/services/beta/api/products",
            "headers": [
              {
                "name": "Authorization",
                "value": "Bearer {{leaf_token}}"
              },
              {
                "name": "Content-Type",
                "value": "application/json"
              }
            ]
          },
          "docs": "Leaf Agriculture Get all products"
        },
        {
          "info": {
            "name": "Leaf Agriculture Get summarized products",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/services/beta/api/users/:leaf_user_id/products/summary",
            "headers": [
              {
                "name": "Authorization",
                "value": "Bearer {{leaf_token}}"
              },
              {
                "name": "Content-Type",
                "value": "application/json"
              }
            ],
            "params": [
              {
                "name": "leaf_user_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Leaf Agriculture Get summarized products"
        },
        {
          "info": {
            "name": "Leaf Agriculture Get a product",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/services/beta/api/products/:product_id",
            "headers": [
              {
                "name": "Authorization",
                "value": "Bearer {{leaf_token}}"
              },
              {
                "name": "Content-Type",
                "value": "application/json"
              }
            ],
            "params": [
              {
                "name": "product_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Leaf Agriculture Get a product"
        },
        {
          "info": {
            "name": "Leaf Agriculture Get matching products from an operation",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/services/beta/api/products/matching/operations/:operation_id",
            "headers": [
              {
                "name": "Authorization",
                "value": "Bearer {{leaf_token}}"
              },
              {
                "name": "Content-Type",
                "value": "application/json"
              }
            ],
            "params": [
              {
                "name": "operation_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Leaf Agriculture Get matching products from an operation"
        },
        {
          "info": {
            "name": "Leaf Agriculture Updated product matches",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "{{baseUrl}}/services/beta/api/products/matching/operations/:operation_id/matches/:match_id",
            "headers": [
              {
                "name": "Authorization",
                "value": "Bearer {{leaf_token}}"
              },
              {
                "name": "Content-Type",
                "value": "application/json"
              }
            ],
            "params": [
              {
                "name": "operation_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "match_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Leaf Agriculture Updated product matches"
        },
        {
          "info": {
            "name": "Leaf Agriculture Get product matches historical",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/services/beta/api/products/matching/operations/:operation_id/matches/:match_id/historical",
            "headers": [
              {
                "name": "Authorization",
                "value": "Bearer {{leaf_token}}"
              },
              {
                "name": "Content-Type",
                "value": "application/json"
              }
            ],
            "params": [
              {
                "name": "operation_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "match_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Leaf Agriculture Get product matches historical"
        }
      ]
    }
  ],
  "bundled": true
}