Re: [Specifications] Add Use Case: Creating events indirectly (ie. with PUT)

Review status: 0 of 1 files reviewed at latest revision, 15 unresolved discussions.

---

*[drafts/use-cases/5.1.creating-new-event-indirectly.md, line 64 at r1](https://reviewable.io:443/reviews/hydracg/specifications/143#-KxYcL7VkgLlvZsRJlA4:-Kxdji16j5XaB6ALBYXW:b-ltnt7d) ([raw file](https://github.com/hydracg/specifications/blob/f03e3028e6417adf2767a44c0c854b4af3b5fb4d/drafts/use-cases/5.1.creating-new-event-indirectly.md#L64)):*
> I can't really think of situation where for collection we would have a resource and not a template for purpose of creating new members

Like I described in another comment -> server can mint id's for new resources so that creating new members is idempotent

``` json
{
  "@id": "/comment/aaa-bbb-ccc",
  "hydra:add": {
    "@id": "/comment/xxx-yyy-zzz",
    "hydra:operation": [{
      "method": "PUT"
    }]
  }
}
```

The `xxx-yyy-zzz` would be random GUID every time. Transient unless PUT. 

---

*[drafts/use-cases/5.1.creating-new-event-indirectly.md, line 72 at r1](https://reviewable.io:443/reviews/hydracg/specifications/143#-KxchCDgCDQQ4nzkMnf4:-KxdkpvRXBKwhnG3lyvA:b-cpqygg) ([raw file](https://github.com/hydracg/specifications/blob/f03e3028e6417adf2767a44c0c854b4af3b5fb4d/drafts/use-cases/5.1.creating-new-event-indirectly.md#L72)):*
<details><summary><i>Previously, elf-pavlik (elf Pavlik) wrote…</i></summary><blockquote>

I think we shouldn't require `property` from `mapping` of `IriTemplate`. Still we may want to provide data type somehow, also I would see a need later to inform client that it shoudl generate universal identifier UUID, CUID etc.
</blockquote></details>

@lanthaler this must have been discussed already. do you recall any GitHub issue touching mapping property?

---


*Comments from [Reviewable](https://reviewable.io:443/reviews/hydracg/specifications/143)*
<!-- Sent from Reviewable.io -->


-- 
GitHub Notification of comment by tpluscode
Please view or discuss this issue at https://github.com/HydraCG/Specifications/pull/143#issuecomment-340290608 using your GitHub account

Received on Sunday, 29 October 2017 20:13:56 UTC