Skip to content

'reading_time' parameter not returned when used in 'fields' query of Ghost Content API #490

Description

@Adonia83

Issue Summary:
When using the Ghost Content API, specifically the "/posts/" or "/pages/" endpoints with the "field" query parameter to specify the fields to be returned, the "reading_time" parameter does not function as expected. While other parameters work fine, attempting to limit the fields returned by including "reading_time" results in unexpected behavior.

To Reproduce:

  1. Make a request to the "/posts/" or "/pages/" endpoint of the Ghost Content API.
  2. Include the "field" query parameter with the value of "reading_time" to limit the fields returned to just the reading time.
  3. Observe that the response does not return "reading_time".

Technical details:

  • Ghost Version: 5.80.0
  • Node Version: Unknown
  • Environment: Production
  • Browser/OS: Not relevant
  • Database: MySQL 8

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions