List All Data Types

get

/content/management/api/v1.1/dataTypes

List information of all the data types.

Request

Query Parameters
Back to Top

Response

Supported Media Types

200 Response

OK.
Body ()
Root Schema : DataTypes
Type: object
DataTypes
Show Source
Nested Schema : dataTypes
Type: array
dataTypes. List
Show Source
Nested Schema : DataType
Type: object
DataType
Show Source

304 Response

Not modified.

400 Response

Bad request.

403 Response

Forbidden.

500 Response

Internal server error.
Back to Top

Examples

The following example shows how to get all the types by submission of a GET request using cURL.

curl -X GET -H 'Accept: application/json' 'https://host:port/content/management/api/v1.1/dataTypes'

Example:

This lists all the DataTypes supported by system.

/content/management/api/v1.1/dataTypes

Response Body

{
    "dataTypes": [
    {
      "datatype": "text",
      "description": "Supports upto 2000 characters"
    },
    {
      "datatype": "largetext",
      "description": "Supports unlimited text"
    },
    {
      "datatype": "number",
      "description": "Supports Supports as signed Integer value with the range of -2,147,483,648 to 2,147,483,647"
    },
    {
      "datatype": "decimal",
      "description": "Supports float or decimal values with the range of approximately ??3.40282347E+38F (6-7 significant decimal digits)"
    },
    {
      "datatype": "boolean",
      "description": "Supports Boolean values of TRUE or FALSE, default value is FALSE for empty"
    },
    {
      "datatype": "reference",
      "description": "Supports the reference relationship to other Item(s)"
    },
    {
      "datatype": "datetime",
      "description": "Supports date and time values"
    },
    {
      "datatype": "location",
      "description": "Supports location data about geo location using longitude and latitude values"
    },
    {
      "datatype": "json",
      "description": "Supports the json type data"
    }
    ],
    "links": [
    {
      "href": "https://host:port/content/management/api/v1.1/dataTypes",
      "rel": "self",
      "method": "GET",
      "mediaType": "application/json"
    },
    {
      "href": "https://host:port/content/management/api/v1.1/dataTypes",
      "rel": "canonical",
      "method": "GET",
      "mediaType": "application/json"
    },
    {
      "href": "https://host:port/content/management/api/v1.1/metadata-catalog/dataTypes",
      "rel": "describedby",
      "method": "GET",
      "mediaType": "application/schema+json"
    }
    ]
    }
Back to Top