original_docstring: 
          Create flask-restx models that can be used to marshall results (and document service).
  
          :param namespace: Flask-RestX API or namespace.
          
docstring: Create flask-restx models that can be used to marshall results (and document service).
docstring_tokens: Create flask - restx models that can be used to marshall results ( and document service ) .
code: def init_models(self, namespace: flask_restx.Namespace):
          """
          Create flask-restx models that can be used to marshall results (and document service).
  
          :param namespace: Flask-RestX API or namespace.
          """
          self.json_post_model = namespace.model(
              f"{self.table_or_collection.__name__}_PostRequestModel",
              post_request_fields(self.table_or_collection, namespace),
          )
          self.json_put_model = namespace.model(
              f"{self.table_or_collection.__name__}_PutRequestModel",
              put_request_fields(self.table_or_collection, namespace),
          )
          self.get_response_model = namespace.model(
              f"{self.table_or_collection.__name__}_GetResponseModel",
              get_response_fields(self.table_or_collection, namespace),
          )
          self.get_history_response_model = namespace.model(
              f"{self.table_or_collection.__name__}_GetHistoryResponseModel",
              get_history_response_fields(self.table_or_collection, namespace),
          )
          if self.audit:
              self.get_audit_response_model = namespace.model(
                  f"{self.table_or_collection.__name__}_GetAuditResponseModel",
                  get_audit_response_fields(
                      self.table_or_collection, self.history, namespace
                  ),
              )
          self.get_model_description_response_model = namespace.model(
              f"{self.table_or_collection.__name__}_GetDescriptionResponseModel",
              get_description_response_fields(self.table_or_collection),
          )
code_tokens: def init_models ( self , namespace : flask_restx . Namespace ) : self . json_post_model = namespace . model ( f"{self.table_or_collection.__name__}_PostRequestModel" , post_request_fields ( self . table_or_collection , namespace ) , ) self . json_put_model = namespace . model ( f"{self.table_or_collection.__name__}_PutRequestModel" , put_request_fields ( self . table_or_collection , namespace ) , ) self . get_response_model = namespace . model ( f"{self.table_or_collection.__name__}_GetResponseModel" , get_response_fields ( self . table_or_collection , namespace ) , ) self . get_history_response_model = namespace . model ( f"{self.table_or_collection.__name__}_GetHistoryResponseModel" , get_history_response_fields ( self . table_or_collection , namespace ) , ) if self . audit : self . get_audit_response_model = namespace . model ( f"{self.table_or_collection.__name__}_GetAuditResponseModel" , get_audit_response_fields ( self . table_or_collection , self . history , namespace ) , ) self . get_model_description_response_model = namespace . model ( f"{self.table_or_collection.__name__}_GetDescriptionResponseModel" , get_description_response_fields ( self . table_or_collection ) , )
short_docstring: Create flask-restx models that can be used to marshall results (and document service).
short_docstring_tokens: Create flask - restx models that can be used to marshall results ( and document service ) .
comment: """
          Create flask-restx models that can be used to marshall results (and document service).
  
          :param namespace: Flask-RestX API or namespace.
          """