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]
This commit is contained in:
Anna Anks Nowak 2019-10-16 03:39:17 +02:00 committed by Ben Halpern
parent 9b5f57db0e
commit ee8ae66e47
2 changed files with 6 additions and 1 deletions

View file

@ -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

View file

@ -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