Get Data Table Column Properties

get

/rest/v16/datatables/{tableName}/fields/{fieldName}

This endpoint returns properties for the specified data table column.

Request

Path Parameters
Back to Top

Response

Default Response

Column details
Body ()
Root Schema : dataTableField
Type: object
Data table column model
Show Source
Nested Schema : relationship-response
Type: object
Show Source
Nested Schema : validation-response
Type: object
Show Source
Nested Schema : referenceField-response
Type: object
Show Source
Nested Schema : referenceTable-response
Type: object
Show Source
Back to Top

Examples

The following examples show how to retrieve properties for the specified data table column by submitting a GET request to the REST resource using cURL. For more information about cURL, see Use cURL.

curl - X GET - i - H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" - H "Content-type: application/json"
https://sitename.oracle.com/rest/v16/datatables/Rack_Domain/fields/Type

Response Body Sample

 {
  "id": 41361422,
  "dateModified": "10/08/2019 12:48 PM",
  "links": [{
      "rel": "parent",
      "href": "https://sitename.oracle.com/rest/v16/datatables/Rack_Domain/fields"
    }, {
      "rel": "self",
      "href": "https://sitename.oracle.com/rest/v16/datatables/Rack_Domain/fields/Type"
    }
  ],
  "name": "Type",
  "dateAdded": "10/08/2019 12:48 PM",
  "type": "String",
  "order": 1,
  "index": true,
  "key": false
}

Column with Relationship Example

curl - X GET - i - H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" - H "Content-type: application/json"
https://sitename.oracle.com/rest/v16/datatables/Rack_Domain/fields/RelationshipColumn

Response Body Sample

 {
  "id": 41366882,
  "dateModified": "10/21/2019 11:28 AM",
  "links": [{
      "rel": "parent",
      "href": "https://sitename.oracle.com/rest/v16/datatables/Rack_Domain/fields"
    }, {
      "rel": "self",
      "href": "https://sitename.oracle.com/rest/v16/datatables/Rack_Domain/fields/RelationshipColumn"
    }
  ],
  "name": "RelationshipColumn",
  "dateAdded": "10/21/2019 11:15 AM",
  "type": "String",
  "order": 11,
  "relationship": {
    "name": "RelationshipExample",
    "refTable": {
      "links": [{
          "rel": "self",
          "href": "https://sitename.oracle.com/rest/v16/datatables/Shipping_Options"
        }
      ],
      "name": "Shipping_Options"
    },
    "refField": {
      "links": [{
          "rel": "self",
          "href": "https://sitename.oracle.com/rest/v16/datatables/Shipping_Options/fields/Service_Level"
        }
      ],
      "name": "Service_Level"
    },
    "refOnDelete": "On Delete No Action"
  },
  "index": true,
  "key": false
}

Column with Validation Example

curl - X GET - i - H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" - H "Content-type: application/json"
https://sitename.oracle.com/rest/v16/datatables/Rack_Domain/fields/ValidationColumn

Request Body Sample

 {
  "id": 41366878,
  "dateModified": "10/21/2019 11:17 AM",
  "links": [{
      "rel": "parent",
      "href": "https://sitename.oracle.com/rest/v16/datatables/Rack_Domain/fields"
    }, {
      "rel": "self",
      "href": "https://sitename.oracle.com/rest/v16/datatables/Rack_Domain/fields/ValidationColumn"
    }
  ],
  "name": "ValidationColumn",
  "dateAdded": "10/21/2019 11:15 AM",
  "type": "String",
  "order": 10,
  "validation": {
    "type": "Config",
    "attribute": {
      "name": "Component Type",
      "id": 41320861
    },
    "hierarchy": "All Products:aCMERacks:equipmentRacks:componentType"
  },
  "index": false,
  "key": false
}
Back to Top