diff --git a/README.md b/README.md index 26b7c70..b45a011 100644 --- a/README.md +++ b/README.md @@ -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///` + +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 diff --git a/core/views.py b/core/views.py index 7120211..1bb70e4 100644 --- a/core/views.py +++ b/core/views.py @@ -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):