Skip to content
This repository was archived by the owner on Jan 12, 2023. It is now read-only.
This repository was archived by the owner on Jan 12, 2023. It is now read-only.

Reimplement Setting#POST endpoint #89

@adamczykba

Description

@adamczykba

Describe the bug
POST endpoint in SettingsResource aside from creating new records also overwrites existing ones. There should be some check for duplicates.

To Reproduce
Steps to reproduce the behavior:

  1. Create new Setting through REST request
  2. Send the same request second time (optionally try to change some value to see the change)
  3. Go to Settings table in DB and see that record has been changed

Expected behavior
POST endpoint should only create new records. It should not be able to update them.

Observed behavior
SettingsResource#POST request overwrites existing settings records

Screenshots
N/A

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions