add test case upload api

This commit is contained in:
virusdefender
2017-01-25 16:29:00 +08:00
parent e34da1ac33
commit 48f79ec504
13 changed files with 103 additions and 17 deletions

8
problem/views/oj.py Normal file
View File

@@ -0,0 +1,8 @@
from utils.api import APIView
from ..models import ProblemTag
class ProblemTagAPI(APIView):
def get(self, request):
return self.success([item.name for item in ProblemTag.objects.all().order_by("id")])