Skip to Content
author's profile photo Former Member
Former Member

Import raw categories by using Postman REST client call

Hi Expert,

I am following link "https://wiki.hybris.com/display/tr52/hybris+5+Developer+Training+Trails+-+Import%2C+Compose%2C+and+Publish+Data+Using+the+Data+Hub+-+Step+3" for Import raw categories by using Postman REST client call but i am getting message while post raw categories by POST - http://localhost:8080/datahub-webapp/v1/data-feeds/DEFAULT_FEED/items/RawApparelCategory URL. The message is showing like "Type provided is not a subtype of RawItem.

Please see below attachment for more information

alt text

Please suggest what things are missing or what action need to take to Post the data.

Many Thanks,

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2015 at 03:58 PM

    Hi Nitin,

    It looks like your RawApparelCategory does not extend RawItem. make sure your domain-definiton of RawApparelCategory uses the extends RawItem.

     <managedobjects>
                      <managedobject code="RawApparelCategory" extends="RawItem" />
     </managedobjects>
    
    

    Additionally your RawApparelCategory.java interface needs to extend RawItem.java

    Matthias

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2015 at 04:04 PM

    Hi Matthias,

    Thanks for update.

    After made the changes it`s working fine now.

    Many Thanks,

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.