from rest_framework.decorators import api_view
from rest_framework.response import Response
# wywolanie
#http://localhost:8000/get_expressions/?expression=yay
@api_view(['GET'])
def get_expressions(request):
expression = request.GET['expression']
return Response(expression)