rucio 37.3.0__py3-none-any.whl → 37.5.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of rucio might be problematic. Click here for more details.
- rucio/cli/rule.py +1 -1
- rucio/client/accountclient.py +205 -60
- rucio/client/accountlimitclient.py +84 -25
- rucio/client/baseclient.py +85 -48
- rucio/client/client.py +49 -41
- rucio/client/configclient.py +36 -13
- rucio/client/credentialclient.py +16 -6
- rucio/client/didclient.py +321 -133
- rucio/client/diracclient.py +13 -6
- rucio/client/downloadclient.py +435 -165
- rucio/client/exportclient.py +8 -2
- rucio/client/fileclient.py +10 -3
- rucio/client/importclient.py +4 -1
- rucio/client/lifetimeclient.py +48 -31
- rucio/client/lockclient.py +22 -7
- rucio/client/metaconventionsclient.py +59 -21
- rucio/client/pingclient.py +3 -1
- rucio/client/replicaclient.py +213 -96
- rucio/client/requestclient.py +124 -16
- rucio/client/rseclient.py +385 -160
- rucio/client/ruleclient.py +147 -51
- rucio/client/scopeclient.py +35 -10
- rucio/client/subscriptionclient.py +60 -27
- rucio/client/touchclient.py +16 -7
- rucio/common/constants.py +14 -17
- rucio/common/utils.py +18 -2
- rucio/core/permission/generic.py +40 -1
- rucio/core/replica.py +6 -6
- rucio/core/request.py +2 -2
- rucio/core/rule.py +5 -3
- rucio/core/transfer.py +4 -5
- rucio/daemons/conveyor/throttler.py +2 -1
- rucio/daemons/judge/evaluator.py +1 -1
- rucio/db/sqla/constants.py +3 -3
- rucio/db/sqla/migrate_repo/versions/13d4f70c66a9_introduce_transfer_limits.py +1 -1
- rucio/db/sqla/models.py +1 -1
- rucio/gateway/replica.py +129 -41
- rucio/gateway/request.py +177 -103
- rucio/gateway/subscription.py +90 -108
- rucio/rse/rsemanager.py +2 -2
- rucio/vcsversion.py +3 -3
- rucio/web/rest/flaskapi/v1/accountlimits.py +22 -22
- rucio/web/rest/flaskapi/v1/accounts.py +157 -157
- rucio/web/rest/flaskapi/v1/archives.py +10 -10
- rucio/web/rest/flaskapi/v1/auth.py +106 -106
- rucio/web/rest/flaskapi/v1/config.py +37 -37
- rucio/web/rest/flaskapi/v1/credentials.py +25 -25
- rucio/web/rest/flaskapi/v1/dids.py +381 -381
- rucio/web/rest/flaskapi/v1/dirac.py +8 -8
- rucio/web/rest/flaskapi/v1/export.py +6 -6
- rucio/web/rest/flaskapi/v1/heartbeats.py +14 -14
- rucio/web/rest/flaskapi/v1/identities.py +25 -25
- rucio/web/rest/flaskapi/v1/import.py +19 -19
- rucio/web/rest/flaskapi/v1/lifetime_exceptions.py +54 -54
- rucio/web/rest/flaskapi/v1/locks.py +60 -60
- rucio/web/rest/flaskapi/v1/meta_conventions.py +29 -29
- rucio/web/rest/flaskapi/v1/nongrid_traces.py +4 -4
- rucio/web/rest/flaskapi/v1/ping.py +4 -4
- rucio/web/rest/flaskapi/v1/redirect.py +17 -17
- rucio/web/rest/flaskapi/v1/replicas.py +282 -282
- rucio/web/rest/flaskapi/v1/requests.py +424 -229
- rucio/web/rest/flaskapi/v1/rses.py +427 -427
- rucio/web/rest/flaskapi/v1/rules.py +129 -129
- rucio/web/rest/flaskapi/v1/scopes.py +21 -21
- rucio/web/rest/flaskapi/v1/subscriptions.py +122 -122
- rucio/web/rest/flaskapi/v1/traces.py +18 -18
- rucio/web/rest/flaskapi/v1/vos.py +32 -32
- {rucio-37.3.0.data → rucio-37.5.0.data}/data/rucio/etc/rucio.cfg.template +0 -1
- {rucio-37.3.0.data → rucio-37.5.0.data}/data/rucio/etc/rucio_multi_vo.cfg.template +0 -1
- {rucio-37.3.0.data → rucio-37.5.0.data}/data/rucio/requirements.server.txt +1 -1
- {rucio-37.3.0.dist-info → rucio-37.5.0.dist-info}/METADATA +1 -1
- {rucio-37.3.0.dist-info → rucio-37.5.0.dist-info}/RECORD +128 -128
- {rucio-37.3.0.dist-info → rucio-37.5.0.dist-info}/WHEEL +1 -1
- {rucio-37.3.0.data → rucio-37.5.0.data}/data/rucio/etc/alembic.ini.template +0 -0
- {rucio-37.3.0.data → rucio-37.5.0.data}/data/rucio/etc/alembic_offline.ini.template +0 -0
- {rucio-37.3.0.data → rucio-37.5.0.data}/data/rucio/etc/globus-config.yml.template +0 -0
- {rucio-37.3.0.data → rucio-37.5.0.data}/data/rucio/etc/ldap.cfg.template +0 -0
- {rucio-37.3.0.data → rucio-37.5.0.data}/data/rucio/etc/mail_templates/rule_approval_request.tmpl +0 -0
- {rucio-37.3.0.data → rucio-37.5.0.data}/data/rucio/etc/mail_templates/rule_approved_admin.tmpl +0 -0
- {rucio-37.3.0.data → rucio-37.5.0.data}/data/rucio/etc/mail_templates/rule_approved_user.tmpl +0 -0
- {rucio-37.3.0.data → rucio-37.5.0.data}/data/rucio/etc/mail_templates/rule_denied_admin.tmpl +0 -0
- {rucio-37.3.0.data → rucio-37.5.0.data}/data/rucio/etc/mail_templates/rule_denied_user.tmpl +0 -0
- {rucio-37.3.0.data → rucio-37.5.0.data}/data/rucio/etc/mail_templates/rule_ok_notification.tmpl +0 -0
- {rucio-37.3.0.data → rucio-37.5.0.data}/data/rucio/etc/rse-accounts.cfg.template +0 -0
- {rucio-37.3.0.data → rucio-37.5.0.data}/data/rucio/etc/rucio.cfg.atlas.client.template +0 -0
- {rucio-37.3.0.data → rucio-37.5.0.data}/data/rucio/tools/bootstrap.py +0 -0
- {rucio-37.3.0.data → rucio-37.5.0.data}/data/rucio/tools/merge_rucio_configs.py +0 -0
- {rucio-37.3.0.data → rucio-37.5.0.data}/data/rucio/tools/reset_database.py +0 -0
- {rucio-37.3.0.data → rucio-37.5.0.data}/scripts/rucio +0 -0
- {rucio-37.3.0.data → rucio-37.5.0.data}/scripts/rucio-abacus-account +0 -0
- {rucio-37.3.0.data → rucio-37.5.0.data}/scripts/rucio-abacus-collection-replica +0 -0
- {rucio-37.3.0.data → rucio-37.5.0.data}/scripts/rucio-abacus-rse +0 -0
- {rucio-37.3.0.data → rucio-37.5.0.data}/scripts/rucio-admin +0 -0
- {rucio-37.3.0.data → rucio-37.5.0.data}/scripts/rucio-atropos +0 -0
- {rucio-37.3.0.data → rucio-37.5.0.data}/scripts/rucio-auditor +0 -0
- {rucio-37.3.0.data → rucio-37.5.0.data}/scripts/rucio-automatix +0 -0
- {rucio-37.3.0.data → rucio-37.5.0.data}/scripts/rucio-bb8 +0 -0
- {rucio-37.3.0.data → rucio-37.5.0.data}/scripts/rucio-cache-client +0 -0
- {rucio-37.3.0.data → rucio-37.5.0.data}/scripts/rucio-cache-consumer +0 -0
- {rucio-37.3.0.data → rucio-37.5.0.data}/scripts/rucio-conveyor-finisher +0 -0
- {rucio-37.3.0.data → rucio-37.5.0.data}/scripts/rucio-conveyor-poller +0 -0
- {rucio-37.3.0.data → rucio-37.5.0.data}/scripts/rucio-conveyor-preparer +0 -0
- {rucio-37.3.0.data → rucio-37.5.0.data}/scripts/rucio-conveyor-receiver +0 -0
- {rucio-37.3.0.data → rucio-37.5.0.data}/scripts/rucio-conveyor-stager +0 -0
- {rucio-37.3.0.data → rucio-37.5.0.data}/scripts/rucio-conveyor-submitter +0 -0
- {rucio-37.3.0.data → rucio-37.5.0.data}/scripts/rucio-conveyor-throttler +0 -0
- {rucio-37.3.0.data → rucio-37.5.0.data}/scripts/rucio-dark-reaper +0 -0
- {rucio-37.3.0.data → rucio-37.5.0.data}/scripts/rucio-dumper +0 -0
- {rucio-37.3.0.data → rucio-37.5.0.data}/scripts/rucio-follower +0 -0
- {rucio-37.3.0.data → rucio-37.5.0.data}/scripts/rucio-hermes +0 -0
- {rucio-37.3.0.data → rucio-37.5.0.data}/scripts/rucio-judge-cleaner +0 -0
- {rucio-37.3.0.data → rucio-37.5.0.data}/scripts/rucio-judge-evaluator +0 -0
- {rucio-37.3.0.data → rucio-37.5.0.data}/scripts/rucio-judge-injector +0 -0
- {rucio-37.3.0.data → rucio-37.5.0.data}/scripts/rucio-judge-repairer +0 -0
- {rucio-37.3.0.data → rucio-37.5.0.data}/scripts/rucio-kronos +0 -0
- {rucio-37.3.0.data → rucio-37.5.0.data}/scripts/rucio-minos +0 -0
- {rucio-37.3.0.data → rucio-37.5.0.data}/scripts/rucio-minos-temporary-expiration +0 -0
- {rucio-37.3.0.data → rucio-37.5.0.data}/scripts/rucio-necromancer +0 -0
- {rucio-37.3.0.data → rucio-37.5.0.data}/scripts/rucio-oauth-manager +0 -0
- {rucio-37.3.0.data → rucio-37.5.0.data}/scripts/rucio-reaper +0 -0
- {rucio-37.3.0.data → rucio-37.5.0.data}/scripts/rucio-replica-recoverer +0 -0
- {rucio-37.3.0.data → rucio-37.5.0.data}/scripts/rucio-rse-decommissioner +0 -0
- {rucio-37.3.0.data → rucio-37.5.0.data}/scripts/rucio-storage-consistency-actions +0 -0
- {rucio-37.3.0.data → rucio-37.5.0.data}/scripts/rucio-transmogrifier +0 -0
- {rucio-37.3.0.data → rucio-37.5.0.data}/scripts/rucio-undertaker +0 -0
- {rucio-37.3.0.dist-info → rucio-37.5.0.dist-info}/licenses/AUTHORS.rst +0 -0
- {rucio-37.3.0.dist-info → rucio-37.5.0.dist-info}/licenses/LICENSE +0 -0
- {rucio-37.3.0.dist-info → rucio-37.5.0.dist-info}/top_level.txt +0 -0
|
@@ -81,63 +81,63 @@ class Scope(ErrorHandlingMethodView):
|
|
|
81
81
|
"""
|
|
82
82
|
---
|
|
83
83
|
summary: Get Data Identifier
|
|
84
|
-
description: Return all data identifiers in the given scope.
|
|
84
|
+
description: "Return all data identifiers in the given scope."
|
|
85
85
|
tags:
|
|
86
86
|
- Data Identifiers
|
|
87
87
|
parameters:
|
|
88
88
|
- name: scope
|
|
89
89
|
in: path
|
|
90
|
-
description: The scope.
|
|
90
|
+
description: "The scope."
|
|
91
91
|
required: true
|
|
92
92
|
schema:
|
|
93
93
|
type: string
|
|
94
94
|
style: simple
|
|
95
95
|
- name: name
|
|
96
96
|
in: query
|
|
97
|
-
description: The name of the data identifier (did).
|
|
97
|
+
description: "The name of the data identifier (did)."
|
|
98
98
|
required: false
|
|
99
99
|
schema:
|
|
100
100
|
type: string
|
|
101
101
|
- name: recursive
|
|
102
102
|
in: query
|
|
103
|
-
description: If true, retrieves child identifiers recursively for non-file types.
|
|
103
|
+
description: "If true, retrieves child identifiers recursively for non-file types."
|
|
104
104
|
required: false
|
|
105
105
|
schema:
|
|
106
106
|
type: boolean
|
|
107
107
|
responses:
|
|
108
108
|
200:
|
|
109
|
-
description: OK
|
|
109
|
+
description: "OK"
|
|
110
110
|
content:
|
|
111
111
|
application/x-json-stream:
|
|
112
112
|
schema:
|
|
113
|
-
description: Line-separated dictionary of dids.
|
|
113
|
+
description: "Line-separated dictionary of dids."
|
|
114
114
|
type: array
|
|
115
115
|
items:
|
|
116
116
|
type: object
|
|
117
|
-
description: Data identifier
|
|
117
|
+
description: "Data identifier"
|
|
118
118
|
properties:
|
|
119
119
|
scope:
|
|
120
120
|
type: string
|
|
121
|
-
description: The scope of the did.
|
|
121
|
+
description: "The scope of the did."
|
|
122
122
|
name:
|
|
123
123
|
type: string
|
|
124
|
-
description: The name of the did.
|
|
124
|
+
description: "The name of the did."
|
|
125
125
|
type:
|
|
126
126
|
type: string
|
|
127
|
-
description: The type of the did.
|
|
127
|
+
description: "The type of the did."
|
|
128
128
|
enum: ['F', 'D', 'C', 'A', 'X', 'Y', 'Z']
|
|
129
129
|
parent:
|
|
130
130
|
type: string
|
|
131
|
-
description: The parent of the did.
|
|
131
|
+
description: "The parent of the did."
|
|
132
132
|
level:
|
|
133
133
|
type: integer
|
|
134
|
-
description: The level of the did.
|
|
134
|
+
description: "The level of the did."
|
|
135
135
|
401:
|
|
136
|
-
description: Invalid Auth Token
|
|
136
|
+
description: "Invalid Auth Token"
|
|
137
137
|
404:
|
|
138
|
-
description: No Dids found
|
|
138
|
+
description: "No Dids found"
|
|
139
139
|
406:
|
|
140
|
-
description: Not acceptable
|
|
140
|
+
description: "Not acceptable"
|
|
141
141
|
"""
|
|
142
142
|
try:
|
|
143
143
|
def generate(name, recursive, vo):
|
|
@@ -164,98 +164,98 @@ class Search(ErrorHandlingMethodView):
|
|
|
164
164
|
"""
|
|
165
165
|
---
|
|
166
166
|
summary: List Data identifier
|
|
167
|
-
description: List all data identifiers in a scope which match a given metadata.
|
|
167
|
+
description: "List all data identifiers in a scope which match a given metadata."
|
|
168
168
|
tags:
|
|
169
169
|
- Data Identifiers
|
|
170
170
|
parameters:
|
|
171
171
|
- name: scope
|
|
172
172
|
in: path
|
|
173
|
-
description: The scope of the data identifiers.
|
|
173
|
+
description: "The scope of the data identifiers."
|
|
174
174
|
schema:
|
|
175
175
|
type: string
|
|
176
176
|
style: simple
|
|
177
177
|
- name: type
|
|
178
178
|
in: query
|
|
179
|
-
description: The did type to search for.
|
|
179
|
+
description: "The did type to search for."
|
|
180
180
|
schema:
|
|
181
181
|
type: string
|
|
182
182
|
enum: ['all', 'collection', 'container', 'dataset', 'file']
|
|
183
183
|
default: 'collection'
|
|
184
184
|
- name: limit
|
|
185
185
|
in: query
|
|
186
|
-
description: The maximum number od dids returned.
|
|
186
|
+
description: "The maximum number od dids returned."
|
|
187
187
|
schema:
|
|
188
188
|
type: integer
|
|
189
189
|
- name: long
|
|
190
190
|
in: query
|
|
191
|
-
description: Provides a longer output, otherwise just prints names.
|
|
191
|
+
description: "Provides a longer output, otherwise just prints names."
|
|
192
192
|
schema:
|
|
193
193
|
type: boolean
|
|
194
194
|
default: false
|
|
195
195
|
- name: recursive
|
|
196
196
|
in: query
|
|
197
|
-
description: Recursively list chilred.
|
|
197
|
+
description: "Recursively list chilred."
|
|
198
198
|
schema:
|
|
199
199
|
type: boolean
|
|
200
200
|
- name: created_before
|
|
201
201
|
in: query
|
|
202
|
-
description: Date string in RFC-1123 format where the creation date was earlier.
|
|
202
|
+
description: "Date string in RFC-1123 format where the creation date was earlier."
|
|
203
203
|
schema:
|
|
204
204
|
type: string
|
|
205
205
|
- name: created_after
|
|
206
206
|
in: query
|
|
207
|
-
description: Date string in RFC-1123 format where the creation date was later.
|
|
207
|
+
description: "Date string in RFC-1123 format where the creation date was later."
|
|
208
208
|
schema:
|
|
209
209
|
type: string
|
|
210
210
|
- name: length
|
|
211
211
|
in: query
|
|
212
|
-
description:
|
|
212
|
+
description: "Exact number of attached DIDs."
|
|
213
213
|
schema:
|
|
214
214
|
type: integer
|
|
215
215
|
- name: length.gt
|
|
216
216
|
in: query
|
|
217
|
-
description: Number of attached DIDs greater than.
|
|
217
|
+
description: "Number of attached DIDs greater than."
|
|
218
218
|
schema:
|
|
219
219
|
type: integer
|
|
220
220
|
- name: length.lt
|
|
221
221
|
in: query
|
|
222
|
-
description: Number of attached DIDs less than.
|
|
222
|
+
description: "Number of attached DIDs less than."
|
|
223
223
|
schema:
|
|
224
224
|
type: integer
|
|
225
225
|
- name: length.gte
|
|
226
226
|
in: query
|
|
227
|
-
description: Number of attached DIDs greater than or equal to
|
|
227
|
+
description: "Number of attached DIDs greater than or equal to"
|
|
228
228
|
schema:
|
|
229
229
|
type: integer
|
|
230
230
|
- name: length.lte
|
|
231
231
|
in: query
|
|
232
|
-
description: Number of attached DIDs less than or equal to.
|
|
232
|
+
description: "Number of attached DIDs less than or equal to."
|
|
233
233
|
schema:
|
|
234
234
|
type: integer
|
|
235
235
|
- name: name
|
|
236
236
|
in: query
|
|
237
|
-
description: Name or pattern of a did.
|
|
237
|
+
description: "Name or pattern of a did."
|
|
238
238
|
schema:
|
|
239
239
|
type: string
|
|
240
240
|
responses:
|
|
241
241
|
200:
|
|
242
|
-
description: OK
|
|
242
|
+
description: "OK"
|
|
243
243
|
content:
|
|
244
244
|
application/x-json-stream:
|
|
245
245
|
schema:
|
|
246
|
-
description: Line separated name of DIDs or dictionaries of DIDs for long option.
|
|
246
|
+
description: "Line separated name of DIDs or dictionaries of DIDs for long option."
|
|
247
247
|
type: array
|
|
248
248
|
items:
|
|
249
249
|
type: object
|
|
250
|
-
description:
|
|
250
|
+
description: "The name of a DID or a dictionarie of a DID for long option."
|
|
251
251
|
401:
|
|
252
|
-
description: Invalid Auth Token
|
|
252
|
+
description: "Invalid Auth Token"
|
|
253
253
|
404:
|
|
254
|
-
description: Invalid key in filter.
|
|
254
|
+
description: "Invalid key in filter."
|
|
255
255
|
406:
|
|
256
|
-
description: Not acceptable
|
|
256
|
+
description: "Not acceptable"
|
|
257
257
|
409:
|
|
258
|
-
description: Wrong did type
|
|
258
|
+
description: "Wrong did type"
|
|
259
259
|
"""
|
|
260
260
|
filters = request.args.get('filters', default=None)
|
|
261
261
|
if filters is not None:
|
|
@@ -290,7 +290,7 @@ class BulkDIDS(ErrorHandlingMethodView):
|
|
|
290
290
|
"""
|
|
291
291
|
---
|
|
292
292
|
summary: Add Dids bulk
|
|
293
|
-
description: Add new Dids in bulk.
|
|
293
|
+
description: "Add new Dids in bulk."
|
|
294
294
|
tags:
|
|
295
295
|
- Data Identifiers
|
|
296
296
|
requestBody:
|
|
@@ -299,7 +299,7 @@ class BulkDIDS(ErrorHandlingMethodView):
|
|
|
299
299
|
schema:
|
|
300
300
|
type: array
|
|
301
301
|
items:
|
|
302
|
-
description: One did to add.
|
|
302
|
+
description: "One did to add."
|
|
303
303
|
type: object
|
|
304
304
|
required:
|
|
305
305
|
- scope
|
|
@@ -307,35 +307,35 @@ class BulkDIDS(ErrorHandlingMethodView):
|
|
|
307
307
|
- type
|
|
308
308
|
properties:
|
|
309
309
|
scope:
|
|
310
|
-
description: The did scope.
|
|
310
|
+
description: "The did scope."
|
|
311
311
|
type: string
|
|
312
312
|
name:
|
|
313
|
-
description: The did name.
|
|
313
|
+
description: "The did name."
|
|
314
314
|
type: string
|
|
315
315
|
type:
|
|
316
|
-
description: The type of the did.
|
|
316
|
+
description: "The type of the did."
|
|
317
317
|
type: string
|
|
318
318
|
enum: ["F", "D", "C", "A", "X", "Y", "Z"]
|
|
319
319
|
account:
|
|
320
|
-
description: The account associated with the did.
|
|
320
|
+
description: "The account associated with the did."
|
|
321
321
|
type: string
|
|
322
322
|
statuses:
|
|
323
|
-
description: The monotonic status
|
|
323
|
+
description: "The monotonic status"
|
|
324
324
|
type: string
|
|
325
325
|
responses:
|
|
326
326
|
201:
|
|
327
|
-
description: OK
|
|
327
|
+
description: "OK"
|
|
328
328
|
content:
|
|
329
329
|
application/json:
|
|
330
330
|
schema:
|
|
331
331
|
type: string
|
|
332
332
|
enum: ["Created"]
|
|
333
333
|
401:
|
|
334
|
-
description: Invalid Auth Token
|
|
334
|
+
description: "Invalid Auth Token"
|
|
335
335
|
406:
|
|
336
|
-
description: Not acceptable
|
|
336
|
+
description: "Not acceptable"
|
|
337
337
|
409:
|
|
338
|
-
description: Did already exists
|
|
338
|
+
description: "Did already exists"
|
|
339
339
|
"""
|
|
340
340
|
dids = json_list()
|
|
341
341
|
try:
|
|
@@ -355,7 +355,7 @@ class Attachments(ErrorHandlingMethodView):
|
|
|
355
355
|
"""
|
|
356
356
|
---
|
|
357
357
|
summary: Attach did to did
|
|
358
|
-
description: Attaches a did to another did
|
|
358
|
+
description: "Attaches a did to another did"
|
|
359
359
|
tags:
|
|
360
360
|
- Data Identifiers
|
|
361
361
|
requestBody:
|
|
@@ -371,40 +371,40 @@ class Attachments(ErrorHandlingMethodView):
|
|
|
371
371
|
- dids
|
|
372
372
|
properties:
|
|
373
373
|
scope:
|
|
374
|
-
description: The scope of the did.
|
|
374
|
+
description: "The scope of the did."
|
|
375
375
|
type: string
|
|
376
376
|
name:
|
|
377
|
-
description: The name of the did.
|
|
377
|
+
description: "The name of the did."
|
|
378
378
|
type: string
|
|
379
379
|
dids:
|
|
380
|
-
description: The dids associated to the did.
|
|
380
|
+
description: "The dids associated to the did."
|
|
381
381
|
type: array
|
|
382
382
|
items:
|
|
383
383
|
type: object
|
|
384
|
-
description: A did.
|
|
384
|
+
description: "A did."
|
|
385
385
|
required:
|
|
386
386
|
- scope
|
|
387
387
|
- name
|
|
388
388
|
properties:
|
|
389
389
|
scope:
|
|
390
|
-
description: The scope of the did.
|
|
390
|
+
description: "The scope of the did."
|
|
391
391
|
type: string
|
|
392
392
|
name:
|
|
393
|
-
description: The name of the did.
|
|
393
|
+
description: "The name of the did."
|
|
394
394
|
type: string
|
|
395
395
|
rse_id:
|
|
396
|
-
description: The rse id of the did.
|
|
396
|
+
description: "The rse id of the did."
|
|
397
397
|
type: string
|
|
398
398
|
- type: object
|
|
399
399
|
required:
|
|
400
400
|
- attachments
|
|
401
401
|
properties:
|
|
402
402
|
ignore_duplicates:
|
|
403
|
-
description: If duplicates should be ignored.
|
|
403
|
+
description: "If duplicates should be ignored."
|
|
404
404
|
type: boolean
|
|
405
405
|
default: false
|
|
406
406
|
attachments:
|
|
407
|
-
description: An array containing all dids. Duplicates are not ignored.
|
|
407
|
+
description: "An array containing all dids. Duplicates are not ignored."
|
|
408
408
|
type: array
|
|
409
409
|
required:
|
|
410
410
|
- scope
|
|
@@ -412,44 +412,44 @@ class Attachments(ErrorHandlingMethodView):
|
|
|
412
412
|
- dids
|
|
413
413
|
properties:
|
|
414
414
|
scope:
|
|
415
|
-
description: The scope of the did.
|
|
415
|
+
description: "The scope of the did."
|
|
416
416
|
type: string
|
|
417
417
|
name:
|
|
418
|
-
description: The name of the did.
|
|
418
|
+
description: "The name of the did."
|
|
419
419
|
type: string
|
|
420
420
|
dids:
|
|
421
|
-
description: The dids associated to the did.
|
|
421
|
+
description: "The dids associated to the did."
|
|
422
422
|
type: array
|
|
423
423
|
items:
|
|
424
424
|
type: object
|
|
425
|
-
description: A did.
|
|
425
|
+
description: "A did."
|
|
426
426
|
required:
|
|
427
427
|
- scope
|
|
428
428
|
- name
|
|
429
429
|
properties:
|
|
430
430
|
scope:
|
|
431
|
-
description: The scope of the did.
|
|
431
|
+
description: "The scope of the did."
|
|
432
432
|
type: string
|
|
433
433
|
name:
|
|
434
|
-
description: The name of the did.
|
|
434
|
+
description: "The name of the did."
|
|
435
435
|
type: string
|
|
436
436
|
rse_id:
|
|
437
|
-
description: The rse id of the did.
|
|
437
|
+
description: "The rse id of the did."
|
|
438
438
|
type: string
|
|
439
439
|
responses:
|
|
440
440
|
200:
|
|
441
|
-
description: OK
|
|
441
|
+
description: "OK"
|
|
442
442
|
content:
|
|
443
443
|
application/json:
|
|
444
444
|
schema:
|
|
445
445
|
type: string
|
|
446
446
|
enum: ["Created"]
|
|
447
447
|
401:
|
|
448
|
-
description: Invalid Auth Token
|
|
448
|
+
description: "Invalid Auth Token"
|
|
449
449
|
404:
|
|
450
|
-
description: Not found
|
|
450
|
+
description: "Not found"
|
|
451
451
|
406:
|
|
452
|
-
description: Not acceptable
|
|
452
|
+
description: "Not acceptable"
|
|
453
453
|
"""
|
|
454
454
|
parameters = json_parse((dict, list))
|
|
455
455
|
if isinstance(parameters, list):
|
|
@@ -482,99 +482,99 @@ class DIDs(ErrorHandlingMethodView):
|
|
|
482
482
|
"""
|
|
483
483
|
---
|
|
484
484
|
summary: Get did
|
|
485
|
-
description: Get a single data identifier.
|
|
485
|
+
description: "Get a single data identifier."
|
|
486
486
|
tags:
|
|
487
487
|
- Data identifiers
|
|
488
488
|
parameters:
|
|
489
489
|
- name: scope_name
|
|
490
490
|
in: path
|
|
491
|
-
description: The scope and the name of the did.
|
|
491
|
+
description: "The scope and the name of the did."
|
|
492
492
|
schema:
|
|
493
493
|
type: string
|
|
494
494
|
style: simple
|
|
495
495
|
- name: dynamic_depth
|
|
496
496
|
in: query
|
|
497
|
-
description: The DID type at which to stop the dynamic length/size estimation
|
|
497
|
+
description: "The DID type at which to stop the dynamic length/size estimation"
|
|
498
498
|
schema:
|
|
499
499
|
type: string
|
|
500
500
|
enum: ["FILE", "DATASET"]
|
|
501
501
|
- name: dynamic
|
|
502
502
|
in: query
|
|
503
|
-
description: Same as dynamic_depth =
|
|
503
|
+
description: "Same as dynamic_depth = 'FILE'"
|
|
504
504
|
deprecated: true
|
|
505
505
|
schema:
|
|
506
506
|
type: string
|
|
507
507
|
responses:
|
|
508
508
|
200:
|
|
509
|
-
description: OK
|
|
509
|
+
description: "OK"
|
|
510
510
|
content:
|
|
511
511
|
application/json:
|
|
512
512
|
schema:
|
|
513
513
|
oneOf:
|
|
514
|
-
- description: A single file did.
|
|
514
|
+
- description: "A single file did."
|
|
515
515
|
type: object
|
|
516
516
|
properties:
|
|
517
517
|
scope:
|
|
518
|
-
description: The scope of the did.
|
|
518
|
+
description: "The scope of the did."
|
|
519
519
|
type: string
|
|
520
520
|
name:
|
|
521
|
-
description: The name of the did.
|
|
521
|
+
description: "The name of the did."
|
|
522
522
|
type: string
|
|
523
523
|
type:
|
|
524
|
-
description: The type of the string.
|
|
524
|
+
description: "The type of the string."
|
|
525
525
|
type: string
|
|
526
526
|
account:
|
|
527
|
-
description: The associated account.
|
|
527
|
+
description: "The associated account."
|
|
528
528
|
type: string
|
|
529
529
|
bytes:
|
|
530
|
-
description: The size in bytes.
|
|
530
|
+
description: "The size in bytes."
|
|
531
531
|
type: integer
|
|
532
532
|
length:
|
|
533
|
-
description: The number of files. Corresponses to 1.
|
|
533
|
+
description: "The number of files. Corresponses to 1."
|
|
534
534
|
type: integer
|
|
535
535
|
enum: [1]
|
|
536
536
|
md5:
|
|
537
|
-
description: md5 checksum.
|
|
537
|
+
description: "md5 checksum."
|
|
538
538
|
type: string
|
|
539
539
|
adler32:
|
|
540
|
-
description: adler32 checksum.
|
|
540
|
+
description: "adler32 checksum."
|
|
541
541
|
type: string
|
|
542
|
-
- description: A single file did.
|
|
542
|
+
- description: "A single file did."
|
|
543
543
|
type: object
|
|
544
544
|
properties:
|
|
545
545
|
scope:
|
|
546
|
-
description: The scope of the did.
|
|
546
|
+
description: "The scope of the did."
|
|
547
547
|
type: string
|
|
548
548
|
name:
|
|
549
|
-
description: The name of the did.
|
|
549
|
+
description: "The name of the did."
|
|
550
550
|
type: string
|
|
551
551
|
type:
|
|
552
|
-
description: The type of the string.
|
|
552
|
+
description: "The type of the string."
|
|
553
553
|
type: string
|
|
554
554
|
account:
|
|
555
|
-
description: The associated account.
|
|
555
|
+
description: "The associated account."
|
|
556
556
|
type: string
|
|
557
557
|
open:
|
|
558
|
-
description: If the did is write open.
|
|
558
|
+
description: "If the did is write open."
|
|
559
559
|
type: boolean
|
|
560
560
|
monotonic:
|
|
561
|
-
description: If the did is monotonic.
|
|
561
|
+
description: "If the did is monotonic."
|
|
562
562
|
type: boolean
|
|
563
563
|
expired_at:
|
|
564
|
-
description: When the did expired.
|
|
564
|
+
description: "When the did expired."
|
|
565
565
|
type: string
|
|
566
566
|
length:
|
|
567
|
-
description: The number of associated dids.
|
|
567
|
+
description: "The number of associated dids."
|
|
568
568
|
type: number
|
|
569
569
|
bytes:
|
|
570
|
-
description: The size in bytes.
|
|
570
|
+
description: "The size in bytes."
|
|
571
571
|
type: number
|
|
572
572
|
401:
|
|
573
|
-
description: Invalid Auth Token
|
|
573
|
+
description: "Invalid Auth Token"
|
|
574
574
|
404:
|
|
575
|
-
description: Scope not found
|
|
575
|
+
description: "Scope not found"
|
|
576
576
|
406:
|
|
577
|
-
description: Not acceptable
|
|
577
|
+
description: "Not acceptable"
|
|
578
578
|
"""
|
|
579
579
|
try:
|
|
580
580
|
scope, name = parse_scope_name(scope_name, request.environ['vo'])
|
|
@@ -600,13 +600,13 @@ class DIDs(ErrorHandlingMethodView):
|
|
|
600
600
|
"""
|
|
601
601
|
---
|
|
602
602
|
summary: Create did
|
|
603
|
-
description: Create a new data identifier.
|
|
603
|
+
description: "Create a new data identifier."
|
|
604
604
|
tags:
|
|
605
605
|
- Data Identifiers
|
|
606
606
|
parameters:
|
|
607
607
|
- name: scope_name
|
|
608
608
|
in: path
|
|
609
|
-
description: The scope and the name of the did.
|
|
609
|
+
description: "The scope and the name of the did."
|
|
610
610
|
schema:
|
|
611
611
|
type: string
|
|
612
612
|
style: simple
|
|
@@ -619,53 +619,53 @@ class DIDs(ErrorHandlingMethodView):
|
|
|
619
619
|
- type
|
|
620
620
|
properties:
|
|
621
621
|
type:
|
|
622
|
-
description: The type of the did.
|
|
622
|
+
description: "The type of the did."
|
|
623
623
|
type: string
|
|
624
624
|
statuses:
|
|
625
|
-
description: The statuses of the did.
|
|
625
|
+
description: "The statuses of the did."
|
|
626
626
|
type: string
|
|
627
627
|
meta:
|
|
628
|
-
description: The meta of the did.
|
|
628
|
+
description: "The meta of the did."
|
|
629
629
|
type: string
|
|
630
630
|
rules:
|
|
631
|
-
description: The rules associated with the did.
|
|
631
|
+
description: "The rules associated with the did."
|
|
632
632
|
type: array
|
|
633
633
|
items:
|
|
634
634
|
type: object
|
|
635
|
-
description: A rule.
|
|
635
|
+
description: "A rule."
|
|
636
636
|
lifetime:
|
|
637
|
-
description: The lifetime of the did.
|
|
637
|
+
description: "The lifetime of the did."
|
|
638
638
|
type: string
|
|
639
639
|
dids:
|
|
640
|
-
description: The dids associated with the did.
|
|
640
|
+
description: "The dids associated with the did."
|
|
641
641
|
type: array
|
|
642
642
|
items:
|
|
643
643
|
type: object
|
|
644
|
-
description: The did associated with a did.
|
|
644
|
+
description: "The did associated with a did."
|
|
645
645
|
properties:
|
|
646
646
|
scope:
|
|
647
|
-
description: The scope of the did.
|
|
647
|
+
description: "The scope of the did."
|
|
648
648
|
type: string
|
|
649
649
|
name:
|
|
650
|
-
description: The name of the did.
|
|
650
|
+
description: "The name of the did."
|
|
651
651
|
type: string
|
|
652
652
|
rse:
|
|
653
|
-
description: The rse associated with the did.
|
|
653
|
+
description: "The rse associated with the did."
|
|
654
654
|
type: string
|
|
655
655
|
responses:
|
|
656
656
|
201:
|
|
657
|
-
description: OK
|
|
657
|
+
description: "OK"
|
|
658
658
|
content:
|
|
659
659
|
application/json:
|
|
660
660
|
schema:
|
|
661
661
|
type: string
|
|
662
662
|
enum: ['Created']
|
|
663
663
|
401:
|
|
664
|
-
description: Invalid Auth Token
|
|
664
|
+
description: "Invalid Auth Token"
|
|
665
665
|
404:
|
|
666
|
-
description: Did or scope not found
|
|
666
|
+
description: "Did or scope not found"
|
|
667
667
|
409:
|
|
668
|
-
description: Did already exists
|
|
668
|
+
description: "Did already exists"
|
|
669
669
|
"""
|
|
670
670
|
try:
|
|
671
671
|
scope, name = parse_scope_name(scope_name, request.environ['vo'])
|
|
@@ -713,13 +713,13 @@ class DIDs(ErrorHandlingMethodView):
|
|
|
713
713
|
"""
|
|
714
714
|
---
|
|
715
715
|
summary: Update did
|
|
716
|
-
description: Update a did.
|
|
716
|
+
description: "Update a did."
|
|
717
717
|
tags:
|
|
718
718
|
- Data Identifiers
|
|
719
719
|
parameters:
|
|
720
720
|
- name: scope_name
|
|
721
721
|
in: path
|
|
722
|
-
description: The scope and the name of the did.
|
|
722
|
+
description: "The scope and the name of the did."
|
|
723
723
|
schema:
|
|
724
724
|
type: string
|
|
725
725
|
style: simple
|
|
@@ -730,17 +730,17 @@ class DIDs(ErrorHandlingMethodView):
|
|
|
730
730
|
type: object
|
|
731
731
|
properties:
|
|
732
732
|
open:
|
|
733
|
-
description: The open status
|
|
733
|
+
description: "The open status"
|
|
734
734
|
type: boolean
|
|
735
735
|
responses:
|
|
736
736
|
200:
|
|
737
|
-
description: OK
|
|
737
|
+
description: "OK"
|
|
738
738
|
401:
|
|
739
|
-
description: Invalid Auth Token
|
|
739
|
+
description: "Invalid Auth Token"
|
|
740
740
|
404:
|
|
741
|
-
description: Did not found
|
|
741
|
+
description: "Did not found"
|
|
742
742
|
409:
|
|
743
|
-
description: Wrong status
|
|
743
|
+
description: "Wrong status"
|
|
744
744
|
"""
|
|
745
745
|
try:
|
|
746
746
|
scope, name = parse_scope_name(scope_name, request.environ['vo'])
|
|
@@ -768,23 +768,23 @@ class Attachment(ErrorHandlingMethodView):
|
|
|
768
768
|
"""
|
|
769
769
|
---
|
|
770
770
|
summary: Get did
|
|
771
|
-
description: Returns the contents of a data identifier.
|
|
771
|
+
description: "Returns the contents of a data identifier."
|
|
772
772
|
tags:
|
|
773
773
|
- Data Identifiers
|
|
774
774
|
parameters:
|
|
775
775
|
- name: scope_name
|
|
776
776
|
in: path
|
|
777
|
-
description: The scope and the name of the did.
|
|
777
|
+
description: "The scope and the name of the did."
|
|
778
778
|
schema:
|
|
779
779
|
type: string
|
|
780
780
|
style: simple
|
|
781
781
|
responses:
|
|
782
782
|
200:
|
|
783
|
-
description: Did found
|
|
783
|
+
description: "Did found"
|
|
784
784
|
content:
|
|
785
785
|
application/x-json-stream:
|
|
786
786
|
schema:
|
|
787
|
-
description: The contents of a did. Items are line separated.
|
|
787
|
+
description: "The contents of a did. Items are line separated."
|
|
788
788
|
type: array
|
|
789
789
|
items:
|
|
790
790
|
type: object
|
|
@@ -797,29 +797,29 @@ class Attachment(ErrorHandlingMethodView):
|
|
|
797
797
|
- md5
|
|
798
798
|
properties:
|
|
799
799
|
scope:
|
|
800
|
-
description: The scope of the did.
|
|
800
|
+
description: "The scope of the did."
|
|
801
801
|
type: string
|
|
802
802
|
name:
|
|
803
|
-
description: The name of the did.
|
|
803
|
+
description: "The name of the did."
|
|
804
804
|
type: string
|
|
805
805
|
type:
|
|
806
|
-
description: The type of the did.
|
|
806
|
+
description: "The type of the did."
|
|
807
807
|
type: string
|
|
808
808
|
bytes:
|
|
809
|
-
description: The size of the did.
|
|
809
|
+
description: "The size of the did."
|
|
810
810
|
type: number
|
|
811
811
|
adler32:
|
|
812
|
-
description: The adler32 checksum of the did.
|
|
812
|
+
description: "The adler32 checksum of the did."
|
|
813
813
|
type: string
|
|
814
814
|
md5:
|
|
815
|
-
description: The md5 checksum of the did.
|
|
815
|
+
description: "The md5 checksum of the did."
|
|
816
816
|
type: string
|
|
817
817
|
401:
|
|
818
|
-
description: Invalid Auth Token
|
|
818
|
+
description: "Invalid Auth Token"
|
|
819
819
|
404:
|
|
820
|
-
description: Scope not found
|
|
820
|
+
description: "Scope not found"
|
|
821
821
|
406:
|
|
822
|
-
description: Not acceptable
|
|
822
|
+
description: "Not acceptable"
|
|
823
823
|
"""
|
|
824
824
|
try:
|
|
825
825
|
scope, name = parse_scope_name(scope_name, request.environ['vo'])
|
|
@@ -838,13 +838,13 @@ class Attachment(ErrorHandlingMethodView):
|
|
|
838
838
|
"""
|
|
839
839
|
---
|
|
840
840
|
summary: Add dids to did
|
|
841
|
-
description: Append data identifiers to data identifiers.
|
|
841
|
+
description: "Append data identifiers to data identifiers."
|
|
842
842
|
tags:
|
|
843
843
|
- Data Identifiers
|
|
844
844
|
parameters:
|
|
845
845
|
- name: scope_name
|
|
846
846
|
in: path
|
|
847
|
-
description: The scope and the name of the did.
|
|
847
|
+
description: "The scope and the name of the did."
|
|
848
848
|
schema:
|
|
849
849
|
type: string
|
|
850
850
|
style: simple
|
|
@@ -857,40 +857,40 @@ class Attachment(ErrorHandlingMethodView):
|
|
|
857
857
|
- dids
|
|
858
858
|
properties:
|
|
859
859
|
rse:
|
|
860
|
-
description: The name of the rse.
|
|
860
|
+
description: "The name of the rse."
|
|
861
861
|
type: string
|
|
862
862
|
account:
|
|
863
|
-
description: The account which attaches the dids.
|
|
863
|
+
description: "The account which attaches the dids."
|
|
864
864
|
type: string
|
|
865
865
|
dids:
|
|
866
|
-
description: The dids to attach.
|
|
866
|
+
description: "The dids to attach."
|
|
867
867
|
type: object
|
|
868
868
|
properties:
|
|
869
869
|
account:
|
|
870
|
-
description: The account attaching the did.
|
|
870
|
+
description: "The account attaching the did."
|
|
871
871
|
type: string
|
|
872
872
|
scope:
|
|
873
|
-
description: The scope of the did.
|
|
873
|
+
description: "The scope of the did."
|
|
874
874
|
type: string
|
|
875
875
|
name:
|
|
876
|
-
description: The name of the did.
|
|
876
|
+
description: "The name of the did."
|
|
877
877
|
type: string
|
|
878
878
|
responses:
|
|
879
879
|
201:
|
|
880
|
-
description: OK
|
|
880
|
+
description: "OK"
|
|
881
881
|
content:
|
|
882
882
|
application/json:
|
|
883
883
|
schema:
|
|
884
884
|
type: string
|
|
885
885
|
enum: ["Created"]
|
|
886
886
|
401:
|
|
887
|
-
description: Invalid Auth Token
|
|
887
|
+
description: "Invalid Auth Token"
|
|
888
888
|
404:
|
|
889
|
-
description: Did not found
|
|
889
|
+
description: "Did not found"
|
|
890
890
|
406:
|
|
891
|
-
description: Not acceptable
|
|
891
|
+
description: "Not acceptable"
|
|
892
892
|
409:
|
|
893
|
-
description: Already attached
|
|
893
|
+
description: "Already attached"
|
|
894
894
|
"""
|
|
895
895
|
try:
|
|
896
896
|
scope, name = parse_scope_name(scope_name, request.environ['vo'])
|
|
@@ -916,13 +916,13 @@ class Attachment(ErrorHandlingMethodView):
|
|
|
916
916
|
"""
|
|
917
917
|
---
|
|
918
918
|
summary: Detach dids from did
|
|
919
|
-
description: Detach data identifiers from data identifiers.
|
|
919
|
+
description: "Detach data identifiers from data identifiers."
|
|
920
920
|
tags:
|
|
921
921
|
- Data Identifiers
|
|
922
922
|
parameters:
|
|
923
923
|
- name: scope_name
|
|
924
924
|
in: path
|
|
925
|
-
description: The scope and the name of the did.
|
|
925
|
+
description: "The scope and the name of the did."
|
|
926
926
|
schema:
|
|
927
927
|
type: string
|
|
928
928
|
style: simple
|
|
@@ -935,24 +935,24 @@ class Attachment(ErrorHandlingMethodView):
|
|
|
935
935
|
- dids
|
|
936
936
|
properties:
|
|
937
937
|
dids:
|
|
938
|
-
description: The dids to detach.
|
|
938
|
+
description: "The dids to detach."
|
|
939
939
|
type: array
|
|
940
940
|
items:
|
|
941
941
|
type: object
|
|
942
942
|
properties:
|
|
943
943
|
scope:
|
|
944
|
-
description: The scope of the did.
|
|
944
|
+
description: "The scope of the did."
|
|
945
945
|
type: string
|
|
946
946
|
name:
|
|
947
|
-
description: The name of the did.
|
|
947
|
+
description: "The name of the did."
|
|
948
948
|
type: string
|
|
949
949
|
responses:
|
|
950
950
|
200:
|
|
951
|
-
description: OK
|
|
951
|
+
description: "OK"
|
|
952
952
|
401:
|
|
953
|
-
description: Invalid Auth Token
|
|
953
|
+
description: "Invalid Auth Token"
|
|
954
954
|
404:
|
|
955
|
-
description: Did not found
|
|
955
|
+
description: "Did not found"
|
|
956
956
|
"""
|
|
957
957
|
try:
|
|
958
958
|
scope, name = parse_scope_name(scope_name, request.environ['vo'])
|
|
@@ -981,61 +981,61 @@ class AttachmentHistory(ErrorHandlingMethodView):
|
|
|
981
981
|
"""
|
|
982
982
|
---
|
|
983
983
|
summary: Get history
|
|
984
|
-
description: Returns the content history of a data identifier.
|
|
984
|
+
description: "Returns the content history of a data identifier."
|
|
985
985
|
tags:
|
|
986
986
|
- Data Identifiers
|
|
987
987
|
parameters:
|
|
988
988
|
- name: scope_name
|
|
989
989
|
in: path
|
|
990
|
-
description: The scope and the name of the did.
|
|
990
|
+
description: "The scope and the name of the did."
|
|
991
991
|
schema:
|
|
992
992
|
type: string
|
|
993
993
|
style: simple
|
|
994
994
|
responses:
|
|
995
995
|
200:
|
|
996
|
-
description: Did found
|
|
996
|
+
description: "Did found"
|
|
997
997
|
content:
|
|
998
998
|
application/x-json-stream:
|
|
999
999
|
schema:
|
|
1000
|
-
description: The dids with their information and history. Elements are separated by new line characters.
|
|
1000
|
+
description: "The dids with their information and history. Elements are separated by new line characters."
|
|
1001
1001
|
type: array
|
|
1002
1002
|
items:
|
|
1003
1003
|
type: object
|
|
1004
|
-
description: A single did with history data.
|
|
1004
|
+
description: "A single did with history data."
|
|
1005
1005
|
properties:
|
|
1006
1006
|
scope:
|
|
1007
|
-
description: The scope of the did.
|
|
1007
|
+
description: "The scope of the did."
|
|
1008
1008
|
type: string
|
|
1009
1009
|
name:
|
|
1010
|
-
description: The name of the did.
|
|
1010
|
+
description: "The name of the did."
|
|
1011
1011
|
type: string
|
|
1012
1012
|
type:
|
|
1013
|
-
description: The type of the did.
|
|
1013
|
+
description: "The type of the did."
|
|
1014
1014
|
type: string
|
|
1015
1015
|
bytes:
|
|
1016
|
-
description: The size of the did in bytes.
|
|
1016
|
+
description: "The size of the did in bytes."
|
|
1017
1017
|
type: integer
|
|
1018
1018
|
adler32:
|
|
1019
|
-
description: The abler32 sha checksum.
|
|
1019
|
+
description: "The abler32 sha checksum."
|
|
1020
1020
|
type: string
|
|
1021
1021
|
md5:
|
|
1022
|
-
description: The md5 checksum.
|
|
1022
|
+
description: "The md5 checksum."
|
|
1023
1023
|
type: string
|
|
1024
1024
|
deleted_at:
|
|
1025
|
-
description: The deleted_at date time.
|
|
1025
|
+
description: "The deleted_at date time."
|
|
1026
1026
|
type: string
|
|
1027
1027
|
created_at:
|
|
1028
|
-
description: The created_at date time.
|
|
1028
|
+
description: "The created_at date time."
|
|
1029
1029
|
type: string
|
|
1030
1030
|
updated_at:
|
|
1031
|
-
description: The last time the did was updated.
|
|
1031
|
+
description: "The last time the did was updated."
|
|
1032
1032
|
type: string
|
|
1033
1033
|
401:
|
|
1034
|
-
description: Invalid Auth Token
|
|
1034
|
+
description: "Invalid Auth Token"
|
|
1035
1035
|
404:
|
|
1036
|
-
description: Did not found
|
|
1036
|
+
description: "Did not found"
|
|
1037
1037
|
406:
|
|
1038
|
-
description: Not acceptable
|
|
1038
|
+
description: "Not acceptable"
|
|
1039
1039
|
"""
|
|
1040
1040
|
try:
|
|
1041
1041
|
scope, name = parse_scope_name(scope_name, request.environ['vo'])
|
|
@@ -1058,84 +1058,84 @@ class Files(ErrorHandlingMethodView):
|
|
|
1058
1058
|
"""
|
|
1059
1059
|
---
|
|
1060
1060
|
summary: Get replicas
|
|
1061
|
-
description: List all replicas for a did.
|
|
1061
|
+
description: "List all replicas for a did."
|
|
1062
1062
|
tags:
|
|
1063
1063
|
- Data Identifiers
|
|
1064
1064
|
parameters:
|
|
1065
1065
|
- name: scope_name
|
|
1066
1066
|
in: path
|
|
1067
|
-
description: The scope and the name of the did.
|
|
1067
|
+
description: "The scope and the name of the did."
|
|
1068
1068
|
schema:
|
|
1069
1069
|
type: string
|
|
1070
1070
|
style: simple
|
|
1071
1071
|
- name: long
|
|
1072
1072
|
in: query
|
|
1073
|
-
description: Flag to trigger long output.
|
|
1073
|
+
description: "Flag to trigger long output."
|
|
1074
1074
|
schema:
|
|
1075
1075
|
type: object
|
|
1076
1076
|
required: false
|
|
1077
1077
|
responses:
|
|
1078
1078
|
200:
|
|
1079
|
-
description: OK
|
|
1079
|
+
description: "OK"
|
|
1080
1080
|
content:
|
|
1081
1081
|
application/x-json-stream:
|
|
1082
1082
|
schema:
|
|
1083
1083
|
oneOf:
|
|
1084
|
-
- description: All replica information if `long` is defined.
|
|
1084
|
+
- description: "All replica information if `long` is defined."
|
|
1085
1085
|
type: array
|
|
1086
1086
|
items:
|
|
1087
1087
|
type: object
|
|
1088
1088
|
properties:
|
|
1089
1089
|
scope:
|
|
1090
|
-
description: The scope of the did.
|
|
1090
|
+
description: "The scope of the did."
|
|
1091
1091
|
type: string
|
|
1092
1092
|
name:
|
|
1093
|
-
description: The name of the did.
|
|
1093
|
+
description: "The name of the did."
|
|
1094
1094
|
type: string
|
|
1095
1095
|
bytes:
|
|
1096
|
-
description: The size of the did in bytes.
|
|
1096
|
+
description: "The size of the did in bytes."
|
|
1097
1097
|
type: integer
|
|
1098
1098
|
guid:
|
|
1099
|
-
description: The guid of the did.
|
|
1099
|
+
description: "The guid of the did."
|
|
1100
1100
|
type: string
|
|
1101
1101
|
events:
|
|
1102
|
-
description: The number of events of the did.
|
|
1102
|
+
description: "The number of events of the did."
|
|
1103
1103
|
type: integer
|
|
1104
1104
|
adler32:
|
|
1105
|
-
description: The adler32 checksum.
|
|
1105
|
+
description: "The adler32 checksum."
|
|
1106
1106
|
type: string
|
|
1107
1107
|
lumiblocknr:
|
|
1108
|
-
description: The lumi block nr. Only available if `long` is defined in the query.
|
|
1108
|
+
description: "The lumi block nr. Only available if `long` is defined in the query."
|
|
1109
1109
|
type: integer
|
|
1110
|
-
- description: All replica information.
|
|
1110
|
+
- description: "All replica information."
|
|
1111
1111
|
type: array
|
|
1112
1112
|
items:
|
|
1113
1113
|
type: object
|
|
1114
1114
|
properties:
|
|
1115
1115
|
scope:
|
|
1116
|
-
description: The scope of the did.
|
|
1116
|
+
description: "The scope of the did."
|
|
1117
1117
|
type: string
|
|
1118
1118
|
name:
|
|
1119
|
-
description: The name of the did.
|
|
1119
|
+
description: "The name of the did."
|
|
1120
1120
|
type: string
|
|
1121
1121
|
bytes:
|
|
1122
|
-
description: The size of the did in bytes.
|
|
1122
|
+
description: "The size of the did in bytes."
|
|
1123
1123
|
type: integer
|
|
1124
1124
|
guid:
|
|
1125
|
-
description: The guid of the did.
|
|
1125
|
+
description: "The guid of the did."
|
|
1126
1126
|
type: string
|
|
1127
1127
|
events:
|
|
1128
|
-
description: The number of events of the did.
|
|
1128
|
+
description: "The number of events of the did."
|
|
1129
1129
|
type: integer
|
|
1130
1130
|
adler32:
|
|
1131
|
-
description: The adler32 checksum.
|
|
1131
|
+
description: "The adler32 checksum."
|
|
1132
1132
|
type: string
|
|
1133
1133
|
401:
|
|
1134
|
-
description: Invalid Auth Token
|
|
1134
|
+
description: "Invalid Auth Token"
|
|
1135
1135
|
404:
|
|
1136
|
-
description: Did not found
|
|
1136
|
+
description: "Did not found"
|
|
1137
1137
|
406:
|
|
1138
|
-
description: Not acceptable
|
|
1138
|
+
description: "Not acceptable"
|
|
1139
1139
|
"""
|
|
1140
1140
|
long = 'long' in request.args
|
|
1141
1141
|
|
|
@@ -1160,7 +1160,7 @@ class BulkFiles(ErrorHandlingMethodView):
|
|
|
1160
1160
|
"""
|
|
1161
1161
|
---
|
|
1162
1162
|
summary: List files bulk
|
|
1163
|
-
description: List files in multiple dids
|
|
1163
|
+
description: "List files in multiple dids"
|
|
1164
1164
|
tags:
|
|
1165
1165
|
- Data Identifiers
|
|
1166
1166
|
requestBody:
|
|
@@ -1169,56 +1169,56 @@ class BulkFiles(ErrorHandlingMethodView):
|
|
|
1169
1169
|
schema:
|
|
1170
1170
|
type: array
|
|
1171
1171
|
items:
|
|
1172
|
-
description: One did to list files.
|
|
1172
|
+
description: "One did to list files."
|
|
1173
1173
|
type: object
|
|
1174
1174
|
required:
|
|
1175
1175
|
- scope
|
|
1176
1176
|
- name
|
|
1177
1177
|
properties:
|
|
1178
1178
|
scope:
|
|
1179
|
-
description: The did scope.
|
|
1179
|
+
description: "The did scope."
|
|
1180
1180
|
type: string
|
|
1181
1181
|
name:
|
|
1182
|
-
description: The did name.
|
|
1182
|
+
description: "The did name."
|
|
1183
1183
|
type: string
|
|
1184
1184
|
responses:
|
|
1185
1185
|
201:
|
|
1186
|
-
description: OK
|
|
1186
|
+
description: "OK"
|
|
1187
1187
|
content:
|
|
1188
1188
|
application/x-json-stream:
|
|
1189
1189
|
schema:
|
|
1190
|
-
description: All collections file content.
|
|
1190
|
+
description: "All collections file content."
|
|
1191
1191
|
type: array
|
|
1192
1192
|
items:
|
|
1193
|
-
description: Collections file content.
|
|
1193
|
+
description: "Collections file content."
|
|
1194
1194
|
type: object
|
|
1195
1195
|
properties:
|
|
1196
1196
|
parent_scope:
|
|
1197
|
-
description: The scope of the parent did.
|
|
1197
|
+
description: "The scope of the parent did."
|
|
1198
1198
|
type: string
|
|
1199
1199
|
parent_name:
|
|
1200
|
-
description: The name of the parent did.
|
|
1200
|
+
description: "The name of the parent did."
|
|
1201
1201
|
type: string
|
|
1202
1202
|
scope:
|
|
1203
|
-
description: The scope of the did.
|
|
1203
|
+
description: "The scope of the did."
|
|
1204
1204
|
type: string
|
|
1205
1205
|
name:
|
|
1206
|
-
description: The name of the did.
|
|
1206
|
+
description: "The name of the did."
|
|
1207
1207
|
type: string
|
|
1208
1208
|
bytes:
|
|
1209
|
-
description: The size of the did in bytes.
|
|
1209
|
+
description: "The size of the did in bytes."
|
|
1210
1210
|
type: integer
|
|
1211
1211
|
guid:
|
|
1212
|
-
description: The guid of the did.
|
|
1212
|
+
description: "The guid of the did."
|
|
1213
1213
|
type: string
|
|
1214
1214
|
events:
|
|
1215
|
-
description: The number of events of the did.
|
|
1215
|
+
description: "The number of events of the did."
|
|
1216
1216
|
type: integer
|
|
1217
1217
|
adler32:
|
|
1218
|
-
description: The adler32 checksum.
|
|
1218
|
+
description: "The adler32 checksum."
|
|
1219
1219
|
type: string
|
|
1220
1220
|
401:
|
|
1221
|
-
description: Invalid Auth Token
|
|
1221
|
+
description: "Invalid Auth Token"
|
|
1222
1222
|
"""
|
|
1223
1223
|
parameters = json_parameters(parse_response)
|
|
1224
1224
|
dids = param_get(parameters, 'dids', default=[])
|
|
@@ -1240,43 +1240,43 @@ class Parents(ErrorHandlingMethodView):
|
|
|
1240
1240
|
"""
|
|
1241
1241
|
---
|
|
1242
1242
|
summary: Get Parents
|
|
1243
|
-
description: Lists all parents of the did.
|
|
1243
|
+
description: "Lists all parents of the did."
|
|
1244
1244
|
tags:
|
|
1245
1245
|
- Data Identifiers
|
|
1246
1246
|
parameters:
|
|
1247
1247
|
- name: scope_name
|
|
1248
1248
|
in: path
|
|
1249
|
-
description: The scope and the name of the did.
|
|
1249
|
+
description: "The scope and the name of the did."
|
|
1250
1250
|
schema:
|
|
1251
1251
|
type: string
|
|
1252
1252
|
style: simple
|
|
1253
1253
|
responses:
|
|
1254
1254
|
200:
|
|
1255
|
-
description: OK
|
|
1255
|
+
description: "OK"
|
|
1256
1256
|
content:
|
|
1257
1257
|
application/x-json-stream:
|
|
1258
1258
|
schema:
|
|
1259
|
-
description: The parents of the did.
|
|
1259
|
+
description: "The parents of the did."
|
|
1260
1260
|
type: array
|
|
1261
1261
|
items:
|
|
1262
1262
|
type: object
|
|
1263
|
-
description: A parent of the did.
|
|
1263
|
+
description: "A parent of the did."
|
|
1264
1264
|
properties:
|
|
1265
1265
|
scope:
|
|
1266
|
-
description: The scope of the did.
|
|
1266
|
+
description: "The scope of the did."
|
|
1267
1267
|
type: string
|
|
1268
1268
|
name:
|
|
1269
|
-
description: The name of the did.
|
|
1269
|
+
description: "The name of the did."
|
|
1270
1270
|
type: string
|
|
1271
1271
|
type:
|
|
1272
|
-
description: The type of the did.
|
|
1272
|
+
description: "The type of the did."
|
|
1273
1273
|
type: string
|
|
1274
1274
|
401:
|
|
1275
|
-
description: Invalid Auth Token
|
|
1275
|
+
description: "Invalid Auth Token"
|
|
1276
1276
|
404:
|
|
1277
|
-
description: Did not found
|
|
1277
|
+
description: "Did not found"
|
|
1278
1278
|
406:
|
|
1279
|
-
description: Not acceptable
|
|
1279
|
+
description: "Not acceptable"
|
|
1280
1280
|
"""
|
|
1281
1281
|
try:
|
|
1282
1282
|
scope, name = parse_scope_name(scope_name, request.environ['vo'])
|
|
@@ -1299,38 +1299,38 @@ class Meta(ErrorHandlingMethodView):
|
|
|
1299
1299
|
"""
|
|
1300
1300
|
---
|
|
1301
1301
|
summary: Get metadata
|
|
1302
|
-
description: Get the metadata of a did.
|
|
1302
|
+
description: "Get the metadata of a did."
|
|
1303
1303
|
tags:
|
|
1304
1304
|
- Data Identifiers
|
|
1305
1305
|
parameters:
|
|
1306
1306
|
- name: scope_name
|
|
1307
1307
|
in: path
|
|
1308
|
-
description: The scope and the name of the did.
|
|
1308
|
+
description: "The scope and the name of the did."
|
|
1309
1309
|
schema:
|
|
1310
1310
|
type: string
|
|
1311
1311
|
style: simple
|
|
1312
1312
|
- name: plugin
|
|
1313
1313
|
in: query
|
|
1314
|
-
description: The plugin to use.
|
|
1314
|
+
description: "The plugin to use."
|
|
1315
1315
|
schema:
|
|
1316
1316
|
type: string
|
|
1317
1317
|
default: DID_COLUMN
|
|
1318
1318
|
responses:
|
|
1319
1319
|
200:
|
|
1320
|
-
description: OK
|
|
1320
|
+
description: "OK"
|
|
1321
1321
|
content:
|
|
1322
1322
|
application/json:
|
|
1323
1323
|
schema:
|
|
1324
|
-
description: A data identifier with all attributes.
|
|
1324
|
+
description: "A data identifier with all attributes."
|
|
1325
1325
|
type: object
|
|
1326
1326
|
400:
|
|
1327
|
-
description: Bad Request - Invalid metadata plugin specified
|
|
1327
|
+
description: "Bad Request - Invalid metadata plugin specified"
|
|
1328
1328
|
401:
|
|
1329
|
-
description: Invalid Auth Token
|
|
1329
|
+
description: "Invalid Auth Token"
|
|
1330
1330
|
404:
|
|
1331
|
-
description: Did not found
|
|
1331
|
+
description: "Did not found"
|
|
1332
1332
|
406:
|
|
1333
|
-
description: Not acceptable
|
|
1333
|
+
description: "Not acceptable"
|
|
1334
1334
|
"""
|
|
1335
1335
|
try:
|
|
1336
1336
|
scope, name = parse_scope_name(scope_name, request.environ['vo'])
|
|
@@ -1350,13 +1350,13 @@ class Meta(ErrorHandlingMethodView):
|
|
|
1350
1350
|
"""
|
|
1351
1351
|
---
|
|
1352
1352
|
summary: Add metadata
|
|
1353
|
-
description: Add metadata to a did.
|
|
1353
|
+
description: "Add metadata to a did."
|
|
1354
1354
|
tags:
|
|
1355
1355
|
- Data Identifiers
|
|
1356
1356
|
parameters:
|
|
1357
1357
|
- name: scope_name
|
|
1358
1358
|
in: path
|
|
1359
|
-
description: The scope and the name of the did.
|
|
1359
|
+
description: "The scope and the name of the did."
|
|
1360
1360
|
schema:
|
|
1361
1361
|
type: string
|
|
1362
1362
|
style: simple
|
|
@@ -1369,26 +1369,26 @@ class Meta(ErrorHandlingMethodView):
|
|
|
1369
1369
|
- meta
|
|
1370
1370
|
properties:
|
|
1371
1371
|
meta:
|
|
1372
|
-
description: The metadata to add. A dictionary containing the metadata name as key and the value as value.
|
|
1372
|
+
description: "The metadata to add. A dictionary containing the metadata name as key and the value as value."
|
|
1373
1373
|
type: object
|
|
1374
1374
|
recursive:
|
|
1375
|
-
description: Flag if the metadata should be applied recirsively to children.
|
|
1375
|
+
description: "Flag if the metadata should be applied recirsively to children."
|
|
1376
1376
|
type: boolean
|
|
1377
1377
|
default: false
|
|
1378
1378
|
responses:
|
|
1379
1379
|
201:
|
|
1380
|
-
description: Created
|
|
1380
|
+
description: "Created"
|
|
1381
1381
|
content:
|
|
1382
1382
|
application/json:
|
|
1383
1383
|
schema:
|
|
1384
1384
|
type: string
|
|
1385
1385
|
enum: ["Created"]
|
|
1386
1386
|
401:
|
|
1387
|
-
description: Invalid Auth Token
|
|
1387
|
+
description: "Invalid Auth Token"
|
|
1388
1388
|
404:
|
|
1389
|
-
description: Not found
|
|
1389
|
+
description: "Not found"
|
|
1390
1390
|
406:
|
|
1391
|
-
description: Not acceptable
|
|
1391
|
+
description: "Not acceptable"
|
|
1392
1392
|
"""
|
|
1393
1393
|
try:
|
|
1394
1394
|
scope, name = parse_scope_name(scope_name, request.environ['vo'])
|
|
@@ -1420,34 +1420,34 @@ class Meta(ErrorHandlingMethodView):
|
|
|
1420
1420
|
"""
|
|
1421
1421
|
---
|
|
1422
1422
|
summary: Delete metadata
|
|
1423
|
-
description: Deletes the specified metadata from the did.
|
|
1423
|
+
description: "Deletes the specified metadata from the did."
|
|
1424
1424
|
tags:
|
|
1425
1425
|
- Data Identifiers
|
|
1426
1426
|
parameters:
|
|
1427
1427
|
- name: scope_name
|
|
1428
1428
|
in: path
|
|
1429
|
-
description: The scope and the name of the did.
|
|
1429
|
+
description: "The scope and the name of the did."
|
|
1430
1430
|
schema:
|
|
1431
1431
|
type: string
|
|
1432
1432
|
style: simple
|
|
1433
1433
|
- name: key
|
|
1434
1434
|
in: query
|
|
1435
|
-
description: The key to delete.
|
|
1435
|
+
description: "The key to delete."
|
|
1436
1436
|
schema:
|
|
1437
1437
|
type: string
|
|
1438
1438
|
responses:
|
|
1439
1439
|
200:
|
|
1440
|
-
description: OK
|
|
1440
|
+
description: "OK"
|
|
1441
1441
|
400:
|
|
1442
|
-
description: scope_name could not be parsed.
|
|
1442
|
+
description: "scope_name could not be parsed."
|
|
1443
1443
|
401:
|
|
1444
|
-
description: Invalid Auth Token
|
|
1444
|
+
description: "Invalid Auth Token"
|
|
1445
1445
|
404:
|
|
1446
|
-
description: Did or key not found
|
|
1446
|
+
description: "Did or key not found"
|
|
1447
1447
|
406:
|
|
1448
|
-
description: Not acceptable
|
|
1448
|
+
description: "Not acceptable"
|
|
1449
1449
|
409:
|
|
1450
|
-
description: Feature is not in current database.
|
|
1450
|
+
description: "Feature is not in current database."
|
|
1451
1451
|
"""
|
|
1452
1452
|
try:
|
|
1453
1453
|
scope, name = parse_scope_name(scope_name, request.environ['vo'])
|
|
@@ -1474,19 +1474,19 @@ class SingleMeta(ErrorHandlingMethodView):
|
|
|
1474
1474
|
"""
|
|
1475
1475
|
---
|
|
1476
1476
|
summary: Add metadata
|
|
1477
|
-
description: Add metadata to a did.
|
|
1477
|
+
description: "Add metadata to a did."
|
|
1478
1478
|
tags:
|
|
1479
1479
|
- Data Identifiers
|
|
1480
1480
|
parameters:
|
|
1481
1481
|
- name: scope_name
|
|
1482
1482
|
in: path
|
|
1483
|
-
description: The scope and the name of the did.
|
|
1483
|
+
description: "The scope and the name of the did."
|
|
1484
1484
|
schema:
|
|
1485
1485
|
type: string
|
|
1486
1486
|
style: simple
|
|
1487
1487
|
- name: key
|
|
1488
1488
|
in: path
|
|
1489
|
-
description: The key for the metadata.
|
|
1489
|
+
description: "The key for the metadata."
|
|
1490
1490
|
schema:
|
|
1491
1491
|
type: string
|
|
1492
1492
|
style: simple
|
|
@@ -1499,26 +1499,26 @@ class SingleMeta(ErrorHandlingMethodView):
|
|
|
1499
1499
|
- value
|
|
1500
1500
|
properties:
|
|
1501
1501
|
value:
|
|
1502
|
-
description: The value to set.
|
|
1502
|
+
description: "The value to set."
|
|
1503
1503
|
type: object
|
|
1504
1504
|
responses:
|
|
1505
1505
|
201:
|
|
1506
|
-
description: Created
|
|
1506
|
+
description: "Created"
|
|
1507
1507
|
content:
|
|
1508
1508
|
application/json:
|
|
1509
1509
|
schema:
|
|
1510
1510
|
type: string
|
|
1511
1511
|
enum: ["Created"]
|
|
1512
1512
|
401:
|
|
1513
|
-
description: Invalid Auth Token
|
|
1513
|
+
description: "Invalid Auth Token"
|
|
1514
1514
|
404:
|
|
1515
|
-
description: Did not found
|
|
1515
|
+
description: "Did not found"
|
|
1516
1516
|
406:
|
|
1517
|
-
description: Not acceptable
|
|
1517
|
+
description: "Not acceptable"
|
|
1518
1518
|
409:
|
|
1519
|
-
description: Metadata already exists
|
|
1519
|
+
description: "Metadata already exists"
|
|
1520
1520
|
400:
|
|
1521
|
-
description: Invalid key or value
|
|
1521
|
+
description: "Invalid key or value"
|
|
1522
1522
|
"""
|
|
1523
1523
|
try:
|
|
1524
1524
|
scope, name = parse_scope_name(scope_name, request.environ['vo'])
|
|
@@ -1554,7 +1554,7 @@ class BulkDIDsMeta(ErrorHandlingMethodView):
|
|
|
1554
1554
|
"""
|
|
1555
1555
|
---
|
|
1556
1556
|
summary: Add metadata bulk
|
|
1557
|
-
description: Adds metadata in a bulk.
|
|
1557
|
+
description: "Adds metadata in a bulk."
|
|
1558
1558
|
tags:
|
|
1559
1559
|
- Data Identifiers
|
|
1560
1560
|
requestBody:
|
|
@@ -1566,37 +1566,37 @@ class BulkDIDsMeta(ErrorHandlingMethodView):
|
|
|
1566
1566
|
- dids
|
|
1567
1567
|
properties:
|
|
1568
1568
|
dids:
|
|
1569
|
-
description: A list with all the dids and the metadata.
|
|
1569
|
+
description: "A list with all the dids and the metadata."
|
|
1570
1570
|
type: array
|
|
1571
1571
|
items:
|
|
1572
|
-
description: The did and associated metadata.
|
|
1572
|
+
description: "The did and associated metadata."
|
|
1573
1573
|
type: object
|
|
1574
1574
|
properties:
|
|
1575
1575
|
scope:
|
|
1576
|
-
description: The scope of the did.
|
|
1576
|
+
description: "The scope of the did."
|
|
1577
1577
|
type: string
|
|
1578
1578
|
name:
|
|
1579
|
-
description: The name of the did.
|
|
1579
|
+
description: "The name of the did."
|
|
1580
1580
|
type: string
|
|
1581
1581
|
meta:
|
|
1582
|
-
description: The metadata to add. A dictionary with the meta key as key and the value as value.
|
|
1582
|
+
description: "The metadata to add. A dictionary with the meta key as key and the value as value."
|
|
1583
1583
|
type: object
|
|
1584
1584
|
responses:
|
|
1585
1585
|
200:
|
|
1586
|
-
description: Created
|
|
1586
|
+
description: "Created"
|
|
1587
1587
|
content:
|
|
1588
1588
|
application/json:
|
|
1589
1589
|
schema:
|
|
1590
1590
|
type: string
|
|
1591
1591
|
enum: ["Created"]
|
|
1592
1592
|
401:
|
|
1593
|
-
description: Invalid Auth Token
|
|
1593
|
+
description: "Invalid Auth Token"
|
|
1594
1594
|
404:
|
|
1595
|
-
description: Did not found
|
|
1595
|
+
description: "Did not found"
|
|
1596
1596
|
406:
|
|
1597
|
-
description: Not acceptable
|
|
1597
|
+
description: "Not acceptable"
|
|
1598
1598
|
409:
|
|
1599
|
-
description: Unsupported Operation
|
|
1599
|
+
description: "Unsupported Operation"
|
|
1600
1600
|
"""
|
|
1601
1601
|
parameters = json_parameters()
|
|
1602
1602
|
dids = param_get(parameters, 'dids')
|
|
@@ -1620,33 +1620,33 @@ class Rules(ErrorHandlingMethodView):
|
|
|
1620
1620
|
"""
|
|
1621
1621
|
---
|
|
1622
1622
|
summary: Get rules
|
|
1623
|
-
description: Lists all rules of a given did.
|
|
1623
|
+
description: "Lists all rules of a given did."
|
|
1624
1624
|
tags:
|
|
1625
1625
|
- Data Identifiers
|
|
1626
1626
|
parameters:
|
|
1627
1627
|
- name: scope_name
|
|
1628
1628
|
in: path
|
|
1629
|
-
description: The scope and the name of the did.
|
|
1629
|
+
description: "The scope and the name of the did."
|
|
1630
1630
|
schema:
|
|
1631
1631
|
type: string
|
|
1632
1632
|
style: simple
|
|
1633
1633
|
responses:
|
|
1634
1634
|
200:
|
|
1635
|
-
description: The rules associated with a did.
|
|
1635
|
+
description: "The rules associated with a did."
|
|
1636
1636
|
content:
|
|
1637
1637
|
application/x-json-stream:
|
|
1638
1638
|
schema:
|
|
1639
|
-
description: The rules associated with a did.
|
|
1639
|
+
description: "The rules associated with a did."
|
|
1640
1640
|
type: array
|
|
1641
1641
|
items:
|
|
1642
|
-
description: A rule.
|
|
1642
|
+
description: "A rule."
|
|
1643
1643
|
type: object
|
|
1644
1644
|
401:
|
|
1645
|
-
description: Invalid Auth Token
|
|
1645
|
+
description: "Invalid Auth Token"
|
|
1646
1646
|
404:
|
|
1647
|
-
description: Did or rule not found
|
|
1647
|
+
description: "Did or rule not found"
|
|
1648
1648
|
406:
|
|
1649
|
-
description: Not acceptable
|
|
1649
|
+
description: "Not acceptable"
|
|
1650
1650
|
"""
|
|
1651
1651
|
try:
|
|
1652
1652
|
scope, name = parse_scope_name(scope_name, request.environ['vo'])
|
|
@@ -1672,7 +1672,7 @@ class BulkMeta(ErrorHandlingMethodView):
|
|
|
1672
1672
|
"""
|
|
1673
1673
|
---
|
|
1674
1674
|
summary: Get metadata bulk
|
|
1675
|
-
description: List all metadata of a list of data identifiers.
|
|
1675
|
+
description: "List all metadata of a list of data identifiers."
|
|
1676
1676
|
tags:
|
|
1677
1677
|
- Data Identifiers
|
|
1678
1678
|
requestBody:
|
|
@@ -1684,45 +1684,45 @@ class BulkMeta(ErrorHandlingMethodView):
|
|
|
1684
1684
|
- dids
|
|
1685
1685
|
properties:
|
|
1686
1686
|
dids:
|
|
1687
|
-
description: The dids.
|
|
1687
|
+
description: "The dids."
|
|
1688
1688
|
type: array
|
|
1689
1689
|
items:
|
|
1690
|
-
description: A did.
|
|
1690
|
+
description: "A did."
|
|
1691
1691
|
type: object
|
|
1692
1692
|
properties:
|
|
1693
1693
|
name:
|
|
1694
|
-
description: The name of the did.
|
|
1694
|
+
description: "The name of the did."
|
|
1695
1695
|
type: string
|
|
1696
1696
|
scope:
|
|
1697
|
-
description: The scope of the did.
|
|
1697
|
+
description: "The scope of the did."
|
|
1698
1698
|
type: string
|
|
1699
1699
|
inherit:
|
|
1700
|
-
description: Concatenated the metadata of the parent if set to true.
|
|
1700
|
+
description: "Concatenated the metadata of the parent if set to true."
|
|
1701
1701
|
type: boolean
|
|
1702
1702
|
default: false
|
|
1703
1703
|
plugin:
|
|
1704
|
-
description: The did meta plugin to query or
|
|
1704
|
+
description: "The did meta plugin to query or 'ALL' for all available plugins"
|
|
1705
1705
|
type: string
|
|
1706
1706
|
default: "JSON"
|
|
1707
1707
|
responses:
|
|
1708
1708
|
200:
|
|
1709
|
-
description: OK
|
|
1709
|
+
description: "OK"
|
|
1710
1710
|
content:
|
|
1711
1711
|
application/json:
|
|
1712
1712
|
schema:
|
|
1713
|
-
description: A list of metadata identifiers for the dids. Separated by new lines.
|
|
1713
|
+
description: "A list of metadata identifiers for the dids. Separated by new lines."
|
|
1714
1714
|
type: array
|
|
1715
1715
|
items:
|
|
1716
|
-
description: The metadata for one did.
|
|
1716
|
+
description: "The metadata for one did."
|
|
1717
1717
|
type: object
|
|
1718
1718
|
400:
|
|
1719
|
-
description: Cannot decode json parameter list
|
|
1719
|
+
description: "Cannot decode json parameter list"
|
|
1720
1720
|
401:
|
|
1721
|
-
description: Invalid Auth Token
|
|
1721
|
+
description: "Invalid Auth Token"
|
|
1722
1722
|
404:
|
|
1723
|
-
description: Did not found
|
|
1723
|
+
description: "Did not found"
|
|
1724
1724
|
406:
|
|
1725
|
-
description: Not acceptable
|
|
1725
|
+
description: "Not acceptable"
|
|
1726
1726
|
"""
|
|
1727
1727
|
parameters = json_parameters()
|
|
1728
1728
|
dids = param_get(parameters, 'dids')
|
|
@@ -1748,55 +1748,55 @@ class AssociatedRules(ErrorHandlingMethodView):
|
|
|
1748
1748
|
"""
|
|
1749
1749
|
---
|
|
1750
1750
|
summary: Get associated rules
|
|
1751
|
-
description: Gets all associated rules for a file.
|
|
1751
|
+
description: "Gets all associated rules for a file."
|
|
1752
1752
|
tags:
|
|
1753
1753
|
- Data Identifiers
|
|
1754
1754
|
parameters:
|
|
1755
1755
|
- name: scope_name
|
|
1756
1756
|
in: path
|
|
1757
|
-
description: The scope and the name of the did.
|
|
1757
|
+
description: "The scope and the name of the did."
|
|
1758
1758
|
schema:
|
|
1759
1759
|
type: string
|
|
1760
1760
|
style: simple
|
|
1761
1761
|
responses:
|
|
1762
1762
|
200:
|
|
1763
|
-
description: OK
|
|
1763
|
+
description: "OK"
|
|
1764
1764
|
content:
|
|
1765
1765
|
application/x-json-stream:
|
|
1766
1766
|
schema:
|
|
1767
|
-
description: All associated rules for a file. Items are separated by new line character.
|
|
1767
|
+
description: "All associated rules for a file. Items are separated by new line character."
|
|
1768
1768
|
type: array
|
|
1769
1769
|
items:
|
|
1770
|
-
description: A replication rule associated with the file. Has more fields than listed here.
|
|
1770
|
+
description: "A replication rule associated with the file. Has more fields than listed here."
|
|
1771
1771
|
type: object
|
|
1772
1772
|
properties:
|
|
1773
1773
|
id:
|
|
1774
|
-
description: The id of the rule.
|
|
1774
|
+
description: "The id of the rule."
|
|
1775
1775
|
type: string
|
|
1776
1776
|
subscription_id:
|
|
1777
|
-
description: The subscription id of the rule.
|
|
1777
|
+
description: "The subscription id of the rule."
|
|
1778
1778
|
type: string
|
|
1779
1779
|
account:
|
|
1780
|
-
description: The account associated with the rule.
|
|
1780
|
+
description: "The account associated with the rule."
|
|
1781
1781
|
type: string
|
|
1782
1782
|
scope:
|
|
1783
|
-
description: The scope associated with the rule.
|
|
1783
|
+
description: "The scope associated with the rule."
|
|
1784
1784
|
type: string
|
|
1785
1785
|
name:
|
|
1786
|
-
description: The name of the rule.
|
|
1786
|
+
description: "The name of the rule."
|
|
1787
1787
|
type: string
|
|
1788
1788
|
state:
|
|
1789
|
-
description: The state of the rule.
|
|
1789
|
+
description: "The state of the rule."
|
|
1790
1790
|
type: string
|
|
1791
1791
|
rse_expression:
|
|
1792
|
-
description: The rse expression of the rule.
|
|
1792
|
+
description: "The rse expression of the rule."
|
|
1793
1793
|
type: string
|
|
1794
1794
|
401:
|
|
1795
|
-
description: Invalid Auth Token
|
|
1795
|
+
description: "Invalid Auth Token"
|
|
1796
1796
|
404:
|
|
1797
|
-
description: Did not found
|
|
1797
|
+
description: "Did not found"
|
|
1798
1798
|
406:
|
|
1799
|
-
description: Not acceptable
|
|
1799
|
+
description: "Not acceptable"
|
|
1800
1800
|
"""
|
|
1801
1801
|
try:
|
|
1802
1802
|
scope, name = parse_scope_name(scope_name, request.environ['vo'])
|
|
@@ -1819,40 +1819,40 @@ class GUIDLookup(ErrorHandlingMethodView):
|
|
|
1819
1819
|
"""
|
|
1820
1820
|
---
|
|
1821
1821
|
summary: Get dataset
|
|
1822
|
-
description: Returns the dataset associated with a GUID.
|
|
1822
|
+
description: "Returns the dataset associated with a GUID."
|
|
1823
1823
|
tags:
|
|
1824
1824
|
- Data Identifiers
|
|
1825
1825
|
parameters:
|
|
1826
1826
|
- name: guid
|
|
1827
1827
|
in: path
|
|
1828
|
-
description: The GUID to query buy.
|
|
1828
|
+
description: "The GUID to query buy."
|
|
1829
1829
|
schema:
|
|
1830
1830
|
type: string
|
|
1831
1831
|
style: simple
|
|
1832
1832
|
responses:
|
|
1833
1833
|
200:
|
|
1834
|
-
description: OK
|
|
1834
|
+
description: "OK"
|
|
1835
1835
|
content:
|
|
1836
1836
|
application/x-json-stream:
|
|
1837
1837
|
schema:
|
|
1838
|
-
description: A list of all datasets associated with the guid. Items are separated by new line character.
|
|
1838
|
+
description: "A list of all datasets associated with the guid. Items are separated by new line character."
|
|
1839
1839
|
type: array
|
|
1840
1840
|
items:
|
|
1841
|
-
description: A dataset associated with a guid.
|
|
1841
|
+
description: "A dataset associated with a guid."
|
|
1842
1842
|
type: object
|
|
1843
1843
|
properties:
|
|
1844
1844
|
scope:
|
|
1845
|
-
description: The scope of the dataset.
|
|
1845
|
+
description: "The scope of the dataset."
|
|
1846
1846
|
type: string
|
|
1847
1847
|
name:
|
|
1848
|
-
description: The name of the dataset.
|
|
1848
|
+
description: "The name of the dataset."
|
|
1849
1849
|
type: string
|
|
1850
1850
|
401:
|
|
1851
|
-
description: Invalid Auth Token
|
|
1851
|
+
description: "Invalid Auth Token"
|
|
1852
1852
|
404:
|
|
1853
|
-
description: Did not found
|
|
1853
|
+
description: "Did not found"
|
|
1854
1854
|
406:
|
|
1855
|
-
description: Not acceptable
|
|
1855
|
+
description: "Not acceptable"
|
|
1856
1856
|
"""
|
|
1857
1857
|
try:
|
|
1858
1858
|
def generate(vo):
|
|
@@ -1870,56 +1870,56 @@ class SampleLegacy(ErrorHandlingMethodView):
|
|
|
1870
1870
|
"""
|
|
1871
1871
|
---
|
|
1872
1872
|
summary: Create sample
|
|
1873
|
-
description: Creates a sample from an input collection.
|
|
1873
|
+
description: "Creates a sample from an input collection."
|
|
1874
1874
|
tags:
|
|
1875
1875
|
- Data Identifiers
|
|
1876
1876
|
parameters:
|
|
1877
1877
|
- name: input_scope
|
|
1878
1878
|
in: path
|
|
1879
|
-
description: The input scope.
|
|
1879
|
+
description: "The input scope."
|
|
1880
1880
|
schema:
|
|
1881
1881
|
type: string
|
|
1882
1882
|
style: simple
|
|
1883
1883
|
- name: input_name
|
|
1884
1884
|
in: path
|
|
1885
|
-
description: The input name.
|
|
1885
|
+
description: "The input name."
|
|
1886
1886
|
schema:
|
|
1887
1887
|
type: string
|
|
1888
1888
|
style: simple
|
|
1889
1889
|
- name: output_scope
|
|
1890
1890
|
in: path
|
|
1891
|
-
description: The output scope.
|
|
1891
|
+
description: "The output scope."
|
|
1892
1892
|
schema:
|
|
1893
1893
|
type: string
|
|
1894
1894
|
style: simple
|
|
1895
1895
|
- name: output_name
|
|
1896
1896
|
in: path
|
|
1897
|
-
description: The output name.
|
|
1897
|
+
description: "The output name."
|
|
1898
1898
|
schema:
|
|
1899
1899
|
type: string
|
|
1900
1900
|
style: simple
|
|
1901
1901
|
- name: nbfiles
|
|
1902
1902
|
in: path
|
|
1903
|
-
description: The number of files to register in the output dataset.
|
|
1903
|
+
description: "The number of files to register in the output dataset."
|
|
1904
1904
|
schema:
|
|
1905
1905
|
type: string
|
|
1906
1906
|
style: simple
|
|
1907
1907
|
responses:
|
|
1908
1908
|
201:
|
|
1909
|
-
description: OK
|
|
1909
|
+
description: "OK"
|
|
1910
1910
|
content:
|
|
1911
1911
|
application/json:
|
|
1912
1912
|
schema:
|
|
1913
1913
|
type: string
|
|
1914
1914
|
enum: ["Created"]
|
|
1915
1915
|
401:
|
|
1916
|
-
description: Invalid Auth Token
|
|
1916
|
+
description: "Invalid Auth Token"
|
|
1917
1917
|
404:
|
|
1918
|
-
description: Not found
|
|
1918
|
+
description: "Not found"
|
|
1919
1919
|
406:
|
|
1920
|
-
description: Not acceptable
|
|
1920
|
+
description: "Not acceptable"
|
|
1921
1921
|
409:
|
|
1922
|
-
description: Duplication
|
|
1922
|
+
description: "Duplication"
|
|
1923
1923
|
"""
|
|
1924
1924
|
try:
|
|
1925
1925
|
create_did_sample(
|
|
@@ -1947,11 +1947,11 @@ class Sample(ErrorHandlingMethodView):
|
|
|
1947
1947
|
"""
|
|
1948
1948
|
---
|
|
1949
1949
|
summary: Create sample
|
|
1950
|
-
description: Creates a sample from an input collection.
|
|
1950
|
+
description: "Creates a sample from an input collection."
|
|
1951
1951
|
tags:
|
|
1952
1952
|
- Data Identifiers
|
|
1953
1953
|
requestBody:
|
|
1954
|
-
description: Parameters (source and destination) for the files in the sample to be created
|
|
1954
|
+
description: "Parameters (source and destination) for the files in the sample to be created"
|
|
1955
1955
|
content:
|
|
1956
1956
|
'application/json':
|
|
1957
1957
|
schema:
|
|
@@ -1964,36 +1964,36 @@ class Sample(ErrorHandlingMethodView):
|
|
|
1964
1964
|
- nbfiles
|
|
1965
1965
|
properties:
|
|
1966
1966
|
input_scope:
|
|
1967
|
-
description: The input scope.
|
|
1967
|
+
description: "The input scope."
|
|
1968
1968
|
type: string
|
|
1969
1969
|
input_name:
|
|
1970
|
-
description: The input name.
|
|
1970
|
+
description: "The input name."
|
|
1971
1971
|
type: string
|
|
1972
1972
|
output_scope:
|
|
1973
|
-
description: The output scope.
|
|
1973
|
+
description: "The output scope."
|
|
1974
1974
|
type: string
|
|
1975
1975
|
output_name:
|
|
1976
|
-
description: The output name.
|
|
1976
|
+
description: "The output name."
|
|
1977
1977
|
type: string
|
|
1978
1978
|
nbfiles:
|
|
1979
|
-
description: The number of files to register in the output dataset.
|
|
1979
|
+
description: "The number of files to register in the output dataset."
|
|
1980
1980
|
type: string
|
|
1981
1981
|
responses:
|
|
1982
1982
|
201:
|
|
1983
|
-
description: OK
|
|
1983
|
+
description: "OK"
|
|
1984
1984
|
content:
|
|
1985
1985
|
application/json:
|
|
1986
1986
|
schema:
|
|
1987
1987
|
type: string
|
|
1988
1988
|
enum: ["Created"]
|
|
1989
1989
|
401:
|
|
1990
|
-
description: Invalid Auth Token
|
|
1990
|
+
description: "Invalid Auth Token"
|
|
1991
1991
|
404:
|
|
1992
|
-
description: Not found
|
|
1992
|
+
description: "Not found"
|
|
1993
1993
|
406:
|
|
1994
|
-
description: Not acceptable
|
|
1994
|
+
description: "Not acceptable"
|
|
1995
1995
|
409:
|
|
1996
|
-
description: Duplication
|
|
1996
|
+
description: "Duplication"
|
|
1997
1997
|
"""
|
|
1998
1998
|
parameters = json_parameters()
|
|
1999
1999
|
try:
|
|
@@ -2023,41 +2023,41 @@ class NewDIDs(ErrorHandlingMethodView):
|
|
|
2023
2023
|
"""
|
|
2024
2024
|
---
|
|
2025
2025
|
summary: Get recent identifiers
|
|
2026
|
-
description: Returns a list of recent identifiers.
|
|
2026
|
+
description: "Returns a list of recent identifiers."
|
|
2027
2027
|
tags:
|
|
2028
2028
|
- Data Identifiers
|
|
2029
2029
|
parameters:
|
|
2030
2030
|
- name: type
|
|
2031
2031
|
in: query
|
|
2032
|
-
description: The type of the did.
|
|
2032
|
+
description: "The type of the did."
|
|
2033
2033
|
schema:
|
|
2034
2034
|
type: string
|
|
2035
2035
|
required: false
|
|
2036
2036
|
responses:
|
|
2037
2037
|
200:
|
|
2038
|
-
description: OK
|
|
2038
|
+
description: "OK"
|
|
2039
2039
|
content:
|
|
2040
2040
|
application/x-json-stream:
|
|
2041
2041
|
schema:
|
|
2042
|
-
description: A list of the recent dids. Items are separated by new line characters.
|
|
2042
|
+
description: "A list of the recent dids. Items are separated by new line characters."
|
|
2043
2043
|
type: array
|
|
2044
2044
|
items:
|
|
2045
|
-
description: A did.
|
|
2045
|
+
description: "A did."
|
|
2046
2046
|
type: object
|
|
2047
2047
|
properties:
|
|
2048
2048
|
scope:
|
|
2049
|
-
description: The scope of the did.
|
|
2049
|
+
description: "The scope of the did."
|
|
2050
2050
|
type: string
|
|
2051
2051
|
name:
|
|
2052
|
-
description: The name of the did.
|
|
2052
|
+
description: "The name of the did."
|
|
2053
2053
|
type: string
|
|
2054
2054
|
did_type:
|
|
2055
|
-
description: The type of the did.
|
|
2055
|
+
description: "The type of the did."
|
|
2056
2056
|
type: string
|
|
2057
2057
|
401:
|
|
2058
|
-
description: Invalid Auth Token
|
|
2058
|
+
description: "Invalid Auth Token"
|
|
2059
2059
|
406:
|
|
2060
|
-
description: Not acceptable
|
|
2060
|
+
description: "Not acceptable"
|
|
2061
2061
|
"""
|
|
2062
2062
|
def generate(_type, vo):
|
|
2063
2063
|
for did in list_new_dids(did_type=_type, vo=vo):
|
|
@@ -2074,41 +2074,41 @@ class Resurrect(ErrorHandlingMethodView):
|
|
|
2074
2074
|
"""
|
|
2075
2075
|
---
|
|
2076
2076
|
summary: Resurrect dids
|
|
2077
|
-
description: Resurrect all given dids.
|
|
2077
|
+
description: "Resurrect all given dids."
|
|
2078
2078
|
tags:
|
|
2079
2079
|
- Data Identifiers
|
|
2080
2080
|
requestBody:
|
|
2081
2081
|
content:
|
|
2082
2082
|
'application/json':
|
|
2083
2083
|
schema:
|
|
2084
|
-
description: List of did to resurrect.
|
|
2084
|
+
description: "List of did to resurrect."
|
|
2085
2085
|
type: array
|
|
2086
2086
|
items:
|
|
2087
|
-
description: A did to resurrect.
|
|
2087
|
+
description: "A did to resurrect."
|
|
2088
2088
|
type: object
|
|
2089
2089
|
properties:
|
|
2090
2090
|
scope:
|
|
2091
|
-
description: The scope of the did.
|
|
2091
|
+
description: "The scope of the did."
|
|
2092
2092
|
type: string
|
|
2093
2093
|
name:
|
|
2094
|
-
description: The name of the did
|
|
2094
|
+
description: "The name of the did"
|
|
2095
2095
|
type: string
|
|
2096
2096
|
responses:
|
|
2097
2097
|
201:
|
|
2098
|
-
description: OK
|
|
2098
|
+
description: "OK"
|
|
2099
2099
|
content:
|
|
2100
2100
|
application/json:
|
|
2101
2101
|
schema:
|
|
2102
2102
|
type: string
|
|
2103
2103
|
enum: ["Created"]
|
|
2104
2104
|
401:
|
|
2105
|
-
description: Invalid Auth Token
|
|
2105
|
+
description: "Invalid Auth Token"
|
|
2106
2106
|
404:
|
|
2107
|
-
description: Not found
|
|
2107
|
+
description: "Not found"
|
|
2108
2108
|
409:
|
|
2109
|
-
description: Conflict
|
|
2109
|
+
description: "Conflict"
|
|
2110
2110
|
500:
|
|
2111
|
-
description: Internal error
|
|
2111
|
+
description: "Internal error"
|
|
2112
2112
|
"""
|
|
2113
2113
|
dids = json_list()
|
|
2114
2114
|
|
|
@@ -2130,39 +2130,39 @@ class Follow(ErrorHandlingMethodView):
|
|
|
2130
2130
|
"""
|
|
2131
2131
|
---
|
|
2132
2132
|
summary: Get followers
|
|
2133
|
-
description: Get all followers for a specific did.
|
|
2133
|
+
description: "Get all followers for a specific did."
|
|
2134
2134
|
tags:
|
|
2135
2135
|
- Data Identifiers
|
|
2136
2136
|
parameters:
|
|
2137
2137
|
- name: scope_name
|
|
2138
2138
|
in: path
|
|
2139
|
-
description: The scope and the name of the did.
|
|
2139
|
+
description: "The scope and the name of the did."
|
|
2140
2140
|
schema:
|
|
2141
2141
|
type: string
|
|
2142
2142
|
style: simple
|
|
2143
2143
|
responses:
|
|
2144
2144
|
200:
|
|
2145
|
-
description: OK
|
|
2145
|
+
description: "OK"
|
|
2146
2146
|
content:
|
|
2147
2147
|
application/json:
|
|
2148
2148
|
schema:
|
|
2149
|
-
description: A list of all followers of a did.
|
|
2149
|
+
description: "A list of all followers of a did."
|
|
2150
2150
|
type: array
|
|
2151
2151
|
items:
|
|
2152
|
-
description: A follower of a did.
|
|
2152
|
+
description: "A follower of a did."
|
|
2153
2153
|
type: object
|
|
2154
2154
|
properties:
|
|
2155
2155
|
user:
|
|
2156
|
-
description: The user which follows the did.
|
|
2156
|
+
description: "The user which follows the did."
|
|
2157
2157
|
type: string
|
|
2158
2158
|
400:
|
|
2159
|
-
description: Value error
|
|
2159
|
+
description: "Value error"
|
|
2160
2160
|
401:
|
|
2161
|
-
description: Invalid Auth Token
|
|
2161
|
+
description: "Invalid Auth Token"
|
|
2162
2162
|
404:
|
|
2163
|
-
description: Did not found
|
|
2163
|
+
description: "Did not found"
|
|
2164
2164
|
406:
|
|
2165
|
-
description: Not acceptable
|
|
2165
|
+
description: "Not acceptable"
|
|
2166
2166
|
"""
|
|
2167
2167
|
try:
|
|
2168
2168
|
scope, name = parse_scope_name(scope_name, request.environ['vo'])
|
|
@@ -2181,13 +2181,13 @@ class Follow(ErrorHandlingMethodView):
|
|
|
2181
2181
|
"""
|
|
2182
2182
|
---
|
|
2183
2183
|
summary: Post follow
|
|
2184
|
-
description: Mark the input DID as being followed by the given account.
|
|
2184
|
+
description: "Mark the input DID as being followed by the given account."
|
|
2185
2185
|
tags:
|
|
2186
2186
|
- Data Identifiers
|
|
2187
2187
|
parameters:
|
|
2188
2188
|
- name: scope_name
|
|
2189
2189
|
in: path
|
|
2190
|
-
description: The scope and the name of the did.
|
|
2190
|
+
description: "The scope and the name of the did."
|
|
2191
2191
|
schema:
|
|
2192
2192
|
type: string
|
|
2193
2193
|
style: simple
|
|
@@ -2200,19 +2200,19 @@ class Follow(ErrorHandlingMethodView):
|
|
|
2200
2200
|
- account
|
|
2201
2201
|
properties:
|
|
2202
2202
|
account:
|
|
2203
|
-
description: The account to follow the did.
|
|
2203
|
+
description: "The account to follow the did."
|
|
2204
2204
|
type: string
|
|
2205
2205
|
responses:
|
|
2206
2206
|
201:
|
|
2207
|
-
description: OK
|
|
2207
|
+
description: "OK"
|
|
2208
2208
|
400:
|
|
2209
|
-
description: Scope or name could not be interpreted
|
|
2209
|
+
description: "Scope or name could not be interpreted"
|
|
2210
2210
|
401:
|
|
2211
|
-
description: Invalid Auth Token
|
|
2211
|
+
description: "Invalid Auth Token"
|
|
2212
2212
|
404:
|
|
2213
|
-
description: Not found
|
|
2213
|
+
description: "Not found"
|
|
2214
2214
|
500:
|
|
2215
|
-
description: Internal error
|
|
2215
|
+
description: "Internal error"
|
|
2216
2216
|
"""
|
|
2217
2217
|
try:
|
|
2218
2218
|
scope, name = parse_scope_name(scope_name, request.environ['vo'])
|
|
@@ -2233,13 +2233,13 @@ class Follow(ErrorHandlingMethodView):
|
|
|
2233
2233
|
"""
|
|
2234
2234
|
---
|
|
2235
2235
|
summary: Delete follow
|
|
2236
|
-
description: Mark the input DID as not followed
|
|
2236
|
+
description: "Mark the input DID as not followed"
|
|
2237
2237
|
tags:
|
|
2238
2238
|
- Data Identifiers
|
|
2239
2239
|
parameters:
|
|
2240
2240
|
- name: scope_name
|
|
2241
2241
|
in: path
|
|
2242
|
-
description: The scope and the name of the did.
|
|
2242
|
+
description: "The scope and the name of the did."
|
|
2243
2243
|
schema:
|
|
2244
2244
|
type: string
|
|
2245
2245
|
style: simple
|
|
@@ -2252,17 +2252,17 @@ class Follow(ErrorHandlingMethodView):
|
|
|
2252
2252
|
- account
|
|
2253
2253
|
properties:
|
|
2254
2254
|
account:
|
|
2255
|
-
description: The account to unfollow the did.
|
|
2255
|
+
description: "The account to unfollow the did."
|
|
2256
2256
|
type: string
|
|
2257
2257
|
responses:
|
|
2258
2258
|
200:
|
|
2259
|
-
description: OK
|
|
2259
|
+
description: "OK"
|
|
2260
2260
|
401:
|
|
2261
|
-
description: Invalid Auth Token
|
|
2261
|
+
description: "Invalid Auth Token"
|
|
2262
2262
|
404:
|
|
2263
|
-
description: Not found
|
|
2263
|
+
description: "Not found"
|
|
2264
2264
|
500:
|
|
2265
|
-
description: Internal error
|
|
2265
|
+
description: "Internal error"
|
|
2266
2266
|
"""
|
|
2267
2267
|
try:
|
|
2268
2268
|
scope, name = parse_scope_name(scope_name, request.environ['vo'])
|