mirror of
https://github.com/ansible/awx.git
synced 2026-03-09 05:29:26 -02:30
/api/v1/ping/ was added in 2.1.0
This commit is contained in:
@@ -151,7 +151,7 @@ class APIView(views.APIView):
|
|||||||
'''
|
'''
|
||||||
ret = super(APIView, self).metadata(request)
|
ret = super(APIView, self).metadata(request)
|
||||||
added_in_version = '1.2'
|
added_in_version = '1.2'
|
||||||
for version in ('2.0.0', '1.4.8', '1.4.5', '1.4', '1.3'):
|
for version in ('2.1.0', '2.0.0', '1.4.8', '1.4.5', '1.4', '1.3'):
|
||||||
if getattr(self, 'new_in_%s' % version.replace('.', ''), False):
|
if getattr(self, 'new_in_%s' % version.replace('.', ''), False):
|
||||||
added_in_version = version
|
added_in_version = version
|
||||||
break
|
break
|
||||||
|
|||||||
@@ -130,6 +130,7 @@ class ApiV1PingView(APIView):
|
|||||||
permission_classes = (AllowAny,)
|
permission_classes = (AllowAny,)
|
||||||
authentication_classes = ()
|
authentication_classes = ()
|
||||||
view_name = 'Ping'
|
view_name = 'Ping'
|
||||||
|
new_in_210 = True
|
||||||
|
|
||||||
def get(self, request, format=None):
|
def get(self, request, format=None):
|
||||||
"""Return some basic information about this Tower instance.
|
"""Return some basic information about this Tower instance.
|
||||||
|
|||||||
Reference in New Issue
Block a user