aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/views/help/api.rhtml8
-rw-r--r--config/routes.rb2
2 files changed, 9 insertions, 1 deletions
diff --git a/app/views/help/api.rhtml b/app/views/help/api.rhtml
index 3c4b134ad..46c12b9ec 100644
--- a/app/views/help/api.rhtml
+++ b/app/views/help/api.rhtml
@@ -60,6 +60,14 @@ information about objects in a structured form. Find them by:
</p>
<hr>
+<h2> 4. Spreadsheet of all authorities </h2>
+
+<p>
+A spreadsheet file listing every body in WhatDoTheyKnow is available:
+<%= link_to "all-authorities.csv", all_public_bodies_csv_url() %>
+</p>
+
+<hr>
<p>Please <a href="/help/contact">contact us</a> if you need an API feature that isn't there yet. It's
very much a work in progress, and we do add things when people ask us to.</p>
diff --git a/config/routes.rb b/config/routes.rb
index 4cee8059b..162d5c4ab 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -82,10 +82,10 @@ ActionController::Routing::Routes.draw do |map|
body.list_public_bodies "/body", :action => 'list'
body.list_public_bodies "/body/list/:tag", :action => 'list'
body.list_public_bodies_redirect "/local/:tag", :action => 'list_redirect'
+ body.all_public_bodies_csv "/body/all-authorities.csv", :action => 'list_all_csv'
body.show_public_body "/body/:url_name", :action => 'show'
body.show_public_body "/body/:url_name.:format", :action => 'show'
body.view_public_body_email "/body/:url_name/view_email", :action => 'view_email'
- body.all_public_bodies_csv "/body/all-authorities.csv", :action => 'list_all_csv'
end
map.with_options :controller => 'comment' do |comment|