Skip to content

Latest commit

 

History

History
 
 

fragments

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

STAC API - Fragments

This directory contains reusable OpenAPI fragments that are used by other capabilities. They tend to be common API components such as parameters that get mixed in to various endpoints. They are kept in this separate fragment directory as they are not specific to any extension and are meant to be re-used when drafting new API extensions.

For example 'sort' introduces a parameter (sortby) that can be used by both item-search at the /search endpoint, and by features in any of its items endpoints. To keep things clean we specify a conformance class for each, so clients can know exactly what to expect. Each conformance class is specified in the relevant folder as an 'extension' to the main capability. But their semantics are exactly the same, so we put the shared openapi definition in this fragments directory.

Fragment Name Description
Context Adds search related metadata (context) to GeoJSON Responses.
Fields Adds parameter to control which fields are returned in the response.
ItemCollection The specification for a set of items, e.g. returned by a search.
Query Adds parameter to compare properties and only return the items that match.
Sort Adds Parameter to control sorting of returns results.