- Notifications
You must be signed in to change notification settings - Fork12
A rest extension for django-invitations
License
fmarco/django-rest-invitations
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Rest customizable extension fordjango-invitations
Supported Python versions:
- 3.5
- 3.6
- 3.7
- 3.8
Supported Django versions:
- Django 1.11
- Django 2.0
- Django 3.0
Supported DRF versions:
- at least DRF 3.10 or greater
Make a proper setup for django-invitations.
# Add to settings.py, INSTALLED_APPS'rest_framework','invitations','rest_invitations'# Append to urls.pyurl(r'^', include('rest_invitations.urls'))INVITATION_SERIALIZER_READ(default=rest_invitations.serializers.InvitationReadSerializer)Path. Serializer class for invitations (read)
INVITATION_SERIALIZER_WRITE(default=rest_invitations.serializers.InvitationWriteSerializer)Path. Serializer class for invitations (write)
INVITATION_SERIALIZER_WRITE_BULK(default=rest_invitations.serializers.InvitationBulkWriteSerializer)Path. Serializer class for invitations (bulk write)
INVITATION_API_BASE_URL(default=invitations)String. Base api url.
INVITATION_SEND_URL(default=send)String. Set up url on send endpoint
INVITATION_CREATE_AND_SEND_URL(default=create-and-send)String. Set up url on create_and_send endpoint
INVITATION_SEND_MULTIPLE_URL(default=send-multiple)String. Set up url on send_multiple endpoint
INVITATION_ACCEPT_INVITE_URL(default=accept-invite)String. Set up url for accept_invitation endpoint
Invitations list- /invitations/ (list, create)
body request (create): email (string)
Invitation detail- /invitations/
<pk>/ (retrieve, destroy)
- /invitations/
Invitation send- /invitations/
<pk>/send/ (post)
body request: None
- /invitations/
Invitation create and send- /invitations/create-and-send/ (post)
body request: email (string)
Invitation multiple send- /invitations/send-multiple/ (post)
body request: email: list of strings
Accept invitation- /invitations/accept-invite/
<key>/ (get)
- /invitations/accept-invite/
Feel free to contribute!
About
A rest extension for django-invitations
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors3
Uh oh!
There was an error while loading.Please reload this page.