Objectivity REST : Schema Resources : GET /v1/schema
GET /v1/schema
GET /v1/schema
Retrieves a representation of the complete schema for a federated database.
Headers 
 
Response Format
Accept:application/json
URL Parameters 
fdAlias
Provides the alias of a federated database that is included in the REST server’s configuration file; see Configuring the REST Server in Objectivity/DB Administration.
Curl Example 
curl -X GET -H "Accept:application/json" localhost:8185/v1/schema
Response 
The returned representation shows the schema for all classes in all namespaces. Some of the fields are for informational purposes and are not applicable when posting schema; see Using Retrieved Schema Representations
The following shows an excerpt from a returned JSON representation of the schema for a sample rental fleet application. Note that the classes are in a FleetData schema namespace
Status: 200 OK
[
  {
    "className": "FleetData.Address",
    "classNumber": "1000000",
    "shapeNumber": "1000000",
    "isReferenceable": false,
    "isInternal": false,
    "isDeleted": false,
    "superClass": null,
    "attributes": [
      {
        "attributeName": "street",
        "logicalType": "string",
        "encoding": "utf8",
        "storage": "variable"
      },
      ...
    ]
  },
  {
    "className": "FleetData.Customer",
    "classNumber": "1000001",
    "shapeNumber": "1000001",
    "isReferenceable": true,
    "isInternal": false,
    "isDeleted": false,
    "superClass": null,
    "attributes": [
      {
        "attributeName": "rewardPoints",
        "logicalType": "integer",
        "encoding": "unsigned",
        "storage": "b32"
      },
      ...
  },
  ...
See also 
GET /v1/schema/{class}
Objectivity/DB Data Types