From ee8ae66e4708d4025756d4d1860d1dfa624d2638 Mon Sep 17 00:00:00 2001 From: Anna Anks Nowak Date: Wed, 16 Oct 2019 03:39:17 +0200 Subject: [PATCH] Add views count for authenticated users articles [#4250] (#4393) * Add views count for authenticated users articles [#4250] * Bump API version to 0.5.6 [#4250] --- app/views/api/v0/articles/me.json.jbuilder | 1 + docs/api_v0.yml | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/views/api/v0/articles/me.json.jbuilder b/app/views/api/v0/articles/me.json.jbuilder index d4cdafc30..6a5dc1451 100644 --- a/app/views/api/v0/articles/me.json.jbuilder +++ b/app/views/api/v0/articles/me.json.jbuilder @@ -13,6 +13,7 @@ json.array! @articles do |article| json.canonical_url article.processed_canonical_url json.comments_count article.comments_count json.positive_reactions_count article.positive_reactions_count + json.page_views_count article.page_views_count json.published_timestamp article.published_timestamp json.body_markdown article.body_markdown diff --git a/docs/api_v0.yml b/docs/api_v0.yml index ce57f60a1..afa124bfc 100644 --- a/docs/api_v0.yml +++ b/docs/api_v0.yml @@ -2,7 +2,7 @@ openapi: "3.0.2" info: title: DEV API description: Access DEV articles, comments and other resources via API - version: "0.5.5" + version: "0.5.6" termsOfService: https://dev.to/terms contact: name: DEV Team @@ -373,6 +373,7 @@ components: - canonical_url - comments_count - positive_reactions_count + - page_views_count - published_timestamp - body_markdown - user @@ -415,6 +416,9 @@ components: positive_reactions_count: type: integer format: int32 + page_views_count: + type: integer + format: int32 published_timestamp: description: Crossposting or published date time type: string