yada

Srikanth Seshadri 2020-01-18T06:48:05.000300Z

I have basic question about yada

Srikanth Seshadri 2020-01-18T06:48:10.000500Z

(yada/resource {:produces {:media-type "text/plain"}
                  :consumes {:media-type "text/plain"}
                  :methods  {:post
                             {:response (fn [ctx] (:body ctx))}}})

Srikanth Seshadri 2020-01-18T06:48:25.001Z

i would like to consume a message of any type…

Srikanth Seshadri 2020-01-18T06:48:46.001500Z

its a opaque packet for me…

Srikanth Seshadri 2020-01-18T06:49:49.002Z

so i do not want to list all the possible types…

Srikanth Seshadri 2020-01-18T06:50:39.003Z

really i want to say consumes :media-type "*/*"

Srikanth Seshadri 2020-01-18T06:51:04.003500Z

but the process request body does a contains match

Srikanth Seshadri 2020-01-18T06:51:48.004300Z

which results in an “Unsupported Media Type” error

Srikanth Seshadri 2020-01-18T06:52:04.004800Z

any suggestions on whats wrong with my approach

dominicm 2020-01-18T07:31:46.005200Z

One approach is to remove that interceptor