Get Asset Metadata
get
/rest/v19/assets/metadata
This resource retrieves metadata describing attributes available for the Assets resource.
Request
There are no request parameters for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
Success
Root Schema : AttributeMetadataBean
Type:
Show Source
object-
custom:
boolean()
Title:
CustomIndicates if this field is a custom filed. -
dataType:
string()
Title:
Data TypeAPI-consumer friendly type for this field. -
description:
string()
Title:
DescriptionExplanatory text about the purpose or contents of the field. -
displayName:
string()
Title:
Display NameUser-friendly or translated label for UI or docs. -
displayType:
string()
Title:
Display TypeUser display type for this field. -
indexed:
boolean()
Title:
IndexedIndicates if this field is indexed in the database (impacts search performance). -
keyword:
boolean()
Title:
KeywordIndicates if this field participates in global keyword search/filtering. -
name:
string()
Title:
NameEnglish-friendly field name (may be same as displayName). -
readOnly:
boolean()
Title:
ReadOnlyTrue if this field is not modifiable via write operations (POST, PUT, PATCH). -
searchable:
boolean()
Title:
SearchableIndicates if this field can be queried via standard filter/search mechanism. -
sortable:
boolean()
Title:
SortableIndicates if result sets can be sorted on this field. -
variableName:
string()
Title:
Variable NameThe variable or field name as used in JSON or on the backing resource object.
Examples
The following example shows how to retrieve metadata describing attributes available for the Assets resource by submitting a GET request to the REST resource using cURL. For more information about cURL, see Use cURL.
curl -X GET -H "Authorization: Bearer <token>" -H "Content-type: application/json" -H "Accept: application/json" https://sitename.oracle.com/rest/v19/assets/metadata
Response Body Sample
[{
"variableName": "assetKey",
"displayName": "Asset Key",
"name": "Asset Key",
"description": "Unique key identifier for the asset.",
"dataType": "string",
"searchable": true,
"sortable": true,
"indexed": true,
"keyword": true,
"readonly": false
}, {
"variableName": "quantity",
"displayName": "Quantity",
"name": "Quantity",
"description": "The number of units for the asset.",
"dataType": "integer",
"searchable": true,
"sortable": true,
"indexed": false,
"keyword": false,
"readonly": false
}, {
"variableName": "startDate",
"displayName": "Start Date",
"name": "Start Date",
"description": "The effective start date of the asset.",
"dataType": "date",
"searchable": true,
"sortable": true,
"indexed": false,
"keyword": false,
"readonly": false
}
]