1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 15:21:13 +03:00

/api/v1/ping/ was added in 2.1.0

This commit is contained in:
Luke Sneeringer 2014-12-02 10:39:54 -06:00
parent d6699353e5
commit c3b962ced5
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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.