S
S
stdio962017-02-14 17:22:49
Java
stdio96, 2017-02-14 17:22:49

How to pass an array of objects as a reference?

Hello. It is necessary to turn to a third-party API and pass parameters to it, among which there is such a type ( array<object> (Transport, Interval, IntervalValue)- an array of objects, as far as I understand). How to pass such an object to the URL.

https://api.site.com/model/create/?name=modelName&type=modelType&array=???

Thank you.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
davidnum95, 2017-02-14
@davidnum95

serialize to json?

A
artemsee, 2017-02-14
@artemsee

If we are talking about Java, then either

https://api.site.com/model/create/?name=modelName&type=modelType&array=1,2,3,432
Or
https://api.site.com/model/create/?name=modelName&type=modelType&array=1&array=2&array=3&array=432

A
aol-nnov, 2017-02-14
@aol-nnov

> among which there is such a type (array (Transport, Interval, IntervalValue)
actually, array<object> (Transport, Interval, IntervalValue)
but the documentation, of course, nda ... I did not find any query examples at all

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question