There is an API in DataRillCMS, which allows you to connect more complex apps or websites. Whith its help you can retreive data from CMS. To do this, send GET requests via:

http://example.com/api/app_access_code/method/params

where, example.com - domain, where DataRillCMS is running, app_access_code - app API key from DataRillCMS (you can find out how to get the app API key in the article "Adding app") method - method API, which you want to use and params - arguments for this method. The list of methods and examples of the results of their implementation are given in the table below:

API запрос Описание Значение в DataRillCMS Результат
/api/.../single_val/brandname Gets the value from post with a single_value schema. Loremi { "brandname": "Loremi" }
/api/.../group_val/brandname&description Allows you to get the values of several posts with a single_value schema in one request Loremi; A beautiful brand { "brandname": "Loremi", "description": "A beautiful brand" }
/api/.../multi_val/menu_items Returns all posts of the specified schema Post №0 => text:Main; url=/; Post №1 => text:About; url=/about; {"menu_items":[{"post_id":0,"text":"Main","url":"/"},{"post_id":1,"text":"About","url":"/about"}]}
/api/.../get_val/menu_items/0 Returns specified post of the specified schema Post №0 => text:Main; url=/; Post №1 => text:About; url=/about; {"menu_items":{"text":"Main","url":"/"}}
/api/.../get_count/menu_items Returns the id of the last post --- "1"