The api/db/<dbname>/classes Resource

The api/db/<dbname>/classes resource shows the list of database classes.

For an overview see page eXtremeDB Web Service Resources

With the REST server started (listening on port 8083), the following http request will return a list of the available classes:

 
    http://localhost:8083/api/db/perfmondb/classes
            
     

The classes array displays the struct_no, name and class_code for each class in the database in the following format:

 
    {
        "classes":

        [
            {
    
                "struct_no": 0,
                "name": "Node",
                "class_code": 1
  
         
            },
    
            {
    
                "struct_no": 1,
                "name": "eXDBDatabase",
                "class_code": 2
  
         
            },
    
            {
    
                "struct_no": 2,
                "name": "PerfCounter",
                "class_code": 3
  
         
            },
            {
   
    
                "struct_no": 3,
                "name": "PerfReading",
                "class_code": 4
  
         
            },
            {   
    
                "struct_no": 4,
                "name": "PerfTimingReading",
                "class_code": 5
  
         
            }
    
        ]

    }
 

(Note that, in this example, "perfmondb" indicates that the eXtremeDB Performance Monitor has been enabled. See the perf Resource page for further details.)