7.2

Table Of Contents
Parameter Description
Links Species an array of link objects, each of which contains the
following parts:
n
rel
Species the name of the link.
n
Self refers to the object that was returned or
requested. This parameter does not appear when
you query a single prole.
n
First, Previous, Next, and Last refer to
corresponding pages of pageable lists.
n
Species the application or service that determines
the other names.
n
href
Species the URL that produces the result.
Content
n
id: The unique identier for the content. This is also
used as a folder name to group similar content
artifacts.
n
name: The name of a given content type provided in
localized message key form.
n
description: Additional information describing the
content type.
n
classId: The class identier associated with a content
type.
n
serviceTypeId: The service ID for the given content
type.
Metadata Species the following paging-related data:
n
Size: Species the maximum number of rows per page.
n
totalElement: Species the number of rows returned.
This parameter is not output when you query for a
single prole.
n
totalPages: Species the total number of pages of data
available.
n
Number: Species the current page number.
n
Oset: Species the number of rows skipped.
Example Curl Command
The following example command returns a list of supported content types.
$curl --insecure -s -H "Content-Type: application/json" -H "Authorization: Bearer $token"
https://$host/content-management-service/api/provider/contenttypes
Example: JSON Output
The following JSON output is returned based on the command input.
{
"links": [
],
"content": [
{
"@type": "ContentType",
"id": "property-group",
"name": "Property Group",
"description": "Content type corresponding to the property groups.",
"classId": "PropertyGroup",
Chapter 3 REST API Use Cases
VMware, Inc. 337