developmentseed / developmentseed/sat-api-pg

Required to provide `next=0` when using pagination

Open
#21 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
PLpgSQL
Stars
31
Forks
2
PR merge metrics
No merged PRs in 30d

Description

Currently, when attempting to view the `/items` endpoint with pagination, if the `limit` is provided but `next` is omitted then the endpoint returns a `502 Bad Gateway`. `next=0` should likely be default and implied if omitted.

**Fails:**

`/items?limit=10`

**Succeeds:**

`/items?limit=10&next=0`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.