Skip to content

Prevent duplicate entry on API #299

@benoit-cty

Description

@benoit-cty
  • CodeCarbon version: 2.0.0

Description

The API routes did not check if an entity with same name and same parent id already exist.

What I Did

Call two time the same API entry with same payload.

What I expect

An error message.

What I get

The entry was created two times.

Metadata

Metadata

Assignees

Labels

APIConcern only the codecarbon APIP1Priority 1enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions