Benjamin Neff
4edaebb94f
Remove "Did you mean?" from api errors when a parameter is missing
...
This isn't helpful at all for an api if you don't send a required
parameter and get an error response that just tells you what parameters
that were available.
This is a new feature with rails >= 6.1 and ruby >= 2.7, so this just
keeps the old behaviour of older rails/ruby versions.
2022-07-20 21:35:02 +02:00
Jonne Haß
dcbd02cf7f
Return 403 for unauthorized API requests
...
Also cleanup error handling code and remove last translatable
API error messages
2020-02-02 21:49:20 +01:00
Jonne Haß
e8b9a70fbf
Ensure API responses adhere to documented error format
2020-02-02 18:04:11 +01:00
Jonne Haß
dad54db7f4
Return API pagination links as headers rather than in the response body itself
2020-01-21 23:34:43 +01:00
Hank Grabowski
a8d69c48dc
OpenID Scopes and Security updates
2018-12-26 14:13:13 -05:00
Hank Grabowski
7109773b83
API Paging library and used in appropriate controllers with full tests
2018-12-17 22:07:33 -05:00
Hank Grabowski
d6915ff5d0
Likes API endpoint complete
2018-11-01 11:06:45 -04:00
Frank Rousseau
2c94994f32
Fix code style
2018-11-01 13:56:18 +01:00
Frank Rousseau
a7ea3ba254
Adapt error formatting to documentation
2018-11-01 13:56:18 +01:00
Frank Rousseau
bcbcf6bce3
Make the comment API match the API specs
2018-11-01 13:56:18 +01:00
Frank Rousseau
55dbbad869
Improve API error management
...
* Fix active record not found case
* Display backtrace in error logs
2018-11-01 13:56:18 +01:00
Frank Rousseau
797afb1c9b
Changes to use V1 API version instead of V0
2018-11-01 13:56:18 +01:00
Frank Rousseau
100b1a4286
Move API controllers from v0 to v1
2018-11-01 13:56:18 +01:00