MCPcopy Create free account
hub / github.com/diffgram/diffgram / ui_schema_new_api

Function ui_schema_new_api

default/methods/ui_schema/ui_schema.py:113–146  ·  view source on GitHub ↗
(project_string_id)

Source from the content-addressed store, hash-verified

111 Roles = ["admin", "Editor"],
112 apis_user_list = ["api_enabled_builder"])
113def ui_schema_new_api(project_string_id):
114 ui_schema_new_spec_list = [
115 {"name": {
116 'default': str(time.time()),
117 'kind': str
118 }
119 },
120 {"client_created_time": {
121 'default': None,
122 'kind': datetime,
123 }
124 },
125 {"client_creation_ref_id": {
126 'default': None,
127 'kind': str,
128 }
129 }
130 ]
131 log, input, untrusted_input = regular_input.master(
132 request = request,
133 spec_list = ui_schema_new_spec_list)
134 if regular_log.log_has_error(log): return jsonify(log = log), 400
135
136 with sessionMaker.session_scope() as session:
137 ui_schema = __ui_schema_new(
138 session = session,
139 input = input,
140 project_string_id = project_string_id)
141
142 log['success'] = True
143
144 return jsonify(
145 ui_schema = ui_schema.serialize(),
146 log = log), 200
147
148
149def __ui_schema_new(

Callers

nothing calls this directly

Calls 2

__ui_schema_newFunction · 0.85
serializeMethod · 0.45

Tested by

no test coverage detected