mpeltriaux
c7382f1e54
#118 API pagination
...
* adds pagination and related parameters to GET apis
* updates api GET test
3 years ago
mpeltriaux
4c98949ba3
#31 API Deductions
...
* adds GET/POST/PUT/DELETE support for EcoAccountDeductions
3 years ago
mpeltriaux
e7dbea49cd
#31 API DELETE
...
* adds support for DELETE method for all relevant objects
* improves get_obj_from_db functionality
* drops custom compensation logic for get_obj_from_db due to improvement of base method
3 years ago
mpeltriaux
26f402fd3b
#31 API WIP
...
* adds support for GET /check on intervention to run checks automatically via API
3 years ago
mpeltriaux
f461a8e38d
#31 API Improvement
...
* adds support for returning all shared data
* adds documentation
3 years ago
mpeltriaux
b87389e07b
#31 API POST/PUT Intervention
...
* splits code in smaller, reusable methods
* adds put method to view
* adds update_model_from_json() method
3 years ago
mpeltriaux
d0f3fb9f61
#31 API POST Intervention
...
* adds support for proper POST of intervention
* makes /<id> optional (required for Post)
3 years ago
mpeltriaux
45ac5b68b9
#31 API basic implementation Refactor
...
* reorganizes code into proper api/utils/serializer subclasses to keep serialization logic away from regular view logic
3 years ago
mpeltriaux
8d400b4ffe
#31 API basic implementation Cleanup
...
* cleans code
* reworks many code fragments into smaller methods and split into super class
3 years ago
mpeltriaux
870cc96a1a
#31 API basic implementation Ema fetch
...
* adds API support for fetching EMA
3 years ago
mpeltriaux
4f6964b04a
#31 API basic implementation EcoAccount fetch
...
* outsources json creation of modified_on an created_on to superclass
* adds API support for fetching ecoaccount data
3 years ago
mpeltriaux
897520f906
#31 API basic implementation Compensation
...
* adds compensation fetching for API v1
* refactors filter into predefined lookup dict of super class (needs to be customized on subclasses)
3 years ago
mpeltriaux
0c35e79d04
#31 API basic implementation Intervention fetch
...
* enhances intervention fetching and serialization
3 years ago
mpeltriaux
3938db1893
#31 API basic implementation Token Authentication
...
* adds token checking to AbstractModelAPIView
* adds user accessibility filtering for intervention API v1
* extends fetch_and_serialize() method to take a dict for db filtering instead of a single field and value
* organizes urlnames into supporting formats like "api:v1:intervention"
3 years ago
mpeltriaux
881da38538
#31 API basic implementation
...
* adds new app to project
* adds relation between User model and new APIUserToken model
* adds first implementation for GET of intervention
* adds basic code layout for future extension by having new versions
3 years ago