Get schema e.g. vertex types, attributes using API

Trying to create an API user interface that forces the user to choose from the pre-defined vertex and edge types

Could you please help us with the method to TigerGraph instance to send us:

  1. The different possible types of vertexes and schema as defined in the schema?
  2. The different attributes for a particular type of vertex or edge as defined in the schema?

(Our worry is if we modify the schema in the future the app should be able to pickup the basic changes).

Thank you!

You can get the schema info in yaml format from this endpoint:

curl -X GET “http://localhost:9000/schema

Thanks.

Thank you! Works great!

(P.S. for others reading the thread please note output is in YAML not JSON - took a second to get that when I ran the command).