Getting the Content Type Count

Getting the Content Type Count

Using the Administration API in combination with master key authentication you can request the total count of content types objects from your code.

To get the count of all content types in an application use the /Types/_count endpoint. An X-Everlive-Filter header can also be given to filter the request.

//Ajax request using jQuery
$.ajax({
    url: 'https://api.everlive.com/v1/Metadata/Applications/your-app-id/Types/_count',
    type: "GET",
    headers:
    {
        "Authorization" : "Masterkey your-master-key"
    },
    success: function(data){
        alert(JSON.stringify(data));
    },
    error: function(error){
        alert(JSON.stringify(error));
    }
})
Request:
    GET https://api.everlive.com/v1/Metadata/Applications/your-app-id/Types/_count
Headers:
    Authorization  Masterkey your-master-key
Response:
    Status: 200 OK
    Content-Type: application/json

See Also


Start a free trial Request a demo
Contact us: +1-888-365-2779
sales@telerik.com
Copyright © 2016-2017, Progress Software Corporation and/or its subsidiaries or affiliates. All rights reserved.