Skip to content

Add A Device #6

@ogedo

Description

@ogedo

User Story: As a developer, I want to be able to add a new weather station device to the system by providing its unique identification number and location information, so that I can easily manage the device through the API.

Acceptance Criteria:

Scenario 1: Successfully adding a new weather station device

Given a unique identification number for a new weather station device

When I make a POST request to the API endpoint with the device's information

Then the system should respond with a 201 status code

Scenario 2: Attempting to add an existing weather station device

Given a weather station device with the same identification number as an existing device

When I make a POST request to the API endpoint with the device's information

Then the system should respond with a 409 status code and an error message indicating that the device already exists

Scenario 3: Attempting to add a device without required information

Given a device without identification number

When I make a POST request to the API endpoint with the device's information

Then the system should respond with a 400 status code and an error message indicating that the required information is missing

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions