Commit graph

54 commits

Author SHA1 Message Date
Sonja Happ
d2c94d1886 - models: remove imageHeight and imageWidth from File model (is customProperty of image widget)
- test data: add test data in test mode via API instead of GORM
- fix typos and update API documentation
2020-03-13 17:16:12 +01:00
Sonja Happ
ef1dede70c renaming: simulation model = component configuration 2020-03-06 15:14:29 +01:00
Sonja Happ
11a0c53b85 rename simulator to infrastructure component 2020-03-04 16:34:24 +01:00
7d05fa5f08 do not append port to baseHost 2019-11-21 11:56:26 +01:00
Sonja Happ
92f22035c6 add GPL 3.0 license statement in all (not auto-generated) code files 2019-11-20 11:08:33 +01:00
Sonja Happ
3524564a0f separate port and host configuration parameters (default values remain unchanged) 2019-11-19 15:35:21 +01:00
Sonja Happ
9deed119fd fixes for healthz and metrics endpoints
- no authentication
- swagger documentation update
2019-11-14 12:34:20 +01:00
Sonja Happ
6d4c84ec4e - InitDB returns error
- Check more errors in InitDB
- fix for healthz endpoint (error checking was wrong)
- remove dbinit parameter from config due to redundancy with mode parameter
2019-11-14 11:44:26 +01:00
Sonja Happ
a868dccc10 Revolve name overlapping with docs package 2019-11-14 10:41:09 +01:00
Sonja Happ
7a64d4653a Some fixes with respect to config
- resolve some name overlappings
- InitConfig sets global config and returns error
- Add missing error handling
2019-11-14 10:38:51 +01:00
a1f7ea9ed9 Merge branch 'master' into config-logging 2019-11-13 21:28:29 +01:00
d546f7bc91 fix tests 2019-11-13 21:22:17 +01:00
085627f4e7 config: added base.host and base.path settings 2019-11-13 20:52:27 +01:00
cbefdd2d07 add new config package 2019-11-13 20:31:06 +01:00
81b0110b68 use log package 2019-11-13 20:30:02 +01:00
cbcf8abef7 healthz endpoint shoud reside at root path and be accessible by everybody (/api/v2 requires auth) 2019-11-13 18:10:28 +01:00
72be3b77bf added metrics route 2019-11-13 18:09:14 +01:00
34c39e26d9 swaggo: fix base url for API 2019-11-13 16:50:57 +01:00
Sonja Happ
32bff963d2 improves swaggo documentation
- remove blank lines
- add and improve links
2019-11-13 15:03:31 +01:00
Sonja Happ
4f62b52d9f register healthz endpoint, modify description for swaggo 2019-11-13 14:07:28 +01:00
2d16317bab ci: start rabbitmq service for tests 2019-11-11 18:20:41 +01:00
Sonja Happ
7963ce5e78 remove DB_TEST and use DB_NAME instead, InitDB function now has parameter to specify if DB is used for testing or not 2019-11-11 12:06:53 +01:00
2311d643c6 fix repo path 2019-11-09 11:40:56 +01:00
Sonja Happ
c0b8a6be80 revision of simulator package
- move amqp endpoint implementation to amqp package
- improve code coverage of simulator testing
- remove some unnecessary code from package implementation
2019-09-11 16:16:00 +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
smavros
c2429394ed Renames VisitorAuthenticate() to RegisterAuthenticate() 2019-08-15 14:52:19 +02:00
Sonja Happ
b378e8b7c1 renaming simulation to scenario 2019-07-18 14:35:20 +02:00
Sonja Happ
c33438b395 renaming visualization to dashboard 2019-07-18 13:11:05 +02:00
Sonja Happ
c565c04ba9 - remove ack of message in AMQP client
- add a command line parameter to activate AMQP client
2019-07-18 10:35:02 +02:00
Sonja Happ
b92584b1f7 First version of AMQP client integrated in backend, requires testing with RabbitMQ server 2019-07-04 15:09:33 +02:00
Sonja Happ
4793077a90 Add signal package and move signal endpoints from simulationmodel package to this one 2019-06-17 15:30:26 +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
ea974ba32b generate and deploy api docs based on swag tool 2019-06-06 09:57:40 +02:00
Sonja Happ
babe1cb308 refactoring Model to SimulationModel 2019-06-05 13:12:23 +02:00
Sonja Happ
f6ea39af12 Merge branch 'master' into authentication
# Conflicts:
#	go.mod
#	go.sum
#	routes/user/userEndpoints.go
#	routes/user/userSerializer.go
#	start.go
2019-05-28 10:40:53 +02:00
Sonja Happ
28751c4161 clean up endpoint registration in start and test 2019-05-27 14:55:12 +02:00
Sonja Happ
34eebbab88 Shorten API URLs, add more documentation for swaggo 2019-05-27 14:43:12 +02:00
Sonja Happ
0c4c60c1ce Add more API doc in code, modify deployment endpoint of auto generated API doc 2019-05-24 17:15:15 +02:00
Sonja Happ
9030363d17 Typo fix 2019-05-23 17:01:38 +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
b89a68296f Experimenting with testing and auto generating API specs based on code 2019-05-23 14:36:42 +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
a78bf892f5 Renaming:
- SimulationModel to Model
- Signal to Sample
2019-05-21 09:14:44 +02:00
smavros
8216767722 Changes in the user package:
- Moves `POST /users` to the users endpoint group where
    authentication is required
    - Renames userLogin to loginRequest
    - Adds userMethods.go source file to the package user
    - Adds type User in the user package which just wrapps the type
    common.User so methods can be added to the type
    - Adds prototypes of methods for setting/validating password and
    updating type User's data
2019-05-20 12:04:37 +02:00
smavros
ab0d8dea8b Work in progress: /authenticate endpoint handler 2019-05-18 18:54:58 +02:00
smavros
a7f15e79fe First try for Authentication middleware 2019-05-16 15:39:48 +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
83e8563526 use new folder structure for implementation of routes 2019-05-09 11:50:18 +02:00
Sonja Happ
eb19f3e133 Fix includes of gin-gonic 2019-04-30 11:12:24 +02:00