Skip to content

Commit 8a61ac1

Browse files
committed
Updates from code review
1 parent b62b199 commit 8a61ac1

File tree

1 file changed

+47
-47
lines changed

1 file changed

+47
-47
lines changed

extensions/federation/README.md

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -106,53 +106,6 @@ schema:
106106
}
107107
```
108108

109-
## Temporarily unavailable resources
110-
111-
Resources and back-ends can be temporarily unavailable.
112-
It is especially important to communicate to users missing resources when compiling lists of resources across multiple back-ends.
113-
Clients will assume that all lists of resources are the a combination of all back-ends listed in `GET /`.
114-
Federated APIs can expose if any of the back-ends is temporarily not available and thus is not part of the response.
115-
116-
Examples of where this could apply to (**not** comprehensive):
117-
118-
- `GET /collections`
119-
- `GET /processes`
120-
- `GET /file_formats`
121-
- `GET /process_graphs`
122-
- `GET /files`
123-
- `GET /jobs`
124-
- `GET /jobs/{job_id}`
125-
- `GET /jobs/{job_id}/results`
126-
- `GET /jobs/{job_id}/logs`
127-
- `GET /services`
128-
129-
### OpenAPI fragment
130-
131-
```yaml
132-
schema:
133-
type: object
134-
properties:
135-
'federation:missing':
136-
description: >-
137-
Lists all back-ends that were temporarily not considered in the response (e.g. because they were not accessible).
138-
If not given or empty, all back-ends supporting this endpoint were considered for creating the response.
139-
Back-ends that were listed as offline in the capabilities still need to be listed here.
140-
type: array
141-
items:
142-
type: string
143-
description: The ID of a back-end.
144-
```
145-
146-
### Example
147-
148-
```json
149-
{
150-
"federation:missing": ["wwu"],
151-
"collections": [...],
152-
"links": [...]
153-
}
154-
```
155-
156109
## Resources supported only by a subset of back-ends
157110

158111
Every discoverable resource that is defined as an object and allows to contain additional properties, can list the subset of back-ends that permanently support or host the exposed resource/functionality.
@@ -242,6 +195,53 @@ This also covers the case where the federation supports splitting a process into
242195
}
243196
```
244197

198+
## Temporarily or unintentionally unavailable resources
199+
200+
Resources and back-ends can be temporarily or unintentionally unavailable.
201+
It is especially important to communicate to users missing resources when compiling lists of resources across multiple back-ends.
202+
Clients will assume that all lists of resources are the a combination of all back-ends listed in `GET /`.
203+
Federated APIs can expose if any of the back-ends is temporarily not available and thus is not part of the response.
204+
205+
Examples of where this could apply to (**not** comprehensive):
206+
207+
- `GET /collections`
208+
- `GET /processes`
209+
- `GET /file_formats`
210+
- `GET /process_graphs`
211+
- `GET /files`
212+
- `GET /jobs`
213+
- `GET /jobs/{job_id}`
214+
- `GET /jobs/{job_id}/results`
215+
- `GET /jobs/{job_id}/logs`
216+
- `GET /services`
217+
218+
### OpenAPI fragment
219+
220+
```yaml
221+
schema:
222+
type: object
223+
properties:
224+
'federation:missing':
225+
description: >-
226+
Lists all back-ends that were temporarily not considered in the response (e.g. because they were not accessible).
227+
If not given or empty, all back-ends supporting this endpoint were considered for creating the response.
228+
Back-ends that were listed as offline in the capabilities still need to be listed here.
229+
type: array
230+
items:
231+
type: string
232+
description: The ID of a back-end.
233+
```
234+
235+
### Example
236+
237+
```json
238+
{
239+
"federation:missing": ["wwu"],
240+
"collections": [...],
241+
"links": [...]
242+
}
243+
```
244+
245245
## Endpoints that can't list federation details
246246

247247
The following endpoints define the resources (UDF runtimes / service types) at the top level of their response as key-value pairs.

0 commit comments

Comments
 (0)