Skip to content

Bug: Endpoint /episodes doesn't return total for page 1 #6

Description

@cristianoliveira

I am having some strange behavior from the API. When I pass the page=1 it doesn't return the total.

Request URL:https://api.feedcast.io/episodes?page=1&per_page=30
Request Method:GET
Status Code:200  (from disk cache)
Remote Address:104.24.110.210:443
Referrer Policy:no-referrer-when-downgrade
Response Headers
access-control-allow-origin:*
access-control-expose-headers:total
cache-control:max-age=300, public
cf-ray:38c64c73e9f226b4-FRA
content-encoding:gzip
content-type:application/json
date:Thu, 10 Aug 2017 22:12:47 GMT
etag:W/"2b8bed4dd8afddd7ccb69ec17656afd3"
server:cloudflare-nginx
status:200
via:1.1 vegur
x-request-id:b8e255ff-28ca-40da-8a71-0869ba311937
x-runtime:0.022315

And passing a page to it:

Request URL:https://api.feedcast.io/episodes?page=2&per_page=30
Request Method:GET
Status Code:200  (from disk cache)
Remote Address:104.24.110.210:443
Referrer Policy:no-referrer-when-downgrade
Response Headers
access-control-allow-origin:*
access-control-expose-headers:total
cache-control:max-age=300, public
cf-ray:38c64ea5886026b4-FRA
content-encoding:gzip
content-type:application/json
date:Thu, 10 Aug 2017 22:14:17 GMT
etag:W/"55a845059d5108911ccb744467511178"
link:<http://api.feedcast.io/episodes?page=1&per_page=30>; rel="first", <http://api.feedcast.io/episodes?page=1&per_page=30>; rel="prev", <http://api.feedcast.io/episodes?page=519&per_page=30>; rel="last", <http://api.feedcast.io/episodes?page=3&per_page=30>; rel="next"
per-page:30
server:cloudflare-nginx
status:304
total:15557
via:1.1 vegur
x-request-id:f8b7e227-9e17-4053-938f-4426a4e393f9
x-runtime:0.256476

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions