Overview of implemented HTTP queries

common.views

This module implements common baseclasses used in other RestAuth views..

class common.views.RestAuthResourceView(**kwargs)[source]

Bases: common.views.RestAuthView

Class for all views that have one variable in the path, i.e. /users/<user>/props/.

dispatch(request, name, **kwargs)[source]

Adds the ‘name’ logging argument, and passes that as extra keyword-argument to the parents dispatch method.

class common.views.RestAuthSubResourceView(**kwargs)[source]

Bases: common.views.RestAuthView

Class for all views that have two variables in the path, i.e. /users/<user>/props/<prop>/.

dispatch(request, name, subname, **kwargs)[source]

Adds the ‘subname’ logging argument, and passes that as extra keyword-argument to the parents dispatch method.

class common.views.RestAuthView(**kwargs)[source]

Bases: django.views.generic.base.View

Base view for all RestAuth related views.

dispatch(request, **kwargs)[source]

Adds the ‘service’ logging argument, and passes that as extra keyword-argument to the parents dispatch method.

User.views

This module implements all HTTP queries to /user/*.

class Users.views.UserHandlerView(**kwargs)[source]

Bases: common.views.RestAuthResourceView

Handle requests to /users/<user>/.

delete(request, largs, name)[source]

Delete a user.

get(request, largs, name)[source]

Verify that a user exists.

post(request, largs, name)[source]

Verify a users password.

put(request, largs, name)[source]

Change a users password.

class Users.views.UserPropHandler(**kwargs)[source]

Bases: common.views.RestAuthSubResourceView

Handle requests to /users/<user>/props/<prop>/.

delete(request, largs, name, subname)[source]

Delete a property.

get(request, largs, name, subname)[source]

Get value of a single property.

put(request, largs, name, subname)[source]

Set value of a single property.

class Users.views.UserPropsIndex(**kwargs)[source]

Bases: common.views.RestAuthResourceView

Handle requests to /users/<user>/props/.

get(request, largs, name)[source]

Get all properties of a user.

post(request, largs, name, dry=False)[source]

Create a new property.

put(request, largs, name)[source]

Set multiple properties.

class Users.views.UsersView(**kwargs)[source]

Bases: common.views.RestAuthView

Handle requests to /users/.

get(request, largs, *args, **kwargs)[source]

Get all users.

post(request, largs, dry=False)[source]

Create a new user.

Group.views

This module implements all HTTP queries to /group/*.

class Groups.views.GroupGroupHandler(**kwargs)[source]

Bases: common.views.RestAuthSubResourceView

Handle requests to /groups/<meta-group>/group/<sub-group>/.

delete(request, largs, name, subname)[source]

Remove a subgroup from a group.

class Groups.views.GroupGroupsIndex(**kwargs)[source]

Bases: common.views.RestAuthResourceView

Handle requests to /groups/<group>/group/.

get(request, largs, name)[source]

Get a list of sub-groups

post(request, largs, name)[source]

Add a sub-group.

class Groups.views.GroupHandlerView(**kwargs)[source]

Bases: common.views.RestAuthResourceView

Handle requests to /groups/<group>/.

delete(request, largs, name)[source]

Delete a group.

get(request, largs, name)[source]

Verify that a group exists.

class Groups.views.GroupUserHandler(**kwargs)[source]

Bases: common.views.RestAuthSubResourceView

Handle requests to /groups/<group>/users/<user>/.

delete(request, largs, name, subname)[source]

Remove a user from a group.

get(request, largs, name, subname)[source]

Verify that a user is in a group.

class Groups.views.GroupUsersIndex(**kwargs)[source]

Bases: common.views.RestAuthResourceView

Handle requests to /groups/<group>/users/.

get(request, largs, name)[source]

Get all users in a group.

post(request, largs, name)[source]

Add a user to a group.

class Groups.views.GroupsView(**kwargs)[source]

Bases: common.views.RestAuthView

Handle requests to /groups/.

get(request, largs)[source]

Get a list of groups or, if called with the ‘user’ query parameter, a list of groups where the user is a member of.

post(request, largs, dry=False)[source]

Create a new group.

Table Of Contents

Previous topic

Custom backends

This Page