You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by Pavel Petroshenko <pa...@petroshenko.com> on 2018/10/01 00:51:13 UTC
ComplexObjects via REST API?
Igniters,
Is there a way to put user defined objects (in BinaryObject or whatever
another format) via the REST APIs [1]? According to the docs it's not
supported, but I wonder if by any chance it's implemented somewhere and is
just not officially released yet...
Thanks,
Pavel
[1] https://apacheignite.readme.io/docs/rest-api
Re: ComplexObjects via REST API?
Posted by "ilya.kasnacheev" <il...@gmail.com>.
Hello!
We have it kinda documented via
https://apacheignite.readme.io/docs/rest-api#section-general-configuration
Also I can see that the following ticket now exists:
https://issues.apache.org/jira/browse/IGNITE-9758
Regards,
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Re: ComplexObjects via REST API?
Posted by Denis Magda <dm...@apache.org>.
Ilya, folks,
This needs to be documented. Do we have a ticket?
--
Denis
On Sun, Sep 30, 2018 at 11:07 PM Ilya Kasnacheev <il...@gmail.com>
wrote:
> Hello!
>
> Yes, into JSON.
>
> Unfortunately I don't have any ready to use examples. This is the
> interface:
>
> https://ignite.apache.org/releases/latest/javadoc/org/apache/ignite/configuration/ConnectorMessageInterceptor.html
> You need to put it into ConnectorConfiguration, which you should put into
> IgniteConfiguration.
>
> I also suggest that this should be taken to userlist instead of devlist.
>
> Regards,
> --
> Ilya Kasnacheev
>
>
> пн, 1 окт. 2018 г. в 8:46, Pavel Petroshenko <pa...@petroshenko.com>:
>
>> Thanks, Ilya.
>>
>> > REST API will convert complex BinaryObjects into REST by default
>>
>> You mean "into JSON"?
>>
>> Is this documented anywhere? Any examples that you can share a link to?
>>
>> P.
>>
>> On Sun, Sep 30, 2018 at 10:06 PM Ilya Kasnacheev <
>> ilya.kasnacheev@gmail.com> wrote:
>>
>>> Hello!
>>>
>>> Yes, this is supported. REST API will convert complex BinaryObjects into
>>> REST by default. But to put such objects via REST you will need to define
>>> your own ConnectorMessageInterceptor and plug it in. You will need to
>>> define string to entity mapping in onReceive. You can leave onSend
>>> returning arg.
>>>
>>> Regards,
>>> --
>>> Ilya Kasnacheev
>>>
>>>
>>> пн, 1 окт. 2018 г. в 3:51, Pavel Petroshenko <pa...@petroshenko.com>:
>>>
>>> > Igniters,
>>> >
>>> > Is there a way to put user defined objects (in BinaryObject or whatever
>>> > another format) via the REST APIs [1]? According to the docs it's not
>>> > supported, but I wonder if by any chance it's implemented somewhere
>>> and is
>>> > just not officially released yet...
>>> >
>>> > Thanks,
>>> > Pavel
>>> >
>>> > [1] https://apacheignite.readme.io/docs/rest-api
>>> >
>>>
>>
Re: ComplexObjects via REST API?
Posted by Ilya Kasnacheev <il...@gmail.com>.
Hello!
Yes, into JSON.
Unfortunately I don't have any ready to use examples. This is the interface:
https://ignite.apache.org/releases/latest/javadoc/org/apache/ignite/configuration/ConnectorMessageInterceptor.html
You need to put it into ConnectorConfiguration, which you should put into
IgniteConfiguration.
I also suggest that this should be taken to userlist instead of devlist.
Regards,
--
Ilya Kasnacheev
пн, 1 окт. 2018 г. в 8:46, Pavel Petroshenko <pa...@petroshenko.com>:
> Thanks, Ilya.
>
> > REST API will convert complex BinaryObjects into REST by default
>
> You mean "into JSON"?
>
> Is this documented anywhere? Any examples that you can share a link to?
>
> P.
>
> On Sun, Sep 30, 2018 at 10:06 PM Ilya Kasnacheev <
> ilya.kasnacheev@gmail.com> wrote:
>
>> Hello!
>>
>> Yes, this is supported. REST API will convert complex BinaryObjects into
>> REST by default. But to put such objects via REST you will need to define
>> your own ConnectorMessageInterceptor and plug it in. You will need to
>> define string to entity mapping in onReceive. You can leave onSend
>> returning arg.
>>
>> Regards,
>> --
>> Ilya Kasnacheev
>>
>>
>> пн, 1 окт. 2018 г. в 3:51, Pavel Petroshenko <pa...@petroshenko.com>:
>>
>> > Igniters,
>> >
>> > Is there a way to put user defined objects (in BinaryObject or whatever
>> > another format) via the REST APIs [1]? According to the docs it's not
>> > supported, but I wonder if by any chance it's implemented somewhere and
>> is
>> > just not officially released yet...
>> >
>> > Thanks,
>> > Pavel
>> >
>> > [1] https://apacheignite.readme.io/docs/rest-api
>> >
>>
>
Re: ComplexObjects via REST API?
Posted by Pavel Petroshenko <pa...@petroshenko.com>.
Thanks, Ilya.
> REST API will convert complex BinaryObjects into REST by default
You mean "into JSON"?
Is this documented anywhere? Any examples that you can share a link to?
P.
On Sun, Sep 30, 2018 at 10:06 PM Ilya Kasnacheev <il...@gmail.com>
wrote:
> Hello!
>
> Yes, this is supported. REST API will convert complex BinaryObjects into
> REST by default. But to put such objects via REST you will need to define
> your own ConnectorMessageInterceptor and plug it in. You will need to
> define string to entity mapping in onReceive. You can leave onSend
> returning arg.
>
> Regards,
> --
> Ilya Kasnacheev
>
>
> пн, 1 окт. 2018 г. в 3:51, Pavel Petroshenko <pa...@petroshenko.com>:
>
> > Igniters,
> >
> > Is there a way to put user defined objects (in BinaryObject or whatever
> > another format) via the REST APIs [1]? According to the docs it's not
> > supported, but I wonder if by any chance it's implemented somewhere and
> is
> > just not officially released yet...
> >
> > Thanks,
> > Pavel
> >
> > [1] https://apacheignite.readme.io/docs/rest-api
> >
>
Re: ComplexObjects via REST API?
Posted by Ilya Kasnacheev <il...@gmail.com>.
Hello!
Yes, this is supported. REST API will convert complex BinaryObjects into
REST by default. But to put such objects via REST you will need to define
your own ConnectorMessageInterceptor and plug it in. You will need to
define string to entity mapping in onReceive. You can leave onSend
returning arg.
Regards,
--
Ilya Kasnacheev
пн, 1 окт. 2018 г. в 3:51, Pavel Petroshenko <pa...@petroshenko.com>:
> Igniters,
>
> Is there a way to put user defined objects (in BinaryObject or whatever
> another format) via the REST APIs [1]? According to the docs it's not
> supported, but I wonder if by any chance it's implemented somewhere and is
> just not officially released yet...
>
> Thanks,
> Pavel
>
> [1] https://apacheignite.readme.io/docs/rest-api
>