Private
Public Access
1
0

started with StrokeData POST

This commit is contained in:
Sander Roosendaal
2016-11-25 15:27:46 +01:00
parent 44b2145f2f
commit af3396cfee
4 changed files with 27 additions and 5 deletions

View File

@@ -40,5 +40,16 @@ class WorkoutSerializer(serializers.HyperlinkedModelSerializer):
'csvfilename',
)
class StrokeDataSerielizer(serializers.Serializer):
workoutid = serializers.IntegerField
strokedata = serializers.JSONField
def create(self, validated_data):
"""
Create and enter a new set of stroke data into the DB
"""
# do something
print "fake serializer"
return 1