mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 03:10:42 -03:30
17 lines
397 B
Python
17 lines
397 B
Python
# myapp/api.py
|
|
|
|
from tastypie.resources import ModelResource
|
|
from lib.api.auth import AcomAuthentication, AcomAuthorization
|
|
|
|
import lib.main.models as models
|
|
|
|
class Organizations(ModelResource):
|
|
|
|
class Meta:
|
|
queryset = models.Organization.objects.all()
|
|
resource_name = 'organizations'
|
|
authentication = AcomAuthentication()
|
|
authorization = AcomAuthorization()
|
|
|
|
|