RICADO Gen 4 API JS Client

RICADO Gen 4 API JS Client

Class

GrowingMethodController

Controller Class for Growing Methods

Constructor

new GrowingMethodController()

Source

Methods

static

create(siteId, createData) → {Promise.<GrowingMethodModel>}

Create a Growing Method [POST /packhouse/sites/{siteId}/growing-methods]

Parameters

  • siteId number

    The Site ID

  • createData GrowingMethodController.CreateData

    The Growing Method Create Data

Returns

  • Promise.<GrowingMethodModel>

Source

static

getAll(siteId, queryParametersopt) → {Promise.<Array.<GrowingMethodModel>>}

List all Growing Methods [GET /packhouse/sites/{siteId}/growing-methods]

Parameters

  • siteId number

    The Site ID

  • queryParameters GrowingMethodController.GetAllQueryParameters <optional>

    The Optional Query Parameters

Returns

  • Promise.<Array.<GrowingMethodModel>>

Source

static

getOne(siteId, id) → {Promise.<GrowingMethodModel>}

Retrieve a Growing Method [GET /packhouse/sites/{siteId}/growing-methods/{id}]

Parameters

  • siteId number

    The Site ID

  • id string

    The Growing Method ID

Returns

  • Promise.<GrowingMethodModel>

Source

static

update(siteId, id, updateData) → {Promise.<GrowingMethodModel>}

Update a Growing Method [PATCH /packhouse/sites/{siteId}/growing-methods/{id}]

Parameters

  • siteId number

    The Site ID

  • id string

    The Growing Method ID

  • updateData GrowingMethodController.UpdateData

    The Growing Method Update Data

Returns

  • Promise.<GrowingMethodModel>

Source

Type Definitions