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
description='A description of what this prefix should'
1044
+
' represent. For example, the prefix \'GLY\' would be '
1045
+
'related to BCOs which were derived from GlyGen workflows.'
1046
+
),
1047
+
'expiration_date': openapi.Schema(
1048
+
type=openapi.TYPE_STRING,
1049
+
description='The datetime at which this prefix expires in the'
1050
+
' format YYYY-MM-DD-HH-MM-SS.'),
1051
+
'prefix': openapi.Schema(
1052
+
type=openapi.TYPE_STRING,
1053
+
description='Any prefix which satsifies the naming standard')
1054
+
}
1055
+
1056
+
1057
+
)
1058
+
POST_api_prefixes_modify_schema=openapi.Schema(
1059
+
type=openapi.TYPE_OBJECT,
1060
+
required=[],
1061
+
properties={
1062
+
'owner_group': openapi.Schema(
1063
+
type=openapi.TYPE_STRING,
1064
+
description='Which group should own the prefix. *The'
1065
+
' requestor does not have to be in the owner group to'
1066
+
' assign this.*'),
1067
+
'owner_user': openapi.Schema(
1068
+
type=openapi.TYPE_STRING,
1069
+
description='Which user should own the prefix. *The requestor'
1070
+
' does not have to be owner_user but owner_user must be in'
1071
+
' owner_group*.'),
1072
+
'prefixes': openapi.Schema(
1073
+
type=openapi.TYPE_ARRAY,
1074
+
items=prefixes_object_schema,
1075
+
description='Any prefix which satsifies the naming standard')
1076
+
}
1077
+
)
1030
1078
1031
1079
# TODO: Need to get the schema that is being sent here from FE
1032
1080
request_body=openapi.Schema(
1033
-
type=openapi.TYPE_OBJECT,
1034
-
title="Prefix Modification Schema",
1035
-
description="Several parameters are required to modify a prefix.",
1036
-
required=['prefix'],
1037
-
properties={
1038
-
'description': openapi.Schema(type=openapi.TYPE_STRING, description='A description of what this prefix should represent. For example, the prefix \'GLY\' would be related to BCOs which were derived from GlyGen workflows.'),
1039
-
'expiration_date': openapi.Schema(type=openapi.TYPE_STRING, description='The datetime at which this prefix expires in the format YYYY-MM-DD-HH-MM-SS.'),
1040
-
'owner_group': openapi.Schema(type=openapi.TYPE_STRING, description='Which group should own the prefix. *The requestor does not have to be in the owner group to assign this.*'),
1041
-
'owner_user': openapi.Schema(type=openapi.TYPE_STRING, description='Which user should own the prefix. *The requestor does not have to be owner_user but owner_user must be in owner_group*.'),
1042
-
'prefix': openapi.Schema(type=openapi.TYPE_STRING, description='Any prefix which satsifies the naming standard (see link...)'),
1043
-
})
1044
-
1081
+
type=openapi.TYPE_OBJECT,
1082
+
title="Prefix Modification Schema",
1083
+
description="Several parameters are required to modify a prefix.",
0 commit comments