Re: [Specifications] CreateAction with HTTP PUT

I'm trying to implement that case and I experience serious issues related on how to do this.
I was thinking about a situation where I have two collections of _events_ of type `schema:Event` and _people_ of type `schema:Person`. Every single `schema:Person` can have a `schema:perfomerIn` relation with a event,
I see no real possibility of implementing a situation when a client want's to PUT a `schema:Event` to `/api/people/1/perfomerIn` without instructing it on how to create a proper URL, which would be in this case `/api/people/1/perfomerIn/2` (I wanted to `PUT` `/api/events/2` to create a `</api/people/1> schema:perfomerIn /api/events/1`.
Indeed server could provide all possible `PUT` URLs of events, but this is not a good approach. It's fine with closed set of values, but open sets are no good in that situation.
Any ideas?

-- 
GitHub Notification of comment by alien-mcl
Please view or discuss this issue at https://github.com/HydraCG/Specifications/issues/141#issuecomment-336652438 using your GitHub account

Received on Saturday, 14 October 2017 17:59:01 UTC