Proper use of Hydra IRI Template

I'm in the process of trying to describe a service using Hydra and was having some trouble trying to express an IriTemplate for a given operation. I'm trying to describe a GET request with the following URI template and it's mapping:

http://uri-templates.herokuapp.com/uri-template{?template}

My initial version used JSON Hyper schema like this:

{
	"href": "/uri-template",
	"rel": "about",
	"method": "GET",
	"enctype": "application/www-form-urlencoded",
	"mediaType": "application/json;profile='/schema/uriTemplateStructure'",
	"schema": {
		"type": "object",
		"properties": {
			"template": { "type": "string" }
		},
		"required": [ "template" ]
	}
}

What I've got so far is this with Hydra is this:

{
    "@type": "hydra:IriTemplate",
    "template": {
        "template": "http://uri-templates.herokuapp.com/uri-template{?template}",
        "mappings": [
            {
                "@type": "IriTemplateMapping",
                "variable": "template",
                "property": "app:template",
                "required": true
            }
        ]
    }
}

I don't feel I've got it right. Any pointers?

Ryan-

Received on Wednesday, 2 October 2013 14:29:48 UTC