Commit graph

27 commits

Author SHA1 Message Date
2311d643c6 fix repo path 2019-11-09 11:40:56 +01:00
Sonja Happ
ddb4a9c8ca improve testing of widget package, remove some unnecessary code 2019-09-11 16:46:29 +02:00
Sonja Happ
387c922059 Revision of (file) testing
- create a guest user and modify function that adds users to the DB for testing
- improve code coverage of file endpoint tests and remove some obsolete code from file package
- add more error info if role validation fails in all endpoints
- change response of GET files to only return the file data and nothing else
- fix some bugs in file endpoints that became visible by the tests
2019-09-11 12:30:01 +02:00
Sonja Happ
d160103fcf create a function in helper package to extract the ID of an element from a path or query and use this function in middleware 2019-09-10 17:17:53 +02:00
Sonja Happ
f3a7ed0e61 **Major revision of repository structure**
- rename common package to database
- move all code not related to database to new helper package
- add more test in database package to improve code coverage
- add a new (own) package for AMQP client
2019-09-10 16:28:57 +02:00
Sonja Happ
2ffda7cad8 - revise naming of some common functions
- improve returning of error codes by using common functions
- use a separate file for authentication endpoint to improve clarity of code
2019-09-09 15:30:17 +02:00
Sonja Happ
ac9e564bc8 - deleting old obsolete test functions
- move all data and functions solely used for testing to the file test_utilities
- get rid of utilities file
2019-09-09 12:11:55 +02:00
Sonja Happ
676c2073ba delete commented code 2019-09-06 15:11:26 +02:00
Sonja Happ
e3651e34f0 - revise testing of widget enpoints
- add validators for widgets
- revise implementation of widget endpoints
- clean up testdata, serializers and response
- improve documentation for swaggo
2019-09-06 15:10:25 +02:00
smavros
c2429394ed Renames VisitorAuthenticate() to RegisterAuthenticate() 2019-08-15 14:52:19 +02:00
Sonja Happ
92eb455e5a revise widget testing 2019-07-25 13:25:46 +02:00
Sonja Happ
eb277fc92e use jsondiff in endpoint testing 2019-07-24 13:17:47 +02:00
Sonja Happ
f0be5cce00 file renaming 2019-07-18 13:25:41 +02:00
Sonja Happ
c33438b395 renaming visualization to dashboard 2019-07-18 13:11:05 +02:00
Sonja Happ
fc91ebc64c working on file endpoints; testing to be completed, other tests to be checked 2019-07-03 16:53:04 +02:00
Sonja Happ
86e380c85e - implement simulator endpoints
- add field for simulation models to simulator models and adapt methods for adding/updating a model
- minor renaming of test functions
2019-06-18 13:55:10 +02:00
Sonja Happ
7c9318de8f add testing for widget endpoints 2019-06-17 14:15:39 +02:00
Sonja Happ
513ec3b2ee - role and permission check for visualization and widget endpoints
- implementation of visualization and widget endpoints
- some refactoring in permission checks
2019-06-17 11:45:24 +02:00
Sonja Happ
5ca6281a22 - add testing for simulationmodel endpoints
- add Signal serializer
- Use Signals DB table again
- remove / in some endpoint definitions
2019-06-06 16:36:12 +02:00
Sonja Happ
786e36398b implement model-specific methods instead of queries (WIP) 2019-05-28 16:41:30 +02:00
Sonja Happ
34eebbab88 Shorten API URLs, add more documentation for swaggo 2019-05-27 14:43:12 +02:00
Sonja Happ
e7790f82a4 deterministic order of elements based on ID if multiple elements are extracted from DB 2019-05-24 16:31:28 +02:00
Sonja Happ
144c97ce49 Refactoring code base to new structure, removing circular dependencies, creating response types 2019-05-23 16:50:05 +02:00
Sonja Happ
5409c61939 Major changes:
- continue revision of folder structure
- work on model endpoints
- add skeletons for clone endpoints
2019-05-21 14:37:45 +02:00
Sonja Happ
44e15773fd Major changes:
- revise data model to new version (without project)
- adapt database test to new data model
- use separate folder for all endpoint defs and functions to avoid circular deps
- add all API endpoints and skeletons for their implementation
2019-05-21 12:49:39 +02:00
Sonja Happ
2e7475a26b - add first draft of code for other routes (not complete!)
- some new endpoints
- some new DB queries
- some new serializers
2019-05-09 17:02:24 +02:00
Sonja Happ
48a28ff932 add file structure for other routes (also new ones) 2019-05-09 11:59:44 +02:00