mirror of
https://github.com/ansible/awx.git
synced 2026-02-01 09:38:10 -03:30
Basic API object creation. Auth still stubbed out.
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
# myapp/api.py
|
||||
|
||||
from tastypie.resources import ModelResource
|
||||
from lib.api.auth import AcomAuthentication, AcomAuthorization
|
||||
|
||||
import lib.main.models as models
|
||||
|
||||
class Organizations(ModelResource):
|
||||
@@ -7,4 +10,7 @@ class Organizations(ModelResource):
|
||||
class Meta:
|
||||
queryset = models.Organization.objects.all()
|
||||
resource_name = 'organizations'
|
||||
authentication = AcomAuthentication()
|
||||
authorization = AcomAuthorization()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user