aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/api_controller.rb
Commit message (Collapse)AuthorAgeLines
* Handle a request with no user in the show request function0.16.0.5hotfix/0.16.0.5Louise Crow2014-01-28-1/+4
|
* Don't specify format in template name.Louise Crow2013-11-12-1/+1
| | | | | In render calls, that's now deprecated in favour of using the :formats option.
* Set the calculated state on external requests.Louise Crow2013-08-15-0/+2
| | | | Set to 'waiting_response' on creation, to match the displayed state.
* Merge remote-tracking branch 'mysociety/develop' into rails-3-developHenare Degan2013-03-14-2/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: Gemfile Gemfile.lock app/controllers/admin_request_controller.rb app/controllers/admin_track_controller.rb app/controllers/request_controller.rb app/controllers/services_controller.rb app/helpers/link_to_helper.rb app/mailers/request_mailer.rb app/models/application_mailer.rb app/models/info_request.rb app/views/admin_censor_rule/edit.html.erb app/views/admin_censor_rule/new.html.erb app/views/admin_public_body/_form.html.erb app/views/admin_public_body/_locale_selector.html.erb app/views/admin_public_body/_one_list.html.erb app/views/admin_public_body/edit.html.erb app/views/admin_public_body/list.html.erb app/views/admin_public_body/new.html.erb app/views/admin_request/_incoming_message_actions.html.erb app/views/admin_request/edit.html.erb app/views/admin_request/edit_comment.html.erb app/views/admin_request/edit_outgoing.html.erb app/views/admin_request/list.html.erb app/views/admin_request/list_old_unclassified.html.erb app/views/admin_request/show.html.erb app/views/admin_track/_some_tracks.html.erb app/views/admin_track/list.html.erb app/views/admin_user/edit.html.erb app/views/admin_user/list.html.erb app/views/admin_user/show.html.erb app/views/general/_footer.html.erb app/views/general/exception_caught.html.erb app/views/help/contact.html.erb app/views/layouts/default.html.erb app/views/public_body/_alphabet.html.erb app/views/request/_request_listing_single.html.erb app/views/request/_sidebar.html.erb app/views/request/new.html.erb app/views/request/show.html.erb app/views/request_mailer/external_response.rhtml app/views/request_mailer/fake_response.rhtml config/environment.rb config/environments/production.rb config/routes.rb spec/controllers/admin_censor_rule_controller_spec.rb spec/controllers/request_controller_spec.rb spec/controllers/track_controller_spec.rb spec/helpers/link_to_helper_spec.rb spec/mailers/request_mailer_spec.rb spec/models/info_request_spec.rb spec/spec_helper.rb spec/views/public_body/show.html.erb_spec.rb spec/views/request/show.html.erb_spec.rb vendor/plugins/rails_xss/lib/rails_xss/erubis.rb
| * Stop using main_url to generate absolute urls for the main siteMatthew Landauer2013-02-15-2/+2
| |
| * Rename helper methodMatthew Landauer2013-02-15-1/+1
| |
| * Rename helper methodMatthew Landauer2013-02-15-1/+1
| |
* | Rename Configuration class to avoid conflict with ActiveSupport::ConfigurableHenare Degan2013-03-03-1/+1
| |
* | Remove Tmail and use the Mail gem under Ruby 1.8.7 as wellHenare Degan2013-02-27-22/+3
| |
* | create_ is deprecatedHenare Degan2013-02-25-1/+1
| |
* | Directly construct tmail object from body and attachments. Ugh. Because ↵Matthew Landauer2013-01-31-2/+22
| | | | | | | | actionmailer uses mail under the hood
* | Time doesn't need to be converted from string to time anymoreMatthew Landauer2013-01-28-7/+1
|/
* The absence of an API key in an API request should be a permission denied ↵Louise Crow2012-12-03-36/+36
| | | | error, so that notification emails don't get sent.
* Extract configuration with defaults into one moduleMatthew Landauer2012-09-25-1/+1
|
* Add a since_date parameter to the API feedRobin Houston2012-09-10-11/+35
|
* API errors should be JSONRobin Houston2012-09-04-3/+10
| | | | | | | | | | The API was returning Rails (HTML) errors for certain error conditions, which is inconvenient because it makes it difficult for the client to extract the error message. This patch changes add_correspondence to return JSON errors (still with suitable HTTP status codes) for two common exceptional conditions, and adds tests.
* Revert "Revert "Revert "In the API, when parsing posted responses, assume ↵Robin Houston2012-08-01-9/+2
| | | | | | all multipart mail parts that are Tempfiles are attachments""" This reverts commit 49ff1a1c0304cd292d3eae80dc0b91b2f83727b9.
* Revert "Revert "In the API, when parsing posted responses, assume all ↵Seb Bacon2012-07-17-2/+9
| | | | | | multipart mail parts that are Tempfiles are attachments"" This reverts commit d4a700da1760fc2ba09cf19613a995569e4965ea.
* Merge branch 'feature/public-body-api-2a' into developRobin Houston2012-07-16-2/+3
|\
| * Revert "In the API, when parsing posted responses, assume all multipart mail ↵Robin Houston2012-07-16-9/+2
| | | | | | | | | | | | | | | | | | | | parts that are Tempfiles are attachments" This change makes the tests fail, I think, and doesn’t have (IMHO) a desperately strong rationale, so let’s try it without for now. This reverts commit 4490482cedf362390b25efe453232ac1b7dfce99.
| * In the API, when parsing posted responses, assume all multipart mail parts ↵Seb Bacon2012-07-11-2/+9
| | | | | | | | that are Tempfiles are attachments
| * Calls to API that are expected to return JSON are always expected to return ↵Seb Bacon2012-07-09-2/+3
| | | | | | | | something, even when there are no errors.
* | Include request_id as well as event_id in the JSONRobin Houston2012-07-05-0/+1
|/
* JSON new events feedRobin Houston2012-07-04-21/+48
|
* Atom feed of request eventsRobin Houston2012-07-04-5/+15
| | | | | | | | | | We need not only new requests, but new outgoing correspondence of any sort. The idea is that this feed will contain any event that would have triggered an email to be sent to the public body, so can be used as an alternative, equivalent way to stay up-to-date with happenings on WDTK (or the Alaveteli installation of choice).
* Atom feed approximately working (?)Robin Houston2012-07-04-1/+1
|
* WIP new requests feedRobin Houston2012-07-04-0/+14
|
* API controller tests all passRobin Houston2012-06-18-3/+3
|
* WIP APIRobin Houston2012-06-07-28/+8
|
* WIP attachment uploading via APIRobin Houston2012-06-06-1/+21
|
* API: Some testing of show_requestRobin Houston2012-06-06-0/+1
|
* API: we can add a response to a requestRobin Houston2012-06-06-0/+81
|
* more commentsRobin Houston2012-06-06-0/+3
|
* Just include all the error messagesRobin Houston2012-06-06-5/+1
| | | | I can’t see any way the error could be triggered by the caller, anyway.
* API create_request method is workingRobin Houston2012-06-06-18/+40
| | | | | | "when using the API", it "should create a new request from a POST", AND IT DOES!
* Work in progress on getting new APIController test to pass. They don't, yet!Seb Bacon2012-06-06-1/+21
|
* Reorder methodsRobin Houston2012-06-06-4/+4
|
* Authenticated APIRobin Houston2012-06-06-0/+46
An authenticated API for public bodies. So far just one method is implemented, which gives the details of a request in JSON format.