[Specifications] Pull Request: fix reference from Collection to ApiDocumentation

soyuka has just submitted a new pull request for https://github.com/HydraCG/Specifications:

== fix reference from Collection to ApiDocumentation ==
The change is as followed on Example 28: 

```diff
{
  "@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.

See https://github.com/HydraCG/Specifications/pull/252


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 23 October 2024 09:12:35 UTC