Skip to main content
1-Visitor
July 8, 2024
Question

Requirements to get the response payload as an collection Arary

  • July 8, 2024
  • 1 reply
  • 689 views

Hi ,

Thanks for the above posting, It works for me. But my requirement is to get the response payload as an collection Arary

Can you please suggest the changes that i'll have to do to get an array response as given below

Response Payload:

--------------------------

"value":[
                 {
                   "key1":"Test Part",
                   "ChildObjects": [
                       {
                           "key":"OR:wt.part.WTPart: 1234",
                           "value":" TEST 1234-A "
                      },
                      {
                            "key":"OR:wt.part.WTPart: 1235,
                             "value":"TEST 1235-B "
                        } 
                ]
          }
    ]

 

1 reply

17-Peridot
July 10, 2024

Have a look at OData WRS.

https://www.ptc.com/support/-/media/support/refdocs/Windchill_REST_Services/2,-d-,5/wrs.pdf?sc_lang=en

Google will show you PTC's help pages on this topic.

Community Moderator
July 16, 2024

Hello @AK_11056330

 

It looks like you have a response from a community member. If it helped to answer your question please mark the reply as the Accepted Solution. 

Of course, if you have more to share on your issue, please let the Community know so other community members can continue to help you.

Thanks,
Vivek N.
Community Moderation Team.