Rest API and Category fields

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Rest API and Category fields

Chris Falzone-2
For some reason it seems that when you search for a content using the Rest API it sends all category values in each category field.  So if you have 2 category fields, each with data you get all the categories for category in each field.  


The "brand" field and "profileType" are both category fields.

In this case:
brand = "Vitamin T"
profileType = "Agent"

But the json returned is:
brand: "Agent, Vitamin T",
profileType : "Agent, Vitamin T"

Further the values there are the Labels not the Values, which is even less helpful.  

How have people using the Rest APIs dealt with this?  Is there a plan to fix it?

Thanks!

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/CAMAbHgWcoMHPtQjsH9ds1MsJHz7_V7CoHNO%3D6Q4Ncx0vwfu%2BfA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.