REST API - Overview of the cache resources

Introduction

In this article, you will find examples of the provided resource usage for different operations. For each analyzed scenario, we provide an example of the data that you are expected to provide to the API, as well as an example response. Please read the page covering the category API resource if you haven't yet, to get more information about the category resource and the data it provides.

These examples assume you are using the provided demo API client.

Cache Resources

Resources
HTTP
$cacheResource->delete('all'); DELETE api/caches/
Deletes all caches
$cacheResource->delete('http'); DELETE api/caches/http
Deletes the HTTP cache
$cacheResource->delete('template'); DELETE api/caches/template
Deletes the template cache
$cacheResource->getList(); GET api/caches/
Gets the cache informatinos
$cacheResource->getOne('http'); GET api/caches/http
Gets the HTTP cache informations
$cacheResource->getOne('template'); GET api/caches/template
Gets the template cache indformations