(project_string_id)
| 111 | Roles = ["admin", "Editor"], |
| 112 | apis_user_list = ["api_enabled_builder"]) |
| 113 | def 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 | |
| 149 | def __ui_schema_new( |
nothing calls this directly
no test coverage detected