mirror of
https://github.com/magnum-opus-tender-hack/backend.git
synced 2024-11-15 14:06:36 +03:00
22 lines
540 B
Python
22 lines
540 B
Python
from rest_framework import serializers
|
|
|
|
|
|
class SearchSerializer(serializers.Serializer):
|
|
body = serializers.CharField(max_length=200)
|
|
|
|
def create(self, validated_data):
|
|
raise NotImplementedError
|
|
|
|
def update(self, instance, validated_data):
|
|
raise NotImplementedError
|
|
|
|
|
|
class ResponseSerializer(serializers.Serializer):
|
|
results = serializers.JSONField()
|
|
|
|
def create(self, validated_data):
|
|
raise NotImplementedError
|
|
|
|
def update(self, instance, validated_data):
|
|
raise NotImplementedError
|