This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-06-22
Channels
- # beginners (8)
- # boot (41)
- # cider (1)
- # cljsrn (2)
- # clojure (91)
- # clojure-dev (34)
- # clojure-gamedev (3)
- # clojure-germany (6)
- # clojure-greece (324)
- # clojure-japan (2)
- # clojure-miami (4)
- # clojure-nl (6)
- # clojure-quebec (3)
- # clojure-russia (26)
- # clojure-spec (50)
- # clojure-uk (19)
- # clojurescript (147)
- # core-async (5)
- # css (2)
- # cursive (15)
- # datascript (7)
- # datomic (6)
- # hoplon (1)
- # jobs (4)
- # lein-figwheel (17)
- # off-topic (4)
- # om (52)
- # om-next (10)
- # onyx (1)
- # planck (19)
- # proton (1)
- # re-frame (81)
- # reagent (61)
- # spacemacs (1)
- # specter (46)
- # spirituality-ethics (7)
- # untangled (7)
- # yada (17)
@malcolmsparks: I noticed yesterday that PUT seems to not be producing 200 responses
https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.6 states that 200 is a valid response to a PUT
@malcolmsparks: I just ran into the same problem as discussed at https://groups.google.com/forum/#!topic/yada-discuss/_ftenyL5nh0 The explanation in that post cleared up a couple misconceptions and confusion I had from looking at the various examples and docs, including trying to understand what edge was doing differently with the routing. Could that type of detail be added to the manual as part of the Hello Swagger section?
I'm currently working on that section, rewritten around edge. Will push soon.
@imre it says 204 or 200. What do you think the default should be? I went with 204.
@malcolmsparks I would make it conditional - if the response has a body already, 200. if not, 204
Ah, great idea!
How simple. How could I have missed that.
@malcolmsparks: I tried the phonebook via swagger: no matter what I do, the response is { "error": "no response from server" }
index.js:24 Mixed Content: The page at 'https://yada.juxt.pro/swagger-ui/phonebook-swagger.html?url=/phonebook-api/swagger.json' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://yada-phonebook.juxt.pro/phonebook?q=1'. This request has been blocked; the content must be served over HTTPS.
@jsyrjala: thanks - i'm currently migrating the phonebook over to https://github.com/juxt/edge
I'll make sure it works with http (it might need to disable the security headers)