aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers/api_controller_spec.rb
Commit message (Collapse)AuthorAgeLines
* add magic encoding comment to specsJames McKinney2012-10-10-1/+2
|
* Add a since_date parameter to the API feedRobin Houston2012-09-10-0/+15
|
* Update other testsRobin Houston2012-09-07-20/+25
| | | | Update the other API tests to take account of the changed error behaviour.
* API errors should be JSONRobin Houston2012-09-04-0/+32
| | | | | | | | | | 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.
* JSON new events feedRobin Houston2012-07-04-1/+39
|
* Atom feed of request eventsRobin Houston2012-07-04-0/+16
| | | | | | | | | | 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).
* API controller tests all passRobin Houston2012-06-18-3/+15
|
* WIP attachment uploading via APIRobin Houston2012-06-06-4/+20
|
* Test for attaching a file via the APIRobin Houston2012-06-06-0/+36
| | | | Not yet implemented, so the test fails.
* Correct comment\Robin Houston2012-06-06-1/+1
|
* Use a fixture for the external requestRobin Houston2012-06-06-4/+8
|
* API: Some testing of show_requestRobin Houston2012-06-06-0/+13
|
* API: test also for refusal conditionsRobin Houston2012-06-06-0/+39
| | | | | | The API must not allow people to update requests that they shouldn’t, i.e. only requests that were created by the same public body, using the API, can be added to using the API.
* API: add followup to requestRobin Houston2012-06-06-13/+61
| | | | You can add a followup to a request using the API.
* API: we can add a response to a requestRobin Houston2012-06-06-0/+60
|
* API create_request method is workingRobin Houston2012-06-06-1/+2
| | | | | | "when using the API", it "should create a new request from a POST", AND IT DOES!
* Fix test and fixtures so they only fail due to missing business logic ↵Seb Bacon2012-06-06-4/+5
| | | | (corrected typo, added missing fixture data, etc)
* Test for creating a new request via the APIRobin Houston2012-06-06-0/+33
This is not yet implemented. Test first!