About Liquid Content™ API Responses to GET Requests
A Liquid Content API GET request can return either a JSON structure stored the body of the response or an error.
- the parameters of the GET request
- the number of results returned
- whether the results are content types/items
- the content type of the content item
GET Parameters and Result Count
- If none was found, the server returns a 404 message.
- If the content type/item was found, the JSON structure contains information about the content type/item.
{ "id": "...", ... },
- If none was found, the documents array is empty.
{ "documents": [], "totalResultCount": 0 }
- If one or more content types/items were found, the documents array contains one node for each content type/item in the results.
{ "documents": [ { "id": "...", ... }, { "id": "...", ... } ], "totalResultCount": 2 }
https://dnnapi.com/content/api/ContentItems?maxitems=500
Content Type Versus Content Item
Content type nodes differ from content item nodes as follows:
Content Type | Content Item |
---|---|
id name | |
icon | slug
The portion of the URL that uniquely identifies the content type for retrieval. |
description | |
contentTypeId |
|
enabled
If |
alreadyPublished |
fields
Each field node includes the field type, the default value, the validation criteria, and the field's position in the form. |
details
The values for the fields. If a field is a reference to another content type, |
currentVersion | |
numberOfItems
The number of content items of this content type. numberOfVisualizersThe number of visualizers associated with this content type. |
usages
The number of times that a content item is used in other content items, in pages, or in apps. Note: This is not the number of hits on the content item.
|
createdAt |
|
isSystem
If |
stateId
A code that represents the current workflow state. If 0, the item is in draft (unpublished) mode. If 1, the item is published. tagsThe list of tags associated with the content item. clientReferenceId[string] An external identifier used to synchronize the content item with clients, specifically the HTMLPro module in Evoq. |
properties | seoSettings |
Content Type of the Content Item
The details node of the content item varies based on the defined fields of its content type.
Example: Suppose the content type definition contains the following two fields. (The definitions are simplified for clarity.)
Content Type Definition | Content Item Definition |
---|---|
|
|
|
|
|
|
|
Dates and times are returned as Unix time.
|
|
|
|
|
Comments
0 comments
Please sign in to leave a comment.