openwisp / openwisp-firmware-upgrader

Firmware upgrade solution for OpenWRT with possibility to add support for other embedded OSes. Provides features like automatic retry for network failures, mass upgrades, REST API and more.
http://openwisp.org
Other
50 stars 58 forks source link

[feature] Added missing endpoints for DeviceFirmware and UpgradeOperation #206 #231

Closed Aryamanz29 closed 1 year ago

Aryamanz29 commented 1 year ago

Blockers

  1. upgrade-operation/<id>/

    • Display detail of a particular upgrade id
  2. device/<device_pk>/upgrade-operation/

    • return a list of upgrade-operation ids for a given device id
  3. device/<device_pk>/firmware/

    • PUT: if DeviceFirmware doesn't exist, create a new object else update the image of the DeviceFirmware. Returns the DeviceFirmware object and if an upgrade operation was created, also return the id of the UpgradeOperation.

    • GET: return the DeviceFirmware object,

Closes #206