docbrown/app/controllers/api/v0
Daniel Uber 2f1dad4e37
Add reading_time to articles api responses (#13446)
* Add reading_time to articles api responses

Fixes #13436

* Update api docs to match changes to the articles response

* Follow up docs updates

- increment api docs version
- add reading_time to articles/me responses
- add reading time to the show response example format

* Change reading_time attribute to reading_time_minutes

Update the article builder to use `article.reading_time` and present
it as `"reading_time_minutes"`.

Update the api spec to expect the new property name instead of the attribute.

* Update api documentation to reflect the new name

- Change reading_time -> reading_time_minutes.
- I decided to keep the (possibly redundant) description text here.
2021-04-19 17:11:55 -05:00
..
admin Split Settings::Authentication from SiteConfig (#13095) 2021-04-12 09:41:09 +02:00
analytics_controller.rb Remove pro role + expose analytics to all users via dashboard (#13156) 2021-03-30 15:02:18 -07:00
api_controller.rb Rename banned and comment_banned roles (#12270) 2021-04-06 10:12:14 -05:00
articles_controller.rb Add reading_time to articles api responses (#13446) 2021-04-19 17:11:55 -05:00
comments_controller.rb [deploy] API: add created_at datetime to comments (#9829) 2020-08-17 20:10:24 -04:00
followers_controller.rb 15 minute fix: Add default argument to JsonApiSortParam (#13369) 2021-04-14 10:32:07 +07:00
follows_controller.rb API: Add route for fetching a user's followed tags (#9108) 2020-09-18 16:28:42 -05:00
health_checks_controller.rb Add mobile push notifications to Forem (#12419) 2021-03-12 14:08:18 -06:00
listings_controller.rb Upgrade rubocop* packages to the latest version and fix violations (#11972) 2020-12-21 18:29:43 +01:00
organizations_controller.rb Fix Ruby 2.7 kwargs' warnings & misc spec warnings (#13256) 2021-04-06 16:57:59 -04:00
podcast_episodes_controller.rb Rubocop: move dot in multi-line calls to leading position (#9262) 2020-07-16 15:51:11 +02:00
profile_images_controller.rb [deploy] Introduce /api/profile_images/:username endpoint (#10547) 2020-10-14 14:24:25 -05:00
readinglist_controller.rb [deploy] API - New endpoint to retrieve the articles in the reading list of the authenticated user (#10540) 2020-10-14 13:20:03 -05:00
tags_controller.rb Rubocop: move dot in multi-line calls to leading position (#9262) 2020-07-16 15:51:11 +02:00
users_controller.rb [deploy] API - New endpoint to retrieve the articles in the reading list of the authenticated user (#10540) 2020-10-14 13:20:03 -05:00
videos_controller.rb Return video_source_url in API V0 Videos index (#11040) 2020-11-09 06:27:28 +01:00
webhooks_controller.rb Rubocop: activate Layout/ClassStructure (#9304) 2020-07-14 18:28:18 +02:00