atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rishabh Bhardwaj <rbnex...@gmail.com>
Subject Re: Problem in Adding Trait
Date Fri, 27 Nov 2015 19:02:58 GMT
Figured it out.
The api endpoint should be 'entities' instead of 'entity'.

Docs here need to be updated:
http://atlas.incubator.apache.org/api/resource_EntityResource.html#path__entity_-guid-_traits.html

On Fri, Nov 27, 2015 at 11:40 PM, Rishabh Bhardwaj <rbnext29@gmail.com>
wrote:

> Hi,
>
> I am working on adding Trait to an entity,
> I am making the following API call and getting 404,
>
>
> http://localhost:21000/api/atlas/entity/340eb4bf-776c-4474-b15f-4c8bae1b5bb8/traits
>
> Post Body:
> {
>
> "jsonClass":"org.apache.atlas.typesystem.json.InstanceSerialization$_Struct",
>   "typeName":"FirstTrait",
>   "values":{
>
>   }
> }
>
> The trait `FirstTrait` is already created.
> Kindly Help.
>
> Thanks,
> Rishabh.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message