REST API: GET miniview

Warning: You are viewing the documentation for the old REST API. We recommend using version 2 of the REST API.

A method to request all metadata from a selection in a collection (miniview). This method does not support parameters. It is called by sending an HTTP GET request to the following URL:$id?access_token=xxxx

In this, $id needs to be replaced by the numerical identifier or the name of the collection you wish to request the miniselections for.

Available parameters

There are no available parameters for this method.

Returned fields

  • ID: unique numerical identifier
  • name: name of the selection
  • description: description of the selection
  • parent-type: type of the parent: view or collection
  • parent-id: id of the database or view
  • collection: id of the collection this miniselection belongs to

PHP example

The following example demonstrates how to use this method:

// dependencies

// change this into your access token
$api = new CopernicaRestApi("your-access-token");

// do the call, and print result

The example above requires the CopernicaRestApi class.

More information