        (->> (api/item-groups form)
             (sort-by :item-group/rank)
             (render-embedded-item-groups (timeout 100)))}})
+    (ring-resp/not-found
+     {:links {:up {:href "/forms"}}
+      :error "Form not found."})))
+
+(defn form-bare [db id]
+  (if-let [form (api/form db id)]
+    (ring-resp/response
+     {:id (:form/id form)
+      :alias (:form/alias form)
+      :name (:name form)
+      :type :form
+      :links
+      {:up {:href "/forms"}
+       :self {:href (str "/forms/" id)}}})
     (ring-resp/not-found
      {:links {:up {:href "/forms"}}
       :error "Form not found."})))

    :links
    {:self {:href "/"}
     :lens/all-study-events {:href "/study-events"}
     :lens/all-forms {:href "/forms"}}
    :forms
    {:lens/query
     {:action "/query"
      :method "GET"
      :title "Query"


   (GET "/forms/:id" [db id] (form db id))

   (GET "/find-form" [db id] (form-bare db id))

   (GET "/forms/:id/count" [db id] (form-count db id))

   (POST "/forms/:id/search-item-groups" [db id query]
