Commit Graph

14 Commits (9011b008c20bbf025febb18745a6d94ad1ceca4d)

Author SHA1 Message Date
Claire 0cfbe4c4af Fix some user-independent endpoints potentially reading session cookies () 2023-04-25 22:14:44 +02:00
Eugen Rochko b61ff36351 Change unauthenticated responses to be cached in REST API () 2023-04-25 15:41:34 +02:00
Eugen Rochko 3ca64638d4 Refactor `Cache-Control` and `Vary` definitions () 2023-04-19 16:07:29 +02:00
Eugen Rochko c603978cf6 Add server banner to web app, add `GET /api/v2/instance` to REST API () 2022-10-05 03:47:56 +02:00
Eugen Rochko 9619521459 Remove useless `respond_to` calls () 2020-03-06 01:29:38 +01:00
Eugen Rochko 6b96a6dd15 Fix `GET /api/v1/instance` REST APIs being unavailable in secure mode () 2019-10-06 22:11:29 +02:00
Eugen Rochko 825dc3ca22 Add whitelist mode () 2019-07-30 11:10:46 +02:00
dependabot-preview[bot] 884e20c028 Bump active_model_serializers from 0.10.9 to 0.10.10 ()
* Bump active_model_serializers from 0.10.9 to 0.10.10

Bumps [active_model_serializers](https://github.com/rails-api/active_model_serializers) from 0.10.9 to 0.10.10.
- [Release notes](https://github.com/rails-api/active_model_serializers/releases)
- [Changelog](https://github.com/rails-api/active_model_serializers/blob/v0.10.10/CHANGELOG.md)
- [Commits](https://github.com/rails-api/active_model_serializers/compare/v0.10.9...v0.10.10)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Add root option to render method
2019-07-23 11:10:42 +02:00
Eugen Rochko 79b9eee938 Add (back) rails-level JSON caching () 2019-07-21 22:32:16 +02:00
ThibG 4c4f9d78fd Explicitly disable storage of REST API results ()
Fixes 
2019-05-03 20:39:19 +02:00
Yamagishi Kazutoshi 449edebb1c Cache instance info () 2018-09-24 16:15:49 +02:00
Eugen Rochko 20e15ecfb3 Refactor JSON templates to be generated with ActiveModelSerializers instead of Rabl () 2017-07-07 04:02:06 +02:00
Matt Jankowski 76f986d07b Clean up for api/base controller ()
* Move ApiController to Api/BaseController

* API controllers inherit from Api::BaseController

* Add coverage for various error cases in api/base controller
2017-06-07 20:09:25 +02:00
Eugen Rochko c97f817e40 Fix - Add instance information API 2017-03-15 23:12:48 +01:00