| Commit message (Collapse) | Author | Age | Lines |
|
|
|
| |
Update the other API tests to take account of the changed error behaviour.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
Conflicts:
spec/controllers/api_controller_spec.rb
|
| |
|
| |
|
|
|
|
| |
Not yet implemented, so the test fails.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
You can add a followup to a request using the API.
|
| |
|
|
|
|
|
|
| |
"when using the API",
it "should create a new request from a POST",
AND IT DOES!
|
|
|
|
| |
(corrected typo, added missing fixture data, etc)
|
|
This is not yet implemented. Test first!
|