{
  "opencollection": "1.0.0",
  "info": {
    "name": "farmOS JSON: Assets Plans API",
    "version": "2.x"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "authorization_code",
      "authorizationUrl": "/oauth/authorize",
      "accessTokenUrl": "/oauth/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Plans",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List plans",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{farmOS-host}/api/plan/plan",
            "params": [
              {
                "name": "page[limit]",
                "value": "",
                "type": "query",
                "description": "Number of results per page"
              },
              {
                "name": "page[offset]",
                "value": "",
                "type": "query",
                "description": "Offset for pagination"
              },
              {
                "name": "filter[field]",
                "value": "",
                "type": "query",
                "description": "JSON:API filter parameter. Use dot notation for nested fields.\nExample: filter[status]=pending or filter[timestamp][value]=1234567890&filter[timestamp][operator]=>=\n"
              },
              {
                "name": "sort",
                "value": "",
                "type": "query",
                "description": "Comma-separated list of fields to sort by. Prefix with - for descending.\nExample: sort=-timestamp,name\n"
              },
              {
                "name": "include",
                "value": "",
                "type": "query",
                "description": "Comma-separated list of related resources to include in the response.\nExample: include=asset,quantity\n"
              }
            ]
          },
          "docs": "Returns a collection of farm plans."
        },
        {
          "info": {
            "name": "Create a plan",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{farmOS-host}/api/plan/plan",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a plan"
        },
        {
          "info": {
            "name": "Get a plan",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{farmOS-host}/api/plan/plan/:id",
            "params": [
              {
                "name": "id",
                "value": "3f1c2b4a-5d6e-7890-abcd-ef1234567890",
                "type": "path",
                "description": "UUID of the resource"
              }
            ]
          },
          "docs": "Get a plan"
        },
        {
          "info": {
            "name": "Update a plan",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://{farmOS-host}/api/plan/plan/:id",
            "params": [
              {
                "name": "id",
                "value": "3f1c2b4a-5d6e-7890-abcd-ef1234567890",
                "type": "path",
                "description": "UUID of the resource"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update a plan"
        },
        {
          "info": {
            "name": "Delete a plan",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://{farmOS-host}/api/plan/plan/:id",
            "params": [
              {
                "name": "id",
                "value": "3f1c2b4a-5d6e-7890-abcd-ef1234567890",
                "type": "path",
                "description": "UUID of the resource"
              }
            ]
          },
          "docs": "Delete a plan"
        }
      ]
    }
  ],
  "bundled": true
}