Getting the Field Count

Getting the Field Count

Using the Administration API you can request the count of all fields contained in a content type's structure.

To get only the count of the content type fields use the following code snippet.

//Ajax request using jQuery
$.ajax({
    url: 'https://api.everlive.com/v1/Metadata/Applications/your-app-id/Types/type-id/Fields/_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/type-id/Fields/_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.