mirror of
https://github.com/ansible/awx.git
synced 2026-02-25 06:56:00 -03:30
Stubs for API head points. To add reverse URLs next.
This commit is contained in:
@@ -28,10 +28,27 @@ from rest_framework.response import Response
|
||||
from rest_framework import status
|
||||
from rest_framework.settings import api_settings
|
||||
from rest_framework.authtoken.views import ObtainAuthToken
|
||||
from rest_framework.views import APIView
|
||||
import exceptions
|
||||
import datetime
|
||||
import json as python_json
|
||||
from base_views import *
|
||||
|
||||
|
||||
class ApiRootView(APIView):
|
||||
|
||||
def get(self, request, format=None):
|
||||
data = {}
|
||||
#data = python_json.dumps(data)
|
||||
return Response(data)
|
||||
|
||||
class ApiV1RootView(APIView):
|
||||
|
||||
def get(self, request, format=None):
|
||||
data = {}
|
||||
#data = python_json.dumps(data)
|
||||
return Response(data)
|
||||
|
||||
class AuthTokenView(ObtainAuthToken):
|
||||
|
||||
renderer_classes = api_settings.DEFAULT_RENDERER_CLASSES
|
||||
|
||||
Reference in New Issue
Block a user