How return array of arrays (2D, kind of matrix)

38 views
Skip to first unread message

Daouda Traore

unread,
Nov 27, 2018, 9:32:56 AM11/27/18
to Swagger
Hey guys, i am building a restful api with compojure-api and using swagger. i have to return array of arrays (2D, kind of matrix) as result a http request but i can figure out achieve that with swagger. Can anyone help me please?

(POST "/grid" []
        :return vector   <--------------------- how to set as return type an array of arrays (2D, kind of matrix)
        :body [grid vector]
        :summary "Create an empty grid"
        (ok grid))


Reply all
Reply to author
Forward
0 new messages