Sonja Happ
196beafcf9
CI: fix a path
2019-05-23 17:05:46 +02:00
Sonja Happ
9030363d17
Typo fix
2019-05-23 17:01:38 +02:00
Sonja Happ
13e80dcdca
CI: another fix
2019-05-23 16:58:35 +02:00
Sonja Happ
3f4ed4f404
CI: fix due to auto generated API docs
2019-05-23 16:54:46 +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
5a046103b5
fix typo
2019-05-22 16:38:44 +02:00
Sonja Happ
937194cecd
add endpoint testing with Go (WIP)
2019-05-22 16:37:51 +02:00
Sonja Happ
1e0103495f
work on visualization and widget endpoints
2019-05-22 16:01:01 +02:00
smavros
0a559b6c52
Turns user methods to unexported
2019-05-22 15:40:12 +02:00
smavros
8041ab2bc4
Implements user registration endpoint
2019-05-22 15:33:34 +02:00
smavros
6289b859bd
Implements user.SetPassword() method
2019-05-22 11:20:29 +02:00
Sonja Happ
7e135add5b
Implement more endpoints
2019-05-22 10:06:46 +02:00
Sonja Happ
403f350b25
Signal is no longer a DB table
2019-05-22 10:06:31 +02:00
Sonja Happ
0b1d8657b9
add (REMOVED) keyword to all endpoints that are replaced or removed in the new backend
2019-05-21 17:04:55 +02:00
Sonja Happ
8f2e039ff0
removed signal/sample naming chaos
2019-05-21 16:51:34 +02:00
Sonja Happ
2adcb1cdb6
fix some errors in file endpoints
2019-05-21 16:07:33 +02:00
Sonja Happ
d7d07e1db4
fix bug with json default values
2019-05-21 15:46:40 +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
a78bf892f5
Renaming:
...
- SimulationModel to Model
- Signal to Sample
2019-05-21 09:14:44 +02:00
Sonja Happ
17d88f4c67
Work on endpoints involving file management, To be tested, WIP
2019-05-20 16:17:54 +02:00
smavros
528c391a9f
Adds implementation of user.validatePassword():
...
- Uses bcrypt package for hashing the password
- Adds password hashing in common.DummyPopulateDB() for testing
2019-05-20 14:03:54 +02:00
smavros
dc9f70dc64
Merge branch 'authentication' of git.rwth-aachen.de:acs/public/villas/villasweb-backend-go into authentication
2019-05-20 12:05:15 +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
Sonja Happ
e7b15f6e5d
some API doc updates from today's meeting
2019-05-20 11:56:53 +02:00
smavros
ab0d8dea8b
Work in progress: /authenticate endpoint handler
2019-05-18 18:54:58 +02:00
Sonja Happ
75f8ef280d
Add file upload mechanism
2019-05-17 16:27:59 +02:00
Sonja Happ
4dfa4fd5f4
fix error in db test
2019-05-17 15:40:58 +02:00
Sonja Happ
8d3f7c4fa0
remove Files from User, add relation to to Widget
2019-05-17 15:32:58 +02:00
Sonja Happ
473abac8f4
work on file endpoints (WIP, not working)
2019-05-16 16:58:53 +02:00
smavros
a7f15e79fe
First try for Authentication middleware
2019-05-16 15:39:48 +02:00
Sonja Happ
5a6ec9108c
minor fixes in API doc
2019-05-16 14:14:31 +02:00
Sonja Happ
9331e07de9
Revision of API documentation:
...
- adding response codes to each endpoint
- removing recursion from component models
- changing order of tags
2019-05-16 13:15:02 +02:00
Sonja Happ
e03f076161
- rename "cimfile" to "file"
...
- fix API documentation
- move /uploads POST endpoint to /files POST
- add /files/FileID PUT endpoint for updating files
- mark removed and new endpoints in API doc
2019-05-16 09:27:44 +02:00
Sonja Happ
0438cfadea
add skeletons for new CIM file endpoints in simulationmodel endpoints
2019-05-15 16:10:29 +02:00
Sonja Happ
6894dd961f
fix api documentation for new CIM file endpoints
2019-05-15 16:10:00 +02:00
Sonja Happ
64af5a6434
add missing IDs for has many relations
2019-05-15 13:39:06 +02:00
Sonja Happ
ababe1e315
remove file belongs to user relationship
2019-05-15 13:33:43 +02:00
Sonja Happ
3c6e76ce7c
add slices of Files to associations of SimulationModel
2019-05-15 13:04:12 +02:00
Richard Marston
3f3a1346b7
New URL as discussed with stvogel
2019-05-14 13:41:53 +02:00
Richard Marston
83c148abeb
Correct repeat key declaration error
2019-05-14 10:02:27 +02:00
Richard Marston
cd96e20962
add URL for querying and editing models associated with a simulation
2019-05-13 14:47:21 +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
eea765f707
add skeletons for file endpoints
2019-05-09 12:33:47 +02:00
Sonja Happ
48a28ff932
add file structure for other routes (also new ones)
2019-05-09 11:59:44 +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
smavros
d34566e3ba
First implementation of users GET API operation
2019-04-29 16:48:42 +02:00
smavros
2723c32ba8
Adds helpers and serializer files for routing
2019-04-29 16:47:18 +02:00