Hello,
The following case: external system sends REST API request GET to a server.
There are 2 filters in a query.
External system expects - several returned objects considering filters.
But - there is a misprint in filter attribute name.
For example request: GET /api/troubleTicket/?statTTus=acknowledged & creationDate=2017-04-20
There is an error in attributer name - "statTTus" instead of "status".
Database contains the following data:
- 10 results corresponding to creationDate=2017-04-20
- 5 results corresponding both filters status=acknowledged & creationDate=2017-04-20
What should server return?
1) error 400 Bad request ? (so ther should be a validation on server side?)
2) 10 results ignoring wrong filter attribute ?
3) something else?
I did not found any recomendations about this in TMF639_Resource_Inventory_Management_API_User_Guide_v4.0.1 or TMF630_REST_API_Design_Guidelines_Part_1_v4.0.1.
------------------------------
Thank you in advance
Viacheslav
------------------------------