b87389e07b
#31 API POST/PUT Intervention
...
* splits code in smaller, reusable methods
* adds put method to view
* adds update_model_from_json() method
2022-01-24 13:04:39 +01:00
d0f3fb9f61
#31 API POST Intervention
...
* adds support for proper POST of intervention
* makes /<id> optional (required for Post)
2022-01-24 12:17:17 +01:00
45ac5b68b9
#31 API basic implementation Refactor
...
* reorganizes code into proper api/utils/serializer subclasses to keep serialization logic away from regular view logic
2022-01-24 10:31:48 +01:00
8d400b4ffe
#31 API basic implementation Cleanup
...
* cleans code
* reworks many code fragments into smaller methods and split into super class
2022-01-21 18:34:01 +01:00
870cc96a1a
#31 API basic implementation Ema fetch
...
* adds API support for fetching EMA
2022-01-21 17:49:07 +01:00
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
2022-01-21 17:44:58 +01:00
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)
2022-01-21 17:32:31 +01:00
0c35e79d04
#31 API basic implementation Intervention fetch
...
* enhances intervention fetching and serialization
2022-01-21 16:29:59 +01:00
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"
2022-01-21 16:15:16 +01:00
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
2022-01-21 15:26:08 +01:00