Rating numbers not being received via API.

This topic contains 17 replies, has 3 voices, and was last updated by  Kiran 4 years, 11 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #520909

    Kiran
    Moderator
    Post count: 7069

    Hi,

    Images should be uploaded to site via media endpoint or custom endpoint and the image url can be used to add images in add listing or add review endpoints.

    Similar logic that we use in normal “add listing / add review” form. In frontend “add listing / add review” after selecting image it upload image to site via ajax and assigns the image url to listing/review during the listing/review submit.

    FYI: we have a task in todo to check & implement image upload image via our own endpoint.

    Regards,
    Kiran

    #521047

    Rodney Chatman
    Expired Member
    Post count: 89

    If I’m understanding correctly, the image has to be uploaded BEFORE the review is submitted?

    Follow-up: I just verified this to be correct. I was attempting to POST the image and review at the same time. Now I see I need to have a POST call to add the image and use the return value of the POST to like the image to the review before the post. EUREKA!!!! 🙂

    #521092

    Kiran
    Moderator
    Post count: 7069

    Yes, exactly in review image value should be url of the image that uploaded before.

    For now you can use media endpoint or any custom endpoint to upload image and get the image url. We have already task in our todo list to provide image upload endpoint within /geodir/v2/ api route.

    Regards,
    Kiran

Viewing 3 posts - 16 through 18 (of 18 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount