HydraCG / Specifications

Specifications created by the Hydra W3C Community Group
Other
139 stars 26 forks source link

fix reference from Collection to ApiDocumentation #252

Open soyuka opened 1 week ago

soyuka commented 1 week ago

The change is as followed on Example 28:

{
  "@context": "http://www.w3.org/ns/hydra/context.jsonld",
  "@id": "http://api.example.com/api-documentation",
  "@type": "ApiDocumentation",
  "api:find": {
    "supportedOperation": {
      "@type": "SupportedOperation",
      "method": "POST"
    }
  }
}

{
  "@context": "http://www.w3.org/ns/hydra/context.jsonld",
  "@id": "http://api.example.com/issues",
  "@type": "Collection",
-  "api:search": {
+  "api:find": {
    "@type": "IriTemplate",
    "template": "/issues?find={name}",
    "mapping": {...}
  }
}

As I don't think it makes sense otherwise.