geonode.resource.api.views
Attributes
Classes
API endpoint that allows users to be viewed or edited. |
Functions
|
Return a list of resources matching the filtering criteria. |
|
Returns a JSON boolean success field indicating the outcome of the 'exists' operation. |
|
Main dispatcher endpoint to follow an API request status progress |
Module Contents
- geonode.resource.api.views.resource_service_search(request, resource_type: str = None)[source]
Return a list of resources matching the filtering criteria.
Sample requests:
- Get all ResourceBases the user has access to:
- Get all ResourceBases filtered by type criteria the user has access to:
- Get ResourceBases filtered by model criteria the user has access to:
http://localhost:8000/api/v2/resource-service/search/?filter={“title__icontains”:”foo”}
- geonode.resource.api.views.resource_service_exists(request, uuid: str)[source]
Returns a JSON boolean success field indicating the outcome of the ‘exists’ operation.
Example: GET http://localhost:8000/api/v2/resource-service/exists/13decd74-df04-11eb-a0c1-00155dc3de71
Response:
200 OK { "success": true }
- geonode.resource.api.views.resource_service_execution_status(request, execution_id: str)[source]
Main dispatcher endpoint to follow an API request status progress
GET input: <str: execution id>
output: <ExecutionRequest>