A(nother) seed project for the django rest framework.
- Built in Oauth2 Toolkit
- Custom user model (That actually works with the default groups model)
- Public User registration endpoint
- CORS enabled
- Built in Swagger docs (Visit
/docs/
)
Just create a virtualenv with Python 3.6.4 (That's the version I've used), install the requirements and migrate the database.
- POST /account/create/ -> Endpoint to create new users.
- GET /account/me/ -> Get logged in user data
- PATCH / PUT /account/me/ -> Update logged in user
- DELETE /account/me/ -> Delete logged in user
This seed also exposes the default Django OAuth Toolkit endpoints for authentication. Never used the Django OAuth Toolkit before? Read the great tutorial (There you'll find all the endpoints you need)!
- Localization: Right now the API returns all the "django default messages" in german. I don't like that either but our customers do.. You can change this in the settings.py file in
/rest/rest/
. - Is there an endpoint to see other users? No. Feel free to create your own :)