Commit Graph

777 Commits (8484d8289bce0901b4e92edc1e8e2b5d8ade6086)

Author SHA1 Message Date
Matheus Lima 8484d8289b - Changing the validation in the endpoints used to update the device fields and to activate the device and to upload the skill settings
- Checking the authentication token in the before_request function. This is a tricky to make the api compatible with the mycroft core is expecting today. Today tartarus returns 401 when it calls and endpoint with a non existent path (like /device/{uuid} without pass the uuid). That is the value core expect to check if it needs to perform a device pairing. We should change that in future versions
- Changed device endpoint to send the user uuid together with the device
2019-03-08 17:09:53 -03:00
Chris Veilleux 38494522de
Merge pull request #72 from MycroftAI/put-v1-public-api
Adding the /v1 prefix to the endpoints
2019-03-07 20:14:35 -06:00
Matheus Lima 164d2280f9 Adding the /v1 prefix to the endpoints 2019-03-07 23:08:19 -03:00
Chris Veilleux c4576b562d
Merge pull request #71 from MycroftAI/test
Down merge Test to dev
2019-03-07 18:41:37 -06:00
Chris Veilleux 3053c5f15a added uwsgi to project requirements 2019-03-07 18:13:57 -06:00
Chris Veilleux 9a61c2d962
Merge pull request #70 from MycroftAI/dev
Dev to test
2019-03-07 18:00:26 -06:00
Chris Veilleux 77100fe28e
Merge pull request #69 from MycroftAI/public-api-uwsgi
added uwsgi.ini file
2019-03-07 17:59:03 -06:00
Chris Veilleux 789a07b020 added uwsgi.ini file 2019-03-07 17:16:26 -06:00
Chris Veilleux 83c7ea2468
Merge pull request #68 from MycroftAI/dev
Public API authentication to test
2019-03-07 12:51:23 -06:00
Matheus Lima e4bd9930d7 Created endpoint to patch device fields 2019-03-06 22:39:34 -03:00
Matheus Lima 4dc2b47c63 Applying the new authentication logic in the endpoints of the public API 2019-03-06 22:10:59 -03:00
Matheus Lima e8fc54d657 Moved logic related to create a device login session to a python function, allowing it being used by the creating and refreshing token endpoint and by the behavioral tests 2019-03-06 21:31:49 -03:00
Matheus Lima c44284fbef Implemented authentication mechanism for the public API 2019-03-06 18:15:45 -03:00
Matheus Lima a4ecbae369 Moving the cache instance to the PublicEndpoint class 2019-03-06 17:11:16 -03:00
Matheus Lima fe8466a309 Created test to validate that when we update the skills settings, the device API is able to fetch the skill settings with the new values 2019-03-06 16:42:57 -03:00
Matheus Lima c1f0e70980 Created test to validate that when we update the skills settings, the device API is able to fetch the skill settings with the new values 2019-03-06 15:35:35 -03:00
Matheus Lima b85809f316 Implemented skill uploading 2019-03-06 15:35:35 -03:00
Matheus Lima 13e64340e9 Storing skill identifier in to settings_display from the skill.setting_display table 2019-03-06 15:35:35 -03:00
Matheus Lima fabcba8c54 Created endpoint to communicate with the wolfram alpha spoken api 2019-03-06 15:33:39 -03:00
Matheus Lima b1eba07e8e Fixing the importer to properly fill the account_agreement table 2019-03-06 15:22:45 -03:00
Matheus Lima e8e30f9d6e Created endpoint to refresh device oauth token 2019-03-06 15:22:45 -03:00
Chris Veilleux 66ce602e65
Merge pull request #66 from MycroftAI/test
Down merge new code in test to dev
2019-03-06 12:15:46 -06:00
Chris Veilleux 37c94f1adc squashed bug where we tried to encrypt a non-existent password for federated logins 2019-03-06 11:40:54 -06:00
Chris Veilleux b7cbc5a733 fixed a bug where the request data was not un-serialized before processing 2019-03-05 22:39:06 -06:00
Chris Veilleux c806bcc689 added configs to uwsgi.ini files 2019-03-05 21:34:25 -06:00
Chris Veilleux 84965186dc added geography endpoint and the repository code to support it 2019-03-05 16:04:38 -06:00
Chris Veilleux 1bfa7800c5 added voice endpoint and the repository code to support it 2019-03-05 15:43:32 -06:00
Chris Veilleux a039bcfb0e new endpoint to manage wake words and the repository changes to support it 2019-03-05 15:23:24 -06:00
Chris Veilleux a16bdae969 new account api endpoint to retreive account preferences, along with the necessary repository changes 2019-03-05 15:22:09 -06:00
Chris Veilleux ac7f1cb593 added device endpoint to account api and altered repository to serve it data 2019-03-05 15:20:31 -06:00
Chris Veilleux e3d42d3aca ui is expecting a value in the membership type even if the user has no membership 2019-03-04 14:41:56 -06:00
Chris Veilleux 169d026db9 fixed a missing None check bug 2019-03-04 14:37:13 -06:00
Chris Veilleux 5f03a3c135 fixed a bug where no the account.agreements attribute was None if there were no agreements. now set to empty list 2019-03-04 14:31:37 -06:00
Chris Veilleux 91a77c5720 added sslmode to connection config to support DigitalOcean database hosting 2019-03-04 00:44:53 -06:00
Chris Veilleux 59872f4d24 socket change 2019-03-04 00:43:56 -06:00
Chris Veilleux f1bd6ce1e2 added a uwsgi.ini file for the account api 2019-03-03 22:20:14 -06:00
Chris Veilleux 5efaa7c290
Merge pull request #62 from MycroftAI/dev
tartarus overhaul to test
2019-03-03 21:54:41 -06:00
Chris Veilleux 63aabea6ed
Merge pull request #61 from MycroftAI/tartarus-overhaul
Neo4j to postgres converter
2019-03-03 21:00:05 -06:00
Chris Veilleux a0cb3069c0
Merge pull request #57 from MycroftAI/skills-setting
Updating the neo4j-postgres converter
2019-03-03 20:59:05 -06:00
Matheus Lima a5dcdf0c94 Applying model changes 2019-03-03 22:46:00 -03:00
Matheus Lima a90833f178 Fixing tests after rebase 2019-03-03 22:46:00 -03:00
Matheus Lima d599fb9540 Filling the account_agreements table 2019-03-03 22:46:00 -03:00
Matheus Lima 737167b854 Fixed skill endpoints applying the changes related to the skill settings model. 2019-03-03 22:46:00 -03:00
Matheus Lima d38d51e568 Filling the table device.device_skill 2019-03-03 22:46:00 -03:00
Matheus Lima 17f57f61c7 Updating the neo4j-postgres converter to match with the new database model. Also using batch insertions to speed up the processing time 2019-03-03 22:46:00 -03:00
Chris Veilleux e38259c8ae Merge remote-tracking branch 'origin/dev' into dev 2019-03-03 19:24:53 -06:00
Chris Veilleux 0533be1e40 initial version of jenkinsfile 2019-03-03 19:21:46 -06:00
Chris Veilleux 24a2befda6
Merge pull request #60 from MycroftAI/tartarus-overhaul
Tartarus overhaul to dev
2019-03-03 19:19:22 -06:00
Chris Veilleux c422ed26f5 changed environment setup to deal with new naming 2019-03-03 19:11:27 -06:00
Chris Veilleux 9595eef5c2 changed behavior tests to deal with naming changes 2019-03-03 19:09:16 -06:00