Skip to content

[Bug]: POST 'handler/lights/scenes' does not work #186

@JustSamuel

Description

@JustSamuel

Current behaviour

It returns errors saying the payload is incorrect, most likely because it is reaching the wrong handler (I believe empty routes should be ordered before routes with IDs.)

Desired behaviour

No response

Steps to reproduce

curl -X 'POST' \
  'https://aurora.gewis.nl/api/handler/lights/scenes' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "GEWIS GOT TALENT",
  "favorite": true,
  "effects": [
    {
      "effectName": "StaticColor",
      "lightsGroups": [
        { "id": 1 }
      ]
    },
    {
      "effectName": "StaticColor",
      "lightsGroups": [
        { "id": 2 }
      ]
    }
  ]
}
'

Other information

No response

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