You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Pavel Konstantinov (JIRA)" <ji...@apache.org> on 2018/03/02 08:08:01 UTC
[jira] [Commented] (IGNITE-7803) REST: Add support to get values
inserted via API or SQL
[ https://issues.apache.org/jira/browse/IGNITE-7803?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16383322#comment-16383322 ]
Pavel Konstantinov commented on IGNITE-7803:
--------------------------------------------
Successfully tested with simple types like int, float, Integer, String as well as with POJO classes.
> REST: Add support to get values inserted via API or SQL
> -------------------------------------------------------
>
> Key: IGNITE-7803
> URL: https://issues.apache.org/jira/browse/IGNITE-7803
> Project: Ignite
> Issue Type: Task
> Components: rest
> Reporter: Alexey Kuznetsov
> Assignee: Pavel Konstantinov
> Priority: Major
> Fix For: 2.5
>
>
> Scenario 1:
> # cache.put(1, new Person(1, Alex, 300))
> # get via REST: {{[http://host:port/ignite?cmd=get&cacheName=SQL_PUBLIC_PERSON&keyType=int&key=1|http://hostport/]}}
> Scenario 2:
> # create table person(id integer primary key, name varchar(100), salary integer);
> # insert into person(id, name, salary) values (1, Alex, 300)
> # get via REST: {{[http://host:port/ignite?cmd=get&cacheName=SQL_PUBLIC_PERSON&keyType=int&key=1|http://hostport/]}}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)