When adding objects, we could add multiple ones with the same names. Added name check and returns 400 status code when an object with the specified name already exists.
Fixes #268
Type of change
[x] Bug fix (non-breaking change which fixes an issue)
What has been changed?
Fix: checked for name duplications when adding a new object
How Has This Been Tested?
[x] Tried adding a new object with the name that is already in use
Checklist:
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
Description
When adding objects, we could add multiple ones with the same names. Added name check and returns
400
status code when an object with the specified name already exists.Fixes #268
Type of change
What has been changed?
How Has This Been Tested?
Checklist: