JBackend SobiPro - just possible in module?
-
lollar
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 5
-
Thank you received: 0
-
-
8 years 9 months ago #5079
by lollar
hi guys,
i've just downloaded jbackend for my sobipro component but im a bit confused. i need so access my sobipro data as json output to display it filtered on another page, directly in sobi. is this possible with jbackend or can i just access this data when im "inside" of a module?
is there a example how i can simply get a json file with the data from sobi?
thanks in advance
Please Log in or Create an account to join the conversation.
-
lollar
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 5
-
Thank you received: 0
-
-
8 years 9 months ago #5080
by lollar
i found out to generate the api request and it works for the content but unfortunately not for sobi. i recieve the following error:
{
"status": "ko",
"error_code": "SP_PNS",
"error_description": "Parent not specified"
}
can someone help me pls?
thanks
Please Log in or Create an account to join the conversation.
-
lollar
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 5
-
Thank you received: 0
-
-
8 years 9 months ago #5081
by lollar
sorry for my tripplepost but i finally got it now

. but im not sure, is it possible to access more than 1 sobipro entry with this get:
/get/sobipro/entries/<N>
?
can i set a range of ID's or something like that? if i set a category as parent not the whole data of the entry is displayed.
thanks in advance
lollar
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
-
lollar
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 5
-
Thank you received: 0
-
-
8 years 9 months ago #5091
by lollar
hi luigi,
thanks for your help. i've seen this request but the point is that as soon as i define a category as in the get you posted above, i dont get all the informations about my entries. this is an example output for a sobipro entry when i set the request as you told me above:
{
"name": "Name",
"fid": "16",
"nid": "field_name",
"sid": "65",
"section": "54",
"lang": "de-DE",
"_data": "Hundehotel Reussweid",
"_rawData": "Hundehotel Reussweid",
"fieldType": "inbox",
"isFree": "1",
"position": "1"
},
when i request a entry directly with the id (<end-point>/get/sobipro/entries/<N>), i recieve much more data about the entry (all the defined fields like street, phone, mail and more).
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
8 years 9 months ago #5093
by admin
Yes,
of course the list contains less information. It is usually used to generate item cards or similar, while you need to get more info entering on the item details.
Please Log in or Create an account to join the conversation.
Time to create page: 0.149 seconds