You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 6, 2023. It is now read-only.
@@ -193,6 +207,10 @@ Send JSON metadata to be persisted in the back-end. This service persists the d
193
207
> { "status" : 500, "errors" : ["Error saving record for \"Sample Data\": database failure." ] }
194
208
> ```
195
209
210
+
<pid='metadata-save-upload-via-api'>
211
+
*When uploading a file or container via the API, it must be provided as a "file" or "container" multipart form parameter. File uploads should be a compressed file of type: .zip, .tar, .tar.gz, or .tar.bz2. Container uploads should be Docker or Singularity image files of type: .tar, or .simg*
212
+
</p>
213
+
196
214
### submit
197
215
198
216
`POST /doecodeapi/services/metadata/submit`
@@ -209,6 +227,17 @@ this operation will be returned.
* "B" (Business), also requires at least one sponsoring organization
247
-
* If project type is Closed Source, OSTI Hosted ("CO"), a file upload is required. *When submitting a file via the API, it must be provided as a "file" multipart form data parameter*
276
+
* If project type is Closed Source, OSTI Hosted ("CO"), a file upload is required. *When uploading a file or container via the API, it must be provided as a "file" or "container" multipart form parameter. File uploads should be a compressed file of type: .zip, .tar, .tar.gz, or .tar.bz2. Container uploads should be Docker or Singularity image files of type: .tar, or .simg*
248
277
249
278
250
279
@@ -264,6 +293,17 @@ be announced to DOE. Workflow status remains *Submitted* for this operation. Ad
* At least one sponsoring organization is required
289
328
* each organization must have a name
@@ -294,7 +333,7 @@ be announced to DOE. Workflow status remains *Submitted* for this operation. Ad
294
333
* email must be valid
295
334
* phone number must be valid
296
335
* organization name is required
297
-
* If project type is not Open Source ("OS"), a file upload is required. *When submitting a file via the API, it must be provided as a "file" multipart form data parameter*
336
+
* If project type is not Open Source ("OS"), a file upload is required. *When uploading a file or container via the API, it must be provided as a "file" or "container" multipart form parameter. File uploads should be a compressed file of type: .zip, .tar, .tar.gz, or .tar.bz2. Container uploads should be Docker or Singularity image files of type: .tar, or .simg*
298
337
299
338
300
339
@@ -328,6 +367,11 @@ code ID value of the Submitted record in order to approve access. Approved reco
328
367
> { "status" : 400, "errors":[ "Metadata is not in the Submitted workflow state." ] }
329
368
> ```
330
369
370
+
371
+
<pid='metadata-services-approve-newprev'>
372
+
Upon approval, any DOI related identifiers of the type "IsNewVersionOf" or "IsPreviousVersionOf" will be matched, by DOI, to existing DOE CODE projects. Those projects will automatically be associated with the Approved project via new Related Identifier information.
373
+
</p>
374
+
331
375
DOE CODE Metadata
332
376
===============
333
377
A DOE CODE metadata Object is expressed as a JSON entity. Each of the fields making up the entity are defined below, and an example record is provided in JSON format.
0 commit comments