Skip to content

URL scheme

perrygeo edited this page Mar 30, 2012 · 5 revisions

Pages

  • / (home)
  • /properties
  • /stands
  • /analysis

REST API

The REST API can largely be provided by feature links; see http://murdock.labs.ecotrust.org/features/[user]/workspace-owner.json

Of particular note are the multi generic links to the geojson representation of both stands and properties:

  "generic-links": [
    {
      "models": ["trees_stand", "trees_forestproperty"], 
      "uri-template": "/features/generic-links/links/geojson/{uid+}/", 
      "select": "multiple single", 
      "rel": "alternate", 
      "title": "GeoJSON"
    }, 

The alternate link for ForestProperty to grab all Stands associated with a given ForestProperty

        "alternate": [
          {
            "uri-template": "/features/forestproperty/links/property-stands-geojson/{uid}/", 
            "select": "single", 
            "rel": "alternate", 
            "title": "Property Stands GeoJSON"
          }
        ], 

An URL to get all the ForestProperties associated with the User. User is determined through the django session. This one is not in the workspace doc as it is associated with the User which is not technically a feature class.

/trees/user_property_list