Skip to content

Add link to Next page for process summaries #2342

@francescoingv

Description

@francescoingv

Problem
When requesting the list of process summaries, if the limit parameter is used, only the specified number of process summaries are returned, but there is no way to get to the other summaries: i.e. there is no link to Next

The solution I'd like
Implement the Recommendation 8:

A 200 -response SHOULD include a link to the next page (relation:
next ) of process summaries, if more process summaries have
been selected than returned in the response.

Additional context: how to check
On a server where multiple processes are exposed issue the following curl command with limit parameter set to 1:
curl -X GET "https://<pygeoapi_server>/processes?limit=1"
and you get

{
    "processes":[
       <one_processSummary>
    ],
    "links":[
        {
            "type":"application/json",
            "rel":"self",
            "title":"This document as JSON",
            "href":"https://<pygeoapi_server>/processes?f=json"
        },
        {
            "type":"application/ld+json",
            "rel":"alternate",
            "title":"This document as RDF (JSON-LD)",
            "href":"https://<pygeoapi_server>/processes?f=jsonld"
        },
        {
            "type":"text/html",
            "rel":"alternate",
            "title":"This document as HTML",
            "href":"https://<pygeoapi_server>/processes?f=html"
        }
    ]
}

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions