readme update

This commit is contained in:
Sam
2021-03-10 12:44:23 +00:00
parent faf3cfc3fa
commit a033fa3606
2 changed files with 15 additions and 1 deletions

View File

@@ -196,6 +196,14 @@ Endpoint url: `/api/v1/user/update/`
Permissions: only accessible for your own user instance
### create_company_user [POST]
Edndpoint: `/api/v1/create_company_user/`
Simultaneously create a company and its related user
NOT WORKING!!!
### my_user [GET]
Endpoint url: `/api/v1/my_user/`
@@ -208,6 +216,12 @@ Ednpoint url: `/api/v1/load_coops/`
For each row it creates a Company instance, and a user instance linked to the company, with role `COOP_MANAGER`
### activate_user
Endpoint: `/activate/<uidb64>/<token>/`
This endpoint is reached from the URL sent to the user after their registration
### User Management
Creation:
@@ -309,6 +323,7 @@ Location ednpoints:
- `/api/v1/provinces/`
- `/api/v1/cities/`
Tables filled with data from `datasets/gadm36_ESP.gpkg` with `loadgisdata` command.
## Shop Integrations

View File

@@ -170,7 +170,6 @@ def my_user(request):
return Response({'error': {str(type(e))}}, status=500)
@api_view(['POST',])
@permission_classes([IsAdminUser,])
def load_coop_managers(request):