Alexander Belyak created IGNITE-6759:
----------------------------------------
Summary: URL not using in http rest API
Key: IGNITE-6759
URL:
https://issues.apache.org/jira/browse/IGNITE-6759 Project: Ignite
Issue Type: Bug
Security Level: Public (Viewable by anyone)
Components: general
Affects Versions: 2.2, 2.1, 2.0
Reporter: Alexander Belyak
Fix For: 3.0
In http rest API I cat send:
curl "
http://localhost:8080/ignite?cmd=get"
{"successStatus":1,"sessionToken":null,"error":"Failed to handle request: [req=CACHE_GET, err=Failed to find mandatory parameter in request: key]","response":null}
and
curl "
http://localhost:8080/ignite2/2/2/2/2/?cmd=get"
{"successStatus":1,"sessionToken":null,"error":"Failed to handle request: [req=CACHE_GET, err=Failed to find mandatory parameter in request: key]","response":null}
With same result, i.e. we didn't test whole request URL (only /ignite prefix is mandatory). Btw - its REST antipattern to use single URL to do anything (set ignite version 3.0 as fix version to be able to change API):
http://www.restapitutorial.com/lessons/restfulresourcenaming.html--
This message was sent by Atlassian JIRA
(v6.4.14#64029)