forked from sphinix27/notifier_api_test
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Description
You can get an existing notification with a valid ID followed by a point plus one letter in some cases.
Note: The cases tested were with all letters of the alphabet these are in which they return a response of 200 are with the following letters a, b, d, e, g, i, j, k, l, m, n, or q, r, u, v, w, x and y.
These are exceptions c, f, h, p, s, t and z
GET: http://128.0.0.1/api/notifications/cf7399e4-411f-4df4-ba92-b53044d089c7.c
Returns the following response
{
"timestamp": 1507679507207,
"status": 406,
"error": "Not Acceptable",
"exception": "org.springframework.web.HttpMediaTypeNotAcceptableException",
"message": "Not Acceptable",
"path": "/notifications/cf7399e4-411f-4df4-ba92-b53044d089c7.c"
}I also tried with words and for this case also returns the notification
GET: http://128.0.0.1/api/notifications/cf7399e4-411f-4df4-ba92-b53044d089c7.FAIL
Environment
- An Notifier Server installed with version 1.0
- Operating System and version:
Windows Server 2012 R2
Requirements
- Rest Client: E.g. Postman.
- Send a Notification and retrieve id of the notification: E.g. cf7399e4-411f-4df4-ba92-b53044d089c7
API
- Method:
GET - Endpoint:
/api/notifications
Steps to Reproduce
- Open Postman.
- In Postman select 'GET' method for URL.
- In Postman Enter the endpoint to get a notification.
E.g. http://128.0.0.1/api/notifications/cf7399e4-411f-4df4-ba92-b53044d089c7.a - Click on Send button. Receive a response from json of the requested notification more status history.
- Verify that a status code 200 is returned
Actual Result
Receive the requested notification information.
Expected Result
You should return the following response.
{
"timestamp": 1507680494967,
"status": 406,
"error": "Not Acceptable",
"exception": "org.springframework.web.HttpMediaTypeNotAcceptableException",
"message": "Not Acceptable",
"path": "/notifications/cf7399e4-411f-4df4-ba92-b53044d089c7.a"
}Reactions are currently unavailable