Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »


The /entity resource provides access to entities that have been configured on Weave. An entity is a grouping of items that are searchable and reportable in Weave.


Related reading


Top level resource: services/v1/entity


Sub resources

1. /entity/list

Provides a listing of all entities configured and accessible to the user.


Example 1 - Get a list of entities

curl -X GET --header 'Accept: application/json' 'http://localhost:8080/weave/services/v1/entity/list'


Result:

{
  "count": 4,
  "entities": [
    {
      "size": 0,
      "active": true,
      "id": "state_significant_dev_sites",
      "label": "State Significant Dev Sites",
      "published": true,
      "spatial": true
    },
    {
      "size": 0,
      "active": false,
      "id": "landscaped_area",
      "label": "Landscaped Area",
      "published": true,
      "spatial": false
    },
    {
      "size": 0,
      "active": false,
      "id": "environmental_cons_area",
      "label": "Environmental Cons Area",
      "published": true,
      "spatial": true
    },
    {
      "size": 0,
      "active": false,
      "id": "new_local_government_area",
      "label": "Proclamation of Councils",
      "published": true,
      "spatial": false
    }]
}

  • No labels