To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!
More about adding a collaboratorDelete messages from Queue
URI Rest: /services/{serviceIdentifier}/users/{userIdentifier}/queueMessaging DELETE
As API User, In order to exchange messages between users, I'd like to delete some messages when I've already read
- Scenarios
-
- Successful
- Alternative successful removing 2 messages
- Error invalid service
- Error invalid sender
- Error Null message id
- Successful
-
- Given
- an existing and valid service identifier "1"
- And
- an existing and valid user identifier "1"
- And
- an existing and valid message identifier "1"
- When
- I call the Glass API to delete a message
- Then
- the API will delete the message in the queue.
- Alternative successful removing 2 messages
-
- Given
- an existing and valid service identifier "1"
- And
- an existing and valid user identifier "1"
- And
- an existing and valid message identifier "1" and "2"
- When
- I call the Glass API to delete both messages
- Then
- the API will delete both messages in the queue.
- Error invalid service
-
- When
- I call the Glass API to delete a message in a invalid service 2342
- Then
- the service return a 404 error because the service don't exists.
- Error invalid sender
-
- When
- I call the Glass API to delete a message in a invalid sender
- Then
- the delete API will return a 404 http code because the sender don't exists.
- Error Null message id
-
- Given
- an existing and valid service identifier "1"
- And
- an existing and valid user identifier "1"
- And
- an invalid message null identifier
- When
- I call the Glass API to delete a message
- Then
- the delete API will return a 400 http code.
Last published almost 7 years ago by Raimundo AlegrÃa.