|
36 | 36 | protocol. |
37 | 37 | </li> |
38 | 38 | <SectionTitle title="Choosing a data definition for your source" /> |
39 | | - <p>You can find the available <em>Data definitions</em> via menu.</p> |
| 39 | + <p>You can find the available <em>Data definitions</em> in the menu.</p> |
40 | 40 | <GuideImage compact img={images.DEFINITIONS} /> |
41 | 41 | <p> |
42 | 42 | If there is no definition for the type of data you want to provide, you can create your own |
|
113 | 113 | Some dataspaces have moderated group creation. If the page has a notice saying so, and you are |
114 | 114 | unable to create the group yourself, please follow the instructions visible in the page to get a |
115 | 115 | group. Note, that if your organization already has a group, you will need to ask your group's |
116 | | - administrator to invite you to the existing group. |
| 116 | + owner to invite you to the existing group. |
117 | 117 | </p> |
118 | 118 | <h3>Add your data source</h3> |
119 | 119 | <p> |
|
152 | 152 | <li> |
153 | 153 | <b>No access control</b> - The dataspace will allow anyone to request data from the data source. |
154 | 154 | </li> |
155 | | - <li> |
156 | | - <b>Self-managed API keys</b> - <em>X-API-Key</em> header will be required to be present, but its |
157 | | - contents will not be verified by the dataspace. |
158 | | - </li> |
159 | 155 | <li> |
160 | 156 | <b>Dataspace verified API tokens</b> - The <em>X-API-Key</em> header will be required and |
161 | 157 | verified by the dataspace. Once you save the data source with this setting you can manage |
|
184 | 180 | need to add your own group explicitly, but if you want to add other groups for testing purposes, |
185 | 181 | - click <em>+ Add</em>, type in the name of the group, click <em>+ Add</em> again. |
186 | 182 | </p> |
| 183 | + <p> |
| 184 | + To test your data source, you can either follow the more in-depth steps in the next |
| 185 | + <A href="#test-your-data-source">Test your data source</A> section or head to the |
| 186 | + <A href="#test-your-data-source-using-swagger-ui">Test your data source using Swagger UI</A> section |
| 187 | + a bit further down for a simpler and quicker approach. |
| 188 | + </p> |
187 | 189 | <SectionTitle title="Test your data source" /> |
188 | 190 | <p> |
189 | 191 | You should now be able to test your own data source by querying it through the product gateway. |
|
247 | 249 | source edit page after a short while: |
248 | 250 | </p> |
249 | 251 | <GuideImage img={images.ERRORS} /> |
| 252 | + |
| 253 | + <SectionTitle title="Test your data source using Swagger UI" /> |
| 254 | + <p>The quickest and easiest way to test your data source is using these steps with Swagger UI.</p> |
| 255 | + <p> |
| 256 | + From the edit data source view, you can quickly jump to the Access control keys for your source |
| 257 | + by pressing the key icon in the list of <em>Allowed groups</em> section. |
| 258 | + </p> |
| 259 | + <GuideImage img={images.ALLOWED_GROUPS_KEY} /> |
| 260 | + <p> |
| 261 | + Alternatively you can open the <em>Access control keys</em> from the menu and open the details for |
| 262 | + your own source. |
| 263 | + </p> |
| 264 | + <p> |
| 265 | + On the View access control keys page press the <em>Generate API token</em> button. This will for |
| 266 | + convenience use one of the long-lived access control keys and generate a short lived API token (typically |
| 267 | + valid for about an hour) and display it to you for easier testing. |
| 268 | + </p> |
| 269 | + <GuideImage img={images.GENERATE_API_TOKEN_BUTTON} /> |
| 270 | + <p> |
| 271 | + Copy the generated API token, make a note of the source value and open the <em>Swagger UI</em> link. |
| 272 | + </p> |
| 273 | + <GuideImage img={images.COPY_API_TOKEN_AND_OPEN_SWAGGER_UI} /> |
| 274 | + <p> |
| 275 | + Press the <em>Try it out</em> button in Swagger UI. |
| 276 | + </p> |
| 277 | + <GuideImage img={images.SWAGGER_UI_TRY_IT_OUT} /> |
| 278 | + <p> |
| 279 | + Enter the name of the source (the one you were requested earlier to make a note of) and paste in |
| 280 | + the API token you copied in the <em>x-api-key</em> field. Do any changes you want to the request |
| 281 | + body and press the |
| 282 | + <em>Execute</em> button to perform the request. |
| 283 | + </p> |
| 284 | + <GuideImage img={images.SWAGGER_UI_FILLED_IN_FORM} /> |
| 285 | + <p> |
| 286 | + Swagger UI will in the <em>Responses</em> section show you the curl command corresponding to the |
| 287 | + request that it made and also show the status code and body of the response. |
| 288 | + </p> |
| 289 | + <GuideImage img={images.SWAGGER_UI_RESPONSE} /> |
| 290 | + <p> |
| 291 | + Check the status and response is as you expect or in case of an error check the details in the |
| 292 | + error message. Please note that the API tokens are typically valid for only about an hour, so if |
| 293 | + you do a lot of testing you might encounter the |
| 294 | + <em>API token is not valid for this source or it has expired</em> |
| 295 | + message, which means you need to go back to the Access control keys page and generate a fresh one |
| 296 | + to use. |
| 297 | + </p> |
| 298 | + |
250 | 299 | <SectionTitle title="Publish the data source" /> |
251 | 300 | <p> |
252 | 301 | When you've verified the data source works as intended you can publish the data source by |
|
0 commit comments