Skip to content

Commit e593c15

Browse files
authored
Merge pull request #304 from tschaub/children
Updated examples for children
2 parents 790c0e0 + 829708b commit e593c15

File tree

1 file changed

+52
-60
lines changed

1 file changed

+52
-60
lines changed

children/README.md

Lines changed: 52 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -74,53 +74,53 @@ The STAC API Landing Page should look like the following (note the `child` link
7474

7575
```json
7676
{
77-
"stac_version": "1.0.0",
78-
"id": "example-stac",
79-
"title": "A simple STAC API Example, implementing STAC API - Children",
80-
"description": "This Catalog aims to demonstrate the a simple landing page",
81-
"type": "Catalog",
82-
"conformsTo" : [
83-
"https://api.stacspec.org/v1.0.0-rc.1/core",
84-
"https://api.stacspec.org/v1.0.0-rc.1/children",
85-
"https://api.stacspec.org/v1.0.0-rc.1/browseable"
86-
],
87-
"links": [
88-
{
89-
"rel": "self",
90-
"type": "application/json",
91-
"href": "https://stac-api.example.com"
92-
},
93-
{
94-
"rel": "root",
95-
"type": "application/json",
96-
"href": "https://stac-api.example.com"
97-
},
98-
{
99-
"rel": "service-desc",
100-
"type": "application/vnd.oai.openapi+json;version=3.0",
101-
"href": "https://stac-api.example.com/api"
102-
},
103-
{
104-
"rel": "service-doc",
105-
"type": "text/html",
106-
"href": "https://stac-api.example.com/api.html"
107-
},
108-
{
109-
"rel": "children",
110-
"type": "application/json",
111-
"href": "https://stac-api.example.com/children",
112-
},
113-
{
114-
"rel": "child",
115-
"type": "application/json",
116-
"href": "https://stac-api.example.com/catalogs/cool-data",
117-
},
118-
{
119-
"rel": "child",
120-
"type": "application/json",
121-
"href": "https://stac-api.example.com/catalogs/some-other-data",
122-
}
123-
]
77+
"stac_version": "1.0.0",
78+
"id": "example-stac",
79+
"title": "A simple STAC API Example, implementing STAC API - Children",
80+
"description": "This Catalog aims to demonstrate the a simple landing page",
81+
"type": "Catalog",
82+
"conformsTo": [
83+
"https://api.stacspec.org/v1.0.0-rc.1/core",
84+
"https://api.stacspec.org/v1.0.0-rc.1/children",
85+
"https://api.stacspec.org/v1.0.0-rc.1/browseable"
86+
],
87+
"links": [
88+
{
89+
"rel": "self",
90+
"type": "application/json",
91+
"href": "https://stac-api.example.com"
92+
},
93+
{
94+
"rel": "root",
95+
"type": "application/json",
96+
"href": "https://stac-api.example.com"
97+
},
98+
{
99+
"rel": "service-desc",
100+
"type": "application/vnd.oai.openapi+json;version=3.0",
101+
"href": "https://stac-api.example.com/api"
102+
},
103+
{
104+
"rel": "service-doc",
105+
"type": "text/html",
106+
"href": "https://stac-api.example.com/api.html"
107+
},
108+
{
109+
"rel": "children",
110+
"type": "application/json",
111+
"href": "https://stac-api.example.com/children"
112+
},
113+
{
114+
"rel": "child",
115+
"type": "application/json",
116+
"href": "https://stac-api.example.com/catalogs/cool-data"
117+
},
118+
{
119+
"rel": "child",
120+
"type": "application/json",
121+
"href": "https://stac-api.example.com/catalogs/some-other-data"
122+
}
123+
]
124124
}
125125
```
126126

@@ -137,14 +137,6 @@ The `/children` endpoint response object should look as follows:
137137
"description": "A lot of awesome words describing the data",
138138
"type": "Catalog",
139139
"license": "CC-BY",
140-
"extent": {
141-
"spatial": {
142-
"bbox": [[-135.17, 36.83, -51.24, 62.25]]
143-
},
144-
"temporal": {
145-
"interval": [["2009-01-01T00:00:00Z",null]]
146-
}
147-
},
148140
"links": [
149141
{
150142
"rel": "root",
@@ -161,22 +153,22 @@ The `/children` endpoint response object should look as follows:
161153
"type": "application/json",
162154
"href": "https://stac-api.example.com/catalogs/cool-data"
163155
}
164-
],
156+
]
165157
},
166158
{
167159
"stac_version": "1.0.0",
168160
"stac_extensions": [ ],
169161
"id": "some-other-data",
170162
"title": "Some Other Data from Y Satellite",
171163
"description": "More awesome words describing the data",
172-
"type": "Catalog",
164+
"type": "Collection",
173165
"license": "CC-BY",
174166
"extent": {
175167
"spatial": {
176168
"bbox": [[-135.17, 36.83, -51.24, 62.25]]
177169
},
178170
"temporal": {
179-
"interval": [["2009-01-01T00:00:00Z",null]]
171+
"interval": [["2009-01-01T00:00:00Z", null]]
180172
}
181173
},
182174
"links": [
@@ -193,9 +185,9 @@ The `/children` endpoint response object should look as follows:
193185
{
194186
"rel": "self",
195187
"type": "application/json",
196-
"href": "https://stac-api.example.com/catalogs/some-other-data"
188+
"href": "https://stac-api.example.com/collections/some-other-data"
197189
}
198-
],
190+
]
199191
}
200192
],
201193
"links": [

0 commit comments

Comments
 (0)