Commit Graph

18 Commits

Author SHA1 Message Date
9da5df2d5b #31 API Improvement
* adds support for returning all shared data
* adds documentation
2022-01-24 16:23:38 +01:00
fa6603f218 #31 API PUT Compensation
* adds support for PUT compensation (Update)
* improves updating of related objects
* adds missing payment PUT support for intervention API
2022-01-24 15:56:02 +01:00
59c5caf8ac #31 API code cleaning
* splits large AbstractModelAPISerializer into different reusable Mixins to increase reusability of code for similar models
2022-01-24 15:20:23 +01:00
b3b9bfca09 #31 API POST Compensation
* adds documentations
* adds check for valid deadline type
2022-01-24 15:04:20 +01:00
08ab36ffda #31 API POST Compensation
* adds initialize_objects to an abstractmethod of the super class to be implemented in subclasses
* differentiates error messages if intervention does not exist or is just not shared with the user
2022-01-24 14:51:50 +01:00
fa01733815 #31 API POST Compensation
* adds support for POST of new compensations
* adds shared_users property to BaseObject and Compensation to simplify fetching of shared users (Compensation inherits from intervention)
* extends compensation admin index
* modifies compensation manager which led to invisibility of deleted entries in the admin backend
* fixes bug in sanitize_db.py where CREATED useractions would be removed if they are not found on any log but still are used on the .created attribute of the objects
2022-01-24 14:41:56 +01:00
5ad1b35dc0 #31 API basic implementation Cleanup
* cleans code
* reworks many code fragments into smaller methods and split into super class
2022-01-24 13:12:29 +01:00
b1a42b126e #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
854e358b73 #31 API POST Intervention
* adds check for deserializing of konova codes
2022-01-24 12:50:28 +01:00
a03f9c8c78 #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
a06eaa49fb #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
ee828598cc #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
2db63b4f91 #31 API basic implementation Ema fetch
* adds API support for fetching EMA
2022-01-21 17:49:07 +01:00
beb67ba307 #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
fd4729aa03 #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
11de423d05 #31 API basic implementation Intervention fetch
* enhances intervention fetching and serialization
2022-01-21 16:29:59 +01:00
cf82f4b223 #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
134651c8f7 #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