Logo: Relish

  1. Sign in

Project: Core

Delete 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
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.