Hi all. Is there a way to use OpenAPI to get lists...
# getting-started
l
Hi all. Is there a way to use OpenAPI to get lists? For example get a list of domains. As far as I see GET request receives information only on a specific urn.
b
hey there! unfortunately I do not believe that our openAPI currently supports listing such as you've asked for (as it required an urn or urns right now). However you can always get lists by entity type using the graphql api! the query below would give you all of your domains:
Copy code
query ListDomains {
  search(input: { type: DOMAIN, query: "*"}) {
    total
    count
    searchResults {
      entity {
        urn
        type
        ... on Domain {
          properties {
            name
          }
        }
      }
    }
  }
}
l
Chris, thank you for answer. I hoped to use only one API, but if it is impossible the I try to use graphql or rest