 
 (defn render-board
   "Create a JSON representation of the board for the REST API"
-  [org-slug board access-level params]
-  (let [rep-props (if (or (= :author access-level) (= :viemer access-level))
+  [org board ctx params]
+  (let [access-level (:access-level ctx)
+        rep-props (if (or (= :author access-level) (= :viemer access-level))
                       representation-props
-                      public-representation-props)]
+                      public-representation-props)
+        fixed-entries (map #(render-entry-for-collection org board % access-level (-> ctx :user :user-id))
+                       (:entries board))]
     (json/generate-string
       (-> board
-        (board-links org-slug access-level params)
-        (select-keys rep-props))
+        (board-links (:slug org) access-level params)
+        (select-keys rep-props)
+        (assoc :entries fixed-entries))
       {:pretty config/pretty?})))
  {:user-id user-id
   :links (if (= access-level :author) [(remove-viewer-link org-slug slug user-id)] [])})

(defn render-board-for-collection
  "Create a map of the board for use in a collection in the REST API"
  ([org-slug board] (render-board-for-collection org-slug board 0))

        first-activity-date (when activity? (or (:published-at first-activity) (:created-at first-activity)))
        next? (or (= (:direction data) :previous)
                  (= (:next-count data) config/default-activity-limit))
        next-url (when next? (board-url/url org board {:start last-activity-date :direction :before}))
        next-link (when next-url (hateoas/link-map "next" hateoas/GET next-url {:accept mt/board-media-type}))
        prior? (and start?
                    (or (= (:direction data) :next)
                        (= (:previous-count data) config/default-activity-limit)))
        prior-url (when prior? (board-url/url org board {:start first-activity-date :direction :after}))
        prior-link (when prior-url (hateoas/link-map "previous" hateoas/GET prior-url {:accept mt/board-media-type}))]
    (remove nil? [next-link prior-link])))

