Skip to content

Commit 9b12aa9

Browse files
authored
feat: update to API v1.0.0, and extension versions (#578)
1 parent b82aab4 commit 9b12aa9

File tree

11 files changed

+19
-19
lines changed

11 files changed

+19
-19
lines changed

CHANGES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
* Make item geometry and bbox nullable in sqlalchemy backend. ([#398](https://github.com/stac-utils/stac-fastapi/pull/398))
136136
* Transactions Extension update Item endpoint Item is now `/collections/{collection_id}/items/{item_id}` instead of
137137
`/collections/{collection_id}/items` to align with [STAC API
138-
spec](https://github.com/radiantearth/stac-api-spec/tree/main/ogcapi-features/extensions/transaction#methods) ([#425](https://github.com/stac-utils/stac-fastapi/pull/425))
138+
spec](https://github.com/stac-api-extensions/transaction#methods) ([#425](https://github.com/stac-utils/stac-fastapi/pull/425))
139139

140140
### Removed
141141

stac_fastapi/api/stac_fastapi/api/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
class ApiExtensions(enum.Enum):
99
"""Enumeration of available stac api extensions.
1010
11-
Ref: https://github.com/radiantearth/stac-api-spec/tree/master/extensions
11+
Ref: https://github.com/stac-api-extensions
1212
"""
1313

1414
context = "context"

stac_fastapi/extensions/stac_fastapi/extensions/core/context.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ class ContextExtension(ApiExtension):
1414
The Context extension adds a JSON object to ItemCollection responses (`/search`,
1515
`/collections/{collection_id}/items`) which includes the number of items matched,
1616
returned, and the limit requested.
17-
https://github.com/radiantearth/stac-api-spec/blob/master/item-search/README.md#context
17+
https://github.com/stac-api-extensions/context
1818
"""
1919

2020
conformance_classes: List[str] = attr.ib(
21-
factory=lambda: ["https://api.stacspec.org/v1.0.0-rc.1/item-search#context"]
21+
factory=lambda: ["https://api.stacspec.org/v1.0.0-rc.2/item-search#context"]
2222
)
2323
schema_href: Optional[str] = attr.ib(
24-
default="https://raw.githubusercontent.com/radiantearth/stac-api-spec/v1.0.0-rc.1/fragments/context/json-schema/schema.json"
24+
default="https://raw.githubusercontent.com/stac-api-extensions/context/v1.0.0-rc.2/json-schema/schema.json"
2525
)
2626

2727
def register(self, app: FastAPI) -> None:

stac_fastapi/extensions/stac_fastapi/extensions/core/fields/fields.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class FieldsExtension(ApiExtension):
2020
the Fields extension allows the API to return potentially invalid responses
2121
by excluding fields which are required by the STAC spec, such as geometry.
2222
23-
https://github.com/radiantearth/stac-api-spec/blob/master/item-search/README.md#fields
23+
https://github.com/stac-api-extensions/fields
2424
2525
Attributes:
2626
default_includes (set): defines the default set of included fields.
@@ -32,7 +32,7 @@ class FieldsExtension(ApiExtension):
3232
POST = FieldsExtensionPostRequest
3333

3434
conformance_classes: List[str] = attr.ib(
35-
factory=lambda: ["https://api.stacspec.org/v1.0.0-rc.1/item-search#fields"]
35+
factory=lambda: ["https://api.stacspec.org/v1.0.0-rc.3/item-search#fields"]
3636
)
3737
default_includes: Set[str] = attr.ib(
3838
factory=lambda: {

stac_fastapi/extensions/stac_fastapi/extensions/core/filter/filter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ class FilterConformanceClasses(str, Enum):
1919
"""Conformance classes for the Filter extension.
2020
2121
See
22-
https://github.com/radiantearth/stac-api-spec/tree/v1.0.0-rc.1/fragments/filter
22+
https://github.com/stac-api-extensions/filter
2323
"""
2424

2525
FILTER = "http://www.opengis.net/spec/ogcapi-features-3/1.0/conf/filter"
2626
FEATURES_FILTER = (
2727
"http://www.opengis.net/spec/ogcapi-features-3/1.0/conf/features-filter"
2828
)
29-
ITEM_SEARCH_FILTER = "https://api.stacspec.org/v1.0.0-rc.1/item-search#filter"
29+
ITEM_SEARCH_FILTER = "https://api.stacspec.org/v1.0.0-rc.2/item-search#filter"
3030
CQL2_TEXT = "http://www.opengis.net/spec/cql2/1.0/conf/cql2-text"
3131
CQL2_JSON = "http://www.opengis.net/spec/cql2/1.0/conf/cql2-json"
3232
BASIC_CQL2 = "http://www.opengis.net/spec/cql2/1.0/conf/basic-cql2"

stac_fastapi/extensions/stac_fastapi/extensions/core/filter/request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class FilterLang(str, Enum):
1313
"""Choices for filter-lang value in a POST request.
1414
1515
Based on
16-
https://github.com/radiantearth/stac-api-spec/tree/master/fragments/filter#queryables
16+
https://github.com/stac-api-extensions/filter#queryables
1717
1818
Note the addition of cql2-json, which is used by the pgstac backend,
1919
but is not included in the spec above.

stac_fastapi/extensions/stac_fastapi/extensions/core/query/query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class QueryExtension(ApiExtension):
2323
POST = QueryExtensionPostRequest
2424

2525
conformance_classes: List[str] = attr.ib(
26-
factory=lambda: ["https://api.stacspec.org/v1.0.0-rc.1/item-search#query"]
26+
factory=lambda: ["https://api.stacspec.org/v1.0.0-rc.2/item-search#query"]
2727
)
2828
schema_href: Optional[str] = attr.ib(default=None)
2929

stac_fastapi/extensions/stac_fastapi/extensions/core/sort/sort.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ class SortExtension(ApiExtension):
1515
1616
The Sort extension adds the `sortby` parameter to the `/search` endpoint, allowing the
1717
caller to specify the sort order of the returned items.
18-
https://github.com/radiantearth/stac-api-spec/blob/master/item-search/README.md#sort
18+
https://github.com/stac-api-extensions/sort
1919
"""
2020

2121
GET = SortExtensionGetRequest
2222
POST = SortExtensionPostRequest
2323

2424
conformance_classes: List[str] = attr.ib(
25-
factory=lambda: ["https://api.stacspec.org/v1.0.0-rc.1/item-search#sort"]
25+
factory=lambda: ["https://api.stacspec.org/v1.0.0-rc.2/item-search#sort"]
2626
)
2727
schema_href: Optional[str] = attr.ib(default=None)
2828

stac_fastapi/extensions/stac_fastapi/extensions/core/transaction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class TransactionExtension(ApiExtension):
5353
settings: ApiSettings = attr.ib()
5454
conformance_classes: List[str] = attr.ib(
5555
factory=lambda: [
56-
"https://api.stacspec.org/v1.0.0-rc.1/ogcapi-features/extensions/transaction",
56+
"https://api.stacspec.org/v1.0.0-rc.2/ogcapi-features/extensions/transaction",
5757
"http://www.opengis.net/spec/ogcapi-features-4/1.0/conf/simpletx",
5858
]
5959
)

stac_fastapi/types/stac_fastapi/types/conformance.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
class STACConformanceClasses(str, Enum):
66
"""Conformance classes for the STAC API spec."""
77

8-
CORE = "https://api.stacspec.org/v1.0.0-rc.1/core"
9-
OGC_API_FEAT = "https://api.stacspec.org/v1.0.0-rc.1/ogcapi-features"
10-
COLLECTIONS = "https://api.stacspec.org/v1.0.0-rc.1/collections"
11-
ITEM_SEARCH = "https://api.stacspec.org/v1.0.0-rc.1/item-search"
8+
CORE = "https://api.stacspec.org/v1.0.0/core"
9+
OGC_API_FEAT = "https://api.stacspec.org/v1.0.0/ogcapi-features"
10+
COLLECTIONS = "https://api.stacspec.org/v1.0.0/collections"
11+
ITEM_SEARCH = "https://api.stacspec.org/v1.0.0/item-search"
1212

1313

1414
class OAFConformanceClasses(str, Enum):

0 commit comments

Comments
 (0)