mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 06:51:10 +03:00
/api/v1/ping/ was added in 2.1.0
This commit is contained in:
parent
d6699353e5
commit
c3b962ced5
@ -151,7 +151,7 @@ class APIView(views.APIView):
|
||||
'''
|
||||
ret = super(APIView, self).metadata(request)
|
||||
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):
|
||||
added_in_version = version
|
||||
break
|
||||
|
@ -130,6 +130,7 @@ class ApiV1PingView(APIView):
|
||||
permission_classes = (AllowAny,)
|
||||
authentication_classes = ()
|
||||
view_name = 'Ping'
|
||||
new_in_210 = True
|
||||
|
||||
def get(self, request, format=None):
|
||||
"""Return some basic information about this Tower instance.
|
||||
|
Loading…
Reference in New Issue
Block a user