Support Questions

Find answers, ask questions, and share your expertise

is there a rest call for taxonomy search

New Contributor

Hi,

I need the data which i will get when i search in taxonomy for clear understanding i attached a screen shot for it.

can some one please guide me through it.

thank you.

38385-screenshot-1.png

2 REPLIES 2

Guru

Below are the Atlas API refs in general and for taxonomy specifically

It looks like you are confined to retrieving by taxonomy name however, and not query.

New Contributor

Yes, it is. You can use the following Rest call:

GET
http://<atlas-server-host:port>/api/atlas/discovery/search/dsl?query=%60Catalog.Marketing.Customers%...

The JSON Response will be like this:

{
	"requestId": string,
	"query": trait_name_within_backticks,
	"queryType": "dsl",
	"count": int,
	"results": [{
		"$typeName$": "__tempQueryResultStruct...",
		"instanceInfo": {
			"$typeName$": "__IdType",
			"guid": guid of entity associated to trait or term,
			"typeName": type of entity associated to trait or term
		},
		"traitDetails": null
	}, ....],
	"dataType": {
		"typeName": "__tempQueryResultStruct...",
		"typeDescription": null,
		"attributeDefinitions": [{
			"name": "traitDetails",
			"dataTypeName": trait or term name,
			"multiplicity": {
				"lower": 0,
				"upper": 1,
				"isUnique": false
			},
			"isComposite": false,
			"isUnique": false,
			"isIndexable": true,
			"reverseAttributeName": null
		}, {
			"name": "instanceInfo",
			"dataTypeName": "__IdType",
			"multiplicity": {
				"lower": 0,
				"upper": 1,
				"isUnique": false
			},
			"isComposite": false,
			"isUnique": false,
			"isIndexable": true,
			"reverseAttributeName": null
		}]
	}
}

So, you're getting the GUID of the entities associated with your trait.

Best Regards,

Ivan Diaz.