-
Notifications
You must be signed in to change notification settings - Fork 7
Add A Device #6
Description
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
Labels
Type
Projects
Status