Skip to content

Refactor /api/island-mode #2106

@mssalvatore

Description

@mssalvatore

Refactor

Component(s) to be refactored

  • /api/island-mode

Tasks

  • Rename to /api/island/mode (0d) @ilija-lazoroski
  • Change POST to PUT (0d) @ilija-lazoroski
  • Use HTTPStatus enum for return codes (0d) @ilija-lazoroski
    • See if you can just return the status with no body
    • Use 204 instead of 200 for PUT
  • Get rid of ['mode'] in api/island/mode and all uses. (0.25d) @ilija-lazoroski
    • Add IslandMode to resources/__init__.py and shorten all imports

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions