readme update
This commit is contained in:
15
README.md
15
README.md
@@ -196,6 +196,14 @@ Endpoint url: `/api/v1/user/update/`
|
|||||||
Permissions: only accessible for your own user instance
|
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]
|
### my_user [GET]
|
||||||
|
|
||||||
Endpoint url: `/api/v1/my_user/`
|
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`
|
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
|
### User Management
|
||||||
|
|
||||||
Creation:
|
Creation:
|
||||||
@@ -309,6 +323,7 @@ Location ednpoints:
|
|||||||
- `/api/v1/provinces/`
|
- `/api/v1/provinces/`
|
||||||
- `/api/v1/cities/`
|
- `/api/v1/cities/`
|
||||||
|
|
||||||
|
Tables filled with data from `datasets/gadm36_ESP.gpkg` with `loadgisdata` command.
|
||||||
|
|
||||||
## Shop Integrations
|
## Shop Integrations
|
||||||
|
|
||||||
|
|||||||
@@ -170,7 +170,6 @@ def my_user(request):
|
|||||||
return Response({'error': {str(type(e))}}, status=500)
|
return Response({'error': {str(type(e))}}, status=500)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@api_view(['POST',])
|
@api_view(['POST',])
|
||||||
@permission_classes([IsAdminUser,])
|
@permission_classes([IsAdminUser,])
|
||||||
def load_coop_managers(request):
|
def load_coop_managers(request):
|
||||||
|
|||||||
Reference in New Issue
Block a user