|
@prefix hydra: <http://www.w3.org/ns/hydra/core#> . |
|
@prefix http: <http://www.w3.org/2006/http#> . |
|
@prefix cookieService: <http://services.gannett.com/vocab/cookieService#> . |
|
|
|
<./global-cookie> |
|
cookieService:globalCookie <./global-cookie> |
|
|
|
cookieService:globalCookie |
|
rdfs:type hydra:Link ; |
|
rdfs:comment "The global cookie resource; use this resource to retrieve, set and delete global cookies. |
|
|
|
This resource supports the '_method' query parameter for non-RESTful clients." |
|
|
|
hydra:supportedOperation [ |
|
rdfs:type cookieService:ReadCookies ; |
|
hydra:expects cookieService:CookiesForm |
|
] ; |
|
|
|
hydra:supportedOperation [ |
|
rdfs:type cookieService:SetCookies ; |
|
hydra:method "PUT" |
|
hydra:expects cookieService:CookiesForm |
|
] ; |
|
|
|
hydra:supportedOperation [ |
|
rdfs:type cookieService:DeleteCookies ; |
|
hydra:method "DELETE" |
|
hydra:expects cookieService:CookiesForm |
|
hydra:returns cookieService:CookieResponse |
|
] ; |
|
|
|
# This should probably be part of a standard vocab |
|
cookieService:method |
|
rdfs:type rdf:Property |
|
rdfs:comment "Used to convert a GET/POST request to a PUT, POST or DELETE request. This is a hack for clients that don't |
|
support HTTP methods beyond GET and POST." |
|
|
|
|
|
cookieService:CookiesForm |
|
rdfs:type hydra:Class ; |
|
rdfs:comment "The cookie form can be submitted with " |
|
|
|
hydra:supportedProperty [ |
|
rdfs:type hydra:SupportedProperty |
|
rdfs:comment "The _method hack for non-RESTful clients" |
|
hydra:property cookieService:method |
|
hydra:variable "_method" |
|
] ; |
|
|
|
hydra:supportedProperty [ |
|
rdfs:type hydra:SupportedProperty ; |
|
rdfs:comment "URL to redirect to" ; |
|
hydra:property http:location ; |
|
hydra:variable "location" |
|
] ; |
|
|
|
hydra:supportedProperty [ |
|
rdfs:type hydra:SupportedProperty ; |
|
rdfs:comment "The content type to return; supported content types are 'text/html' and 'application/json'" ; |
|
hydra:property http:accept ; |
|
hydra:variable "accept" |
|
] . |
|
|
|
cookieService:cookie |
|
rdfs:type hydra:Class |
|
hydra:supportedProperty [ |
|
rdfs:type hydra:SupportedProperty |
|
hydra:property rdf:label |
|
rdfs:comment "Use this |
|
] |
|
cookieService:CookieResponse |
|
rdfs:type hydra:Class |
|
rdfs:type http:Response |
|
rdfs:comment "The global cookie response" |
|
hydra:supportedProperty [ |
|
rdfs:type hydra:SupportedProperty; |
|
hydra:property cookieService:cookie |
|
hydra:variable "cookie" |
|
] |