@@ -126,7 +126,7 @@ def api_version() -> str:
126126 Content-Type: application/json
127127
128128 {
129- "version": "0.6.1 "
129+ "version": "0.6.2 "
130130 }
131131
132132 :statuscode 200: No error.
@@ -573,7 +573,9 @@ def record(
573573 Vary: Accept
574574 Content-Type: text/plain
575575
576- Insert Successful
576+ {
577+ "response": "Insert Successful"
578+ }
577579
578580 **Example unexpected response**:
579581
@@ -631,7 +633,9 @@ def record(
631633 Vary: Accept
632634 Content-Type: text/plain
633635
634- Update Successful
636+ {
637+ "response": "Update Successful"
638+ }
635639
636640 **Example unexpected response**:
637641
@@ -673,7 +677,9 @@ def record(
673677 Vary: Accept
674678 Content-Type: text/plain
675679
676- Delete Successful
680+ {
681+ "response": "Delete Successful"
682+ }
677683
678684 **Example conflict response**:
679685
@@ -751,15 +757,15 @@ def record(
751757 _DJConnector ._insert_tuple (
752758 connection , schema_name , table_name , request .json ["records" ]
753759 )
754- return " Insert Successful"
760+ return { "response" : " Insert Successful"}
755761 except Exception :
756762 return traceback .format_exc (), 500
757763 elif request .method == "PATCH" :
758764 try :
759765 _DJConnector ._update_tuple (
760766 connection , schema_name , table_name , request .json ["records" ]
761767 )
762- return " Update Successful"
768+ return { "response" : " Update Successful"}
763769 except Exception :
764770 return traceback .format_exc (), 500
765771 elif request .method == "DELETE" :
@@ -779,7 +785,7 @@ def record(
779785 if k == "cascade"
780786 },
781787 )
782- return " Delete Sucessful"
788+ return { "response" : " Delete Successful" }
783789 except IntegrityError as e :
784790 match = foreign_key_error_regexp .match (e .args [0 ])
785791 return (
0 commit comments