• Hi Dylan,

    All of my API endpoints are returning the proper information except for /projects, which is only returning an empty array. Any ideas?

    I’m trying to build a custom template to include thumbnail images for categories and projects, so if there’s an easier way to do that than a custom build using API, please let me know. Thanks.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Dylan James

    (@dylanjkotze)

    Hi there,

    Thanks so much for getting in touch and sorry for the inconvenience.

    Could I kindly ask if you could send me a screenshot of which parameters you are sending in the request to determine if that might be causing any filtering or something like that?

    I feel like perhaps a better solution than a custom build would be for me to add filters/hooks to the sections that you would like to override/extend and then you can add the custom code that way? Please let me know if you would prefer that and then I would be happy to do that.

    Thanks for your time. I look forward to helping further.

    Kindest regards,

    Dylan

    Thread Starter anchor2259

    (@anchor2259)

    Hi Dylan,

    No problem at all.

    To test the /wp-json/zephyr_project_manager/v1/projects endpoint I was simply typing in to the address bar. /tasks, /files, /categories, /users all return a JSON array but /projects just returns the empty array as mentioned above.

    Action hooks are probably a “better” way to handle this kind of extension than using the API, so I would be in favor of that. My most preferred solution overall would be that categories, projects, and maybe tasks would have the ability to have a Featured Image style thumbnail. I’m on a marketing team and we have a small number of projects that are visual in nature, so the ability to quickly identify projects by their associated imagery would be a huge win. But if that isn’t in line with the roadmap of the plugin, having the ability to add it through action hooks would be nice.

    Thanks for the help.

    Plugin Author Dylan James

    (@dylanjkotze)

    Hi,

    Thanks for the response and sorry for the delay over the weekend.

    I will add this feature over the next couple of days and will let you know as soon as it is completed and ready. It should take a day or two.

    I’ll also try replicate the API issue to get that fixed as well.

    I hope this helps, and I will keep you updated.

    Kindest regards,

    Dylan

    Plugin Author Dylan James

    (@dylanjkotze)

    Hi there,

    Thanks so much for your patience.

    I have finished adding these new changes now.

    For categories, whenever editing or creating a new category, you can add, update or remove a featured image. It will then be displayed in the category selection, and the same for projects, some examples below:

    Categories Display: https://capture.dropbox.com/z8iyOfY9q60v3NJu

    Categories Uploader: https://capture.dropbox.com/okGWljRwg9ME6nfd

    Project Display: https://capture.dropbox.com/nr3T1EKh0f46WhZg

    Project Uploader: https://capture.dropbox.com/nnbrX7EBJrIGWLfj

    Could I kindly ask you to have a quick look if you have a moment to confirm if this is correct or if I might have misunderstood the request or missed anything?

    If you would like a beta copy of this version before it is released to test it yourself first, please let me know at dylanjkotze@gmail.com (so I can send you the Pro update as well), and I’ll be happy to.

    Thank you.

    Kindest regards,

    Dylan

    Thread Starter anchor2259

    (@anchor2259)

    Hi Dylan,

    I am so sorry to repay your prompt replies and work with such a delayed response. My apologies.

    Yes, this looks exactly like what I was envisioning. Thank you for doing that. I don’t need to test it, it looks pretty straightforward what I’m looking for.

    Thank you again for the update.

    Plugin Author Dylan James

    (@dylanjkotze)

    Hi,

    No apology required at all ??

    That is great to hear. I’ll release this in the next live update then.

    Thanks again for your time and feedback.

    Kindest regards,

    Dylan

    Thread Starter anchor2259

    (@anchor2259)

    Hi Dylan,

    Just wanted to see when project thumbnails will be included? Unless they’re already in a recent release and I missed them?

    Thanks!

    Plugin Author Dylan James

    (@dylanjkotze)

    Hi,

    Happy new year.

    Apologies for my delay in response.

    These changes will be released in the next major version, which is the version I have been working hard on for the past couple of months and has many new features. I am planning to have it completed and released mid-end of February.

    If you would like to get the beta version, please let me know and I’ll be happy to send that.

    I apologize for the inconvenience.

    Kindest regards,

    Dylan

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Project API endpoint returning empty array’ is closed to new replies.