Re: Referring existing entities in Atlas using Rest API
Hi Anshu , Yes, array should be used. Example: "Locations":[ { guid:"", typeName:“" }, { guid:"", typeName:“" }, { guid:"", typeName:“" } …... ] Thanks, Sharmadha S. On 10/13/18, 11:03 AM, "anshu shukla" wrote: >Hi, > >Thanks for replying this thing works perfectly for the single referential >entity but *what format to be used for an array of already existing >entities. * >*Can we use an array of JSON for that attribute?* > >On Thu, Oct 11, 2018 at 2:58 PM Nixon Rodrigues < >nixon.rodrig...@freestoneinfotech.com> wrote: > >> Hi Anshu, >> >> You can connect to existing entity be referring the guid of already >> created entity. >> Below is the format of JSON. >> >> { >> >> "entity": { >> ... >> ... >> "Location" : { >> "guid": "<%Existing entity guid)%>", >> "typeName": "" >> ... >> ... >> } >> >> } >> >> >> >> On Thu, Oct 11, 2018 at 2:21 PM Anshu Shukla >> wrote: >> >>> Hi, >>> >>> I have used Atlas-scripts in dev-support folder to create entities using >>> the given json example file. >>> But there is no example to guide and show how to connect to an already >>> existing entity in case new entity have attribute of that type. >>> >>> Example- >>> >>> Location is an attribute inside the Source >>> type. [Using Rest API's] >>> >> > >-- >Thanks & Regards, >Anshu Shukla
Re: Referring existing entities in Atlas using Rest API
Hi, Thanks for replying this thing works perfectly for the single referential entity but *what format to be used for an array of already existing entities. * *Can we use an array of JSON for that attribute?* On Thu, Oct 11, 2018 at 2:58 PM Nixon Rodrigues < nixon.rodrig...@freestoneinfotech.com> wrote: > Hi Anshu, > > You can connect to existing entity be referring the guid of already > created entity. > Below is the format of JSON. > > { > > "entity": { > ... > ... > "Location" : { > "guid": "<%Existing entity guid)%>", > "typeName": "" > ... > ... > } > > } > > > > On Thu, Oct 11, 2018 at 2:21 PM Anshu Shukla > wrote: > >> Hi, >> >> I have used Atlas-scripts in dev-support folder to create entities using >> the given json example file. >> But there is no example to guide and show how to connect to an already >> existing entity in case new entity have attribute of that type. >> >> Example- >> >> Location is an attribute inside the Source >> type. [Using Rest API's] >> > -- Thanks & Regards, Anshu Shukla
Re: Referring existing entities in Atlas using Rest API
Hi Anshu, You can connect to existing entity be referring the guid of already created entity. Below is the format of JSON. { "entity": { ... ... "Location" : { "guid": "<%Existing entity guid)%>", "typeName": "" ... ... } } On Thu, Oct 11, 2018 at 2:21 PM Anshu Shukla wrote: > Hi, > > I have used Atlas-scripts in dev-support folder to create entities using > the given json example file. > But there is no example to guide and show how to connect to an already > existing entity in case new entity have attribute of that type. > > Example- > > Location is an attribute inside the Source > type. [Using Rest API's] >
Referring existing entities in Atlas using Rest API
Hi, I have used Atlas-scripts in dev-support folder to create entities using the given json example file. But there is no example to guide and show how to connect to an already existing entity in case new entity have attribute of that type. Example- Location is an attribute inside the Source type. [Using Rest API's]