greptilian logo

IRC log for #rest, 2016-11-24

https://trygvis.io/rest-wiki/

| Channels | #rest index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

All times shown according to UTC.

Time S Nick Message
05:07 b4rti joined #rest
05:37 wsieroci joined #rest
09:48 tilerendering joined #rest
09:48 tilerendering hey
09:48 tilerendering anybody into hypermedia present atm?
13:12 timg__ joined #rest
14:03 _ollie joined #rest
14:22 ghostlight joined #rest
14:36 ShekharReddy joined #rest
15:53 wsieroci joined #rest
16:09 tilerendering joined #rest
16:10 tilerendering hi
16:11 tilerendering I have REST design problem: I want to support templated creation and making a copy of an existing object possible. my approach would be: use "POST" and specify additional semantics of the POST in the payload of the request: like : "duplicate" or "based on template 123". also I d like to know where to place actions which can not be associated to one resource in particular
16:13 tilerendering do you know of any advice or web resource of documentation I can look up for that ? the focus is on actions. actions that can not be linked to only one resource and which thus would have to be modeled as resource themselves: the question is where to place them
16:16 fuzzyhorns joined #rest
16:22 Tomatosoup- joined #rest
16:23 fuzzyhorns joined #rest
16:24 timg__ joined #rest
16:37 trygvis tilerendering: normally your hypermedia would specify that, but I don't know of any hypermedias that allow that specific operations
16:39 asdf collection+json has the concept of a template, but it's the client's responsibility to use the template
16:46 tilerendering I wonder whether it s better to have something like a POST on /articles/{id} for a copy or whether it would be better to specify that in the payload with an additional field, like "tweak_operation":"copy"
16:47 tilerendering same with templates: POST to /article_templates/{id} or payload in POST to /articles
17:12 trygvis the body should be self contained so if the new resource is a copy/based on another resource it should be said so in the body
17:14 tilerendering ha! thanks.
17:14 carcrash joined #rest
17:16 carcrash When encountering an error state such as a user attempting to access a resource they are not authorized to, is sending an http status of unauthorized sufficient? or should the reply have a body with something like '{"error":"not authorized"}'?
17:27 trygvis both
19:52 Alibaba joined #rest
19:52 Alibaba Hello
19:54 Alibaba Someone have already use the BMC API. I hadn't problem with the Commvault Simpana API but I don't arrive to use the BMC API
19:54 Alibaba 415 error, I use a bad syntax
21:21 _ollie joined #rest
21:42 carcrash trygvis, thanks for the reply!

| Channels | #rest index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

https://trygvis.io/rest-wiki/