Skip to content

Commit cba8f25

Browse files
Improvements to the guide for using data sources (#37)
1 parent e2bf49d commit cba8f25

22 files changed

Lines changed: 49 additions & 50 deletions

src/routes/guides/images.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -163,73 +163,73 @@
163163
},
164164
"ERROR_RESPONSES": {},
165165
"PARTY_CONFIGURATION": {},
166-
"USING_DATA": {
166+
"USING_DATA_SOURCES": {
167167
"MENU_DATA_SOURCES": {
168-
"src": "/guides/using-data-from-data-sources/menu_data_sources.png",
168+
"src": "/guides/using-data-sources/menu_data_sources.png",
169169
"alt": "Menu with arrow pointing at the Data sources section"
170170
},
171171
"DATA_SOURCE_SEARCH": {
172-
"src": "/guides/using-data-from-data-sources/data_source_search.png",
172+
"src": "/guides/using-data-sources/data_source_search.png",
173173
"alt": "Data sources page showing search field and button to view sources"
174174
},
175175
"DATA_SOURCES_FOR_DEFINITION": {
176-
"src": "/guides/using-data-from-data-sources/data_sources_for_definition.png",
176+
"src": "/guides/using-data-sources/data_sources_for_definition.png",
177177
"alt": "Listing of sources for a definition with links to resources on the right"
178178
},
179179
"DATA_SOURCES_DETAILS": {
180-
"src": "/guides/using-data-from-data-sources/data_source_details.png",
180+
"src": "/guides/using-data-sources/data_source_details.png",
181181
"alt": "Details for the data source"
182182
},
183183
"MENU_ACCESS_CONTROL_KEYS": {
184-
"src": "/guides/using-data-from-data-sources/menu_access_control_keys.png",
184+
"src": "/guides/using-data-sources/menu_access_control_keys.png",
185185
"alt": "Menu with arrow pointing at the Access control keys section"
186186
},
187187
"ACCESS_CONTROL_KEYS_LISTING": {
188-
"src": "/guides/using-data-from-data-sources/access_control_keys_listing.png",
188+
"src": "/guides/using-data-sources/access_control_keys_listing.png",
189189
"alt": "Listing of access control keys on the Access control keys page"
190190
},
191191
"ACCESS_CONTROL_KEYS_VIEW": {
192-
"src": "/guides/using-data-from-data-sources/access_control_keys_view.png",
192+
"src": "/guides/using-data-sources/access_control_keys_view.png",
193193
"alt": "Access control keys view for a data source"
194194
},
195195
"CURL_EXAMPLE": {
196-
"src": "/guides/using-data-from-data-sources/curl_example.png",
196+
"src": "/guides/using-data-sources/curl_example.png",
197197
"alt": "cURL example of requesting an API token using an access control key"
198198
},
199199
"CURL_REQUEST": {
200-
"src": "/guides/using-data-from-data-sources/curl_request.png",
200+
"src": "/guides/using-data-sources/curl_request.png",
201201
"alt": "Curl request in Swagger UI"
202202
},
203203
"GENERATED_API_TOKEN": {
204-
"src": "/guides/using-data-from-data-sources/generated_api_token.png",
204+
"src": "/guides/using-data-sources/generated_api_token.png",
205205
"alt": "API token generated with the Generate API token button"
206206
},
207207
"ACCESS_CONTROL_KEYS_MAKING_REQUEST": {
208-
"src": "/guides/using-data-from-data-sources/access_control_keys_making_request.png",
208+
"src": "/guides/using-data-sources/access_control_keys_making_request.png",
209209
"alt": "Instructions on making request on the Access control keys page"
210210
},
211211
"ACCESS_CONTROL_KEYS_LINKS": {
212-
"src": "/guides/using-data-from-data-sources/access_control_keys_links.png",
212+
"src": "/guides/using-data-sources/access_control_keys_links.png",
213213
"alt": "Access control keys page with links to Swagger UI and ReDoc"
214214
},
215215
"SWAGGER_UI_EXAMPLE_VALUE": {
216-
"src": "/guides/using-data-from-data-sources/swagger_ui_example_value.png",
216+
"src": "/guides/using-data-sources/swagger_ui_example_value.png",
217217
"alt": "Swagger UI showing Example Value"
218218
},
219219
"SWAGGER_UI_SCHEMA": {
220-
"src": "/guides/using-data-from-data-sources/swagger_ui_schema.png",
220+
"src": "/guides/using-data-sources/swagger_ui_schema.png",
221221
"alt": "Swagger UI showing Schema"
222222
},
223223
"SWAGGER_UI_TRY_IT_OUT": {
224-
"src": "/guides/using-data-from-data-sources/swagger_ui_try_it_out.png",
224+
"src": "/guides/using-data-sources/swagger_ui_try_it_out.png",
225225
"alt": "Swagger UI with Try it out button"
226226
},
227227
"SWAGGER_UI_FIELDS": {
228-
"src": "/guides/using-data-from-data-sources/swagger_ui_fields.png",
228+
"src": "/guides/using-data-sources/swagger_ui_fields.png",
229229
"alt": "Swagger UI with the necessary fields highlighted"
230230
},
231231
"SWAGGER_UI_REQUEST_RESPONSE": {
232-
"src": "/guides/using-data-from-data-sources/swagger_ui_request_response.png",
232+
"src": "/guides/using-data-sources/swagger_ui_request_response.png",
233233
"alt": "Swagger UI with the request and response from a source"
234234
}
235235
},

src/routes/guides/managing-groups/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,6 @@
8787
<ul>
8888
<li><A href={GUIDES.MANAGE_GROUP_MEMBERS.href}>{GUIDES.MANAGE_GROUP_MEMBERS.title}</A></li>
8989
<li><A href={GUIDES.BUILD_DATA_SOURCE.href}>{GUIDES.BUILD_DATA_SOURCE.title}</A></li>
90-
<li><A href={GUIDES.USING_DATA.href}>{GUIDES.USING_DATA.title}</A></li>
90+
<li><A href={GUIDES.USING_DATA_SOURCES.href}>{GUIDES.USING_DATA_SOURCES.title}</A></li>
9191
</ul>
9292
</TableOfContents>

src/routes/guides/urls.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ export const GUIDES = {
1919
title: "Verifying API tokens",
2020
href: "/guides/verifying-api-tokens",
2121
},
22-
USING_DATA: {
23-
title: "Using data from data sources",
24-
href: "/guides/using-data-from-data-sources",
22+
USING_DATA_SOURCES: {
23+
title: "Using data sources",
24+
href: "/guides/using-data-sources",
2525
},
2626
ERROR_RESPONSES: {
2727
title: "Error responses",

src/routes/guides/using-data-from-data-sources/+page.server.ts renamed to src/routes/guides/using-data-sources/+page.server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export async function load({ url, route }) {
55
return {
66
path: url.pathname,
77
route: route.id,
8-
guide: GUIDES.USING_DATA,
9-
images: IMAGES.USING_DATA,
8+
guide: GUIDES.USING_DATA_SOURCES,
9+
images: IMAGES.USING_DATA_SOURCES,
1010
}
1111
}

src/routes/guides/using-data-from-data-sources/+page.svelte renamed to src/routes/guides/using-data-sources/+page.svelte

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
<SectionTitle title="Introduction" />
2222

2323
<p>
24-
In this guide we will explain how to find, get access to and use data from data sources
25-
published on an IOXIO data sharing service. We will be showing the process on the
24+
In this guide we will explain how to find, get access to and use data sources published on an
25+
IOXIO data sharing service. We will be showing the process on the
2626
<A href="https://sandbox.ioxio-dataspace.com/">IOXIO Sandbox Dataspace</A>, but this guide also
2727
works for most parts on for example
2828
<A href="https://ioxio.io/">IOXIO.io</A>.
@@ -31,32 +31,31 @@
3131
<SectionTitle title="Prerequisites" />
3232

3333
<ul>
34-
<li>Knowing what kind of data you want to access/use.</li>
34+
<li>Knowing what kind of data source you want to access/use.</li>
3535
<li>
3636
An account and a group on one of the data sharing services, such as
3737
<A href="https://sandbox.ioxio-dataspace.com/">IOXIO Sandbox Dataspace</A> or
3838
<A href="https://ioxio.io/">IOXIO.io</A>.
3939
</li>
4040
<li>
41-
To access the data, you need to request access for your group. If you don’t yet know which
42-
data, you can find instructions to identify the source below, but you cannot connect to it
43-
before your group has been granted access.
41+
To access the data source, you need to request access for your group. If you don’t yet know
42+
which data source, you can find instructions to identify the source below, but you cannot
43+
connect to it before your group has been granted access.
4444
</li>
4545
</ul>
4646

4747
<SectionTitle title="Finding a data source" />
4848

4949
<p>
50-
The first step is to find a data source providing the kind of data you want to use. You can
51-
browse all available data sources by going to the <em>Data sources</em>
52-
section in the menu.
50+
The first step is to find a data source you want to use. You can browse all available data
51+
sources by going to the <em>Data sources</em> section in the menu.
5352
</p>
5453

5554
<GuideImage img={images.MENU_DATA_SOURCES} compact />
5655

5756
<p>
58-
Search for the data relevant to you, e.g. using search words, or tags. In this example we’ve
59-
searched for data related to <em>weather</em> and will be using a source for the
57+
Search for the data sources relevant to you, e.g. using search words, or tags. In this example
58+
we’ve searched for data related to <em>weather</em> and will be using a source for the
6059
<em>Meteorology/Weather</em> definition.
6160
</p>
6261

@@ -139,26 +138,26 @@
139138
<li>
140139
<p>
141140
API tokens: API tokens are short-lived, typically valid for an hour from being generated,
142-
and used in the requests to fetch data products from a data source. They are validated by
143-
the IOXIO data sharing service (when the <em>Dataspace verified API tokens</em> option is used
144-
for the data source) and optionally validated by the data source.
141+
and used in the requests to a data source. They are validated by the IOXIO data sharing
142+
service (when the <em>Dataspace verified API tokens</em> option is used for the data source)
143+
and optionally validated by the data source.
145144
</p>
146145
<p>
147-
These can be treated as opaque strings for the practical matters of the group requesting
148-
data. Technically they are actually JWTs signed by the data sharing service. They prove that
149-
the holder of the token, for a limited time, has the right to request data from a particular
150-
source on behalf of a the group that generated them. These tokens can not be invalidated or
151-
revoked but automatically expire in a short time.
146+
These can be treated as opaque strings for the practical matters of the group making the
147+
request. Technically they are actually JWTs signed by the data sharing service. They prove
148+
that the holder of the token, for a limited time, has the right to make requests to a
149+
particular source on behalf of a the group that generated them. These tokens can not be
150+
invalidated or revoked but automatically expire in a short time.
152151
</p>
153152
<p>
154153
They are forwarded by the IOXIO data sharing service to the data source so that it can (if
155154
it wants to) verify that the request came from the IOXIO data sharing service. The data
156-
source can also verify which group is requesting data and might also implement its own
155+
source can also verify which group is making the request and might also implement its own
157156
access control to restrict access based on that.
158157
</p>
159158
<p>
160159
API tokens should also be kept safe and only used in server-to-server connections as they
161-
can be used to request any data on behalf of the requesting group from the data source.
160+
can be used to make any requests on behalf of the group to the data source.
162161
</p>
163162
</li>
164163
</ul>
@@ -238,14 +237,14 @@
238237
</p>
239238

240239
<p>
241-
To make it easier to test fetching data, the access control keys page also has a
240+
To make it easier to make test requests the access control keys page also has a
242241
<em>Generate API token</em> button, that will use one of your access control keys to generate a fresh
243242
API token that you can easily copy & paste.
244243
</p>
245244

246245
<GuideImage img={images.GENERATED_API_TOKEN} />
247246

248-
<SectionTitle title="Requesting data" />
247+
<SectionTitle title="Making requests" />
249248

250249
<p>The details page of the access control keys tell you the main parts of making the request:</p>
251250

@@ -306,7 +305,7 @@
306305

307306
<GuideImage img={images.SWAGGER_UI_REQUEST_RESPONSE} />
308307

309-
<p>You should now have successfully requested data from the data source, congratulations!</p>
308+
<p>You should now have made a successful request to the data source, congratulations!</p>
310309

311310
<p>
312311
Below the response you will also find documentation of all the possible responses, incl. errors,
@@ -324,8 +323,8 @@
324323
</p>
325324

326325
<p>
327-
You should also know how to check the details of the definitions to understand what data you
328-
need to send and the structure and meaning of the data you are receiving.
326+
You should also know how to check the details of the definitions to understand the format of the
327+
request and response, as well as the descriptions and meaning of each field in them.
329328
</p>
330329

331330
<SectionTitle title="Next steps" />

static/guides/using-data-from-data-sources/access_control_keys_links.png renamed to static/guides/using-data-sources/access_control_keys_links.png

File renamed without changes.

static/guides/using-data-from-data-sources/access_control_keys_listing.png renamed to static/guides/using-data-sources/access_control_keys_listing.png

File renamed without changes.

static/guides/using-data-from-data-sources/access_control_keys_making_request.png renamed to static/guides/using-data-sources/access_control_keys_making_request.png

File renamed without changes.

static/guides/using-data-from-data-sources/access_control_keys_view.png renamed to static/guides/using-data-sources/access_control_keys_view.png

File renamed without changes.

static/guides/using-data-from-data-sources/curl_example.png renamed to static/guides/using-data-sources/curl_example.png

File renamed without changes.

0 commit comments

Comments
 (0)