2019-05-20 11:39:53 +00:00
|
|
|
# coding: utf-8
|
|
|
|
#
|
|
|
|
|
2019-10-18 07:05:45 +00:00
|
|
|
from orgs.mixins import generics
|
2021-01-03 21:27:03 +00:00
|
|
|
from ..hands import IsAppUser
|
2020-10-27 10:01:08 +00:00
|
|
|
from .. import models
|
2021-01-03 21:27:03 +00:00
|
|
|
from ..serializers import RemoteAppConnectionInfoSerializer
|
|
|
|
from ..permissions import IsRemoteApp
|
2019-05-20 11:39:53 +00:00
|
|
|
|
|
|
|
|
|
|
|
__all__ = [
|
2021-01-03 21:27:03 +00:00
|
|
|
'RemoteAppConnectionInfoApi',
|
2019-05-20 11:39:53 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
class RemoteAppConnectionInfoApi(generics.RetrieveAPIView):
|
2020-10-27 10:01:08 +00:00
|
|
|
model = models.Application
|
2021-01-03 21:27:03 +00:00
|
|
|
permission_classes = (IsAppUser, IsRemoteApp)
|
2019-05-20 11:39:53 +00:00
|
|
|
serializer_class = RemoteAppConnectionInfoSerializer
|