Skip to content
Snippets Groups Projects
Commit 8fad9297 authored by Swen Vermeul's avatar Swen Vermeul
Browse files

added types for creating and updating projects, experiments and samples

parent e25c6ce5
No related branches found
No related tags found
No related merge requests found
......@@ -25,6 +25,8 @@ def openbis_definitions(entity):
"attrs": "code description permId identifier space leader registrator registrationDate modifier modificationDate attachments".split(),
"multi": "".split(),
"identifier": "projectId",
"create": { "@type": "as.dto.project.create.ProjectCreation"},
"update": { "@type": "as.dto.project.upate.ProjectUpdate"},
},
"Experiment": {
"attrs_new": "code type project tags attachments".split(),
......@@ -32,6 +34,8 @@ def openbis_definitions(entity):
"attrs": "code permId identifier type project tags registrator registrationDate modifier modificationDate attachments".split(),
"multi": "tags attachments".split(),
"identifier": "experimentId",
"create": { "@type": "as.dto.experiment.create.ExperimentCreation"},
"update": { "@type": "as.dto.experiment.upate.ExperimentUpdate"},
},
"Sample": {
"attrs_new": "code type project parents children container components space experiment tags attachments".split(),
......@@ -43,6 +47,8 @@ def openbis_definitions(entity):
'componentIds': {'permId': {'@type': 'as.dto.sample.id.SamplePermId'}},
},
"identifier": "sampleId",
"create": { "@type": "as.dto.sample.create.SampleCreation"},
"update": { "@type": "as.dto.sample.upate.SampleUpdate"},
"cre_type": "as.dto.sample.create.SampleCreation",
"multi": "parents children components tags attachments".split(),
},
......@@ -160,6 +166,7 @@ def openbis_definitions(entity):
"userId": "userId",
"users": "userIds",
"description": "description",
"vocabulary": "vocabularyId",
},
"ids2type": {
'spaceId': {'permId': {'@type': 'as.dto.space.id.SpacePermId'}},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment