Commit Graph

98 Commits (487f6da2889769626f9d4784283a914c6c6d94c6)

Author SHA1 Message Date
Chris Veilleux 72327c696d Merge remote-tracking branch 'origin/test' into test 2019-04-22 16:58:34 -05:00
Chris Veilleux 2ee471a6e1 add api metrics table and collection. in the process, changed the database connection mechanism to only get a connection from the pool once per request. 2019-04-22 16:58:28 -05:00
Matheus Lima 710ab6520c Validating skill settings retrieved 2019-04-19 12:36:45 -03:00
Matheus Lima d60fc06ea2 Fixing the skills settings uploading when the skill has empty settings 2019-04-19 12:28:17 -03:00
Chris Veilleux 322bdabee6 Merge remote-tracking branch 'origin/test' into test 2019-04-18 12:50:36 -05:00
Chris Veilleux bb4fbd0ac2 Added logic to update a device from the UI, which led to some ancillary changes in logic to add a device. Minor refactoring also done. 2019-04-18 12:49:06 -05:00
Chris Veilleux dde2ea05ea added pyhamcrest and moved selene from dev-packages to packages 2019-04-17 12:24:34 -05:00
Matheus Lima 6c8f7753b1 Adding code field to timezone and fixing the offset and dst offset to de returned in milliseconds instead of hours 2019-04-16 18:36:22 -03:00
Matheus Lima 2af381cf00 Fixing skills settings and skills manifest uploading 2019-04-16 18:11:14 -03:00
Chris Veilleux ad7eb63536
Merge pull request #104 from MycroftAI/test
added logging config to public api
2019-04-04 13:27:45 -05:00
Chris Veilleux bf4991007b added logging config to public api 2019-04-04 13:19:22 -05:00
Matheus Lima c8a86076f9 Configuring logging root 2019-04-03 22:53:35 -03:00
Matheus Lima 8d4df9928e Adding logging to the skill manifest endpoint 2019-04-03 22:08:58 -03:00
Chris Veilleux b6542198f3 added a patch method to the preferences endpoint and did some refactoring 2019-04-02 20:35:27 -05:00
Matheus Lima 3992787355 Fixing skill validation 2019-04-02 16:58:24 -03:00
Matheus Lima 7f1e83c8d5 Fixing skill validation 2019-04-02 16:37:45 -03:00
Matheus Lima 492a778d40 Added etag support to the endpoint to get skill settings 2019-04-02 13:42:45 -03:00
Matheus Lima 07757f6dbc Fixing the skills setting and skills manifest uploading 2019-04-01 18:46:59 -03:00
Matheus Lima aabc779647 fixing bug with google stt and fixing device's setting to properly return date format and time format 2019-03-27 13:11:38 -03:00
Matheus Lima dac786238d Minor refactor 2019-03-27 11:34:29 -03:00
Matheus Lima cab65636db Created API call to fetch the skills manifest 2019-03-27 11:23:59 -03:00
Matheus Lima e23d9ab840 Created endpoint to upload skills manifest 2019-03-27 11:23:59 -03:00
Matheus Lima 0deb202125 Added etag support to the device location endpoint 2019-03-27 11:21:26 -03:00
Matheus Lima f3e67f9677 Created endpoint to fetch a location associated with a device 2019-03-27 11:21:26 -03:00
Matheus Lima a55211f0b5 Fixing tests 2019-03-27 11:21:26 -03:00
Chris Veilleux 425be9a0a8 merge dev into add-device 2019-03-21 12:08:38 -05:00
Chris Veilleux 330390fd81 commented these out for now since they depend on an endpoint that was moved. 2019-03-20 17:16:18 -05:00
Chris Veilleux 4042775422 apply schema changes 2019-03-20 17:15:56 -05:00
Chris Veilleux db230cc208 removed add device endpoint as it now exists in the account API 2019-03-20 17:12:32 -05:00
Chris Veilleux 3b0a8cfa9e added payment id to subscription arguments to fix a bug 2019-03-20 17:10:48 -05:00
Matheus Lima c0ee6224d9 Created functions to epire etags from the device entity and the device's settings entity, at device and account level. Fixed the query used to fetch the devices from a user 2019-03-19 12:42:16 -03:00
Matheus Lima b422de76c2 Implemented etag support on the endpoint `GET /device/{uuid}/setting` 2019-03-18 20:21:46 -03:00
Matheus Lima df14af5322 Implemented etag support on the endpoint `GET /device/{uuid}` 2019-03-18 16:34:34 -03:00
Matheus Lima 134bd9cc03 Fixing broken test after adding the payment_id column to the account_membership table 2019-03-18 11:19:32 -03:00
Matheus Lima f547a452a3 Created PATCH request to update membership 2019-03-15 11:07:12 -03:00
Matheus Lima 497d7b2740 Implemented stripe integration 2019-03-15 11:07:12 -03:00
Matheus Lima d29a3ee857 Starting to implement the stripe integration 2019-03-15 11:07:12 -03:00
Matheus Lima 7fc2a54ab0 Created PATCH request to update membership 2019-03-13 18:19:13 -03:00
Matheus Lima f02d1f151e Implemented stripe integration 2019-03-09 00:32:09 -03:00
Matheus Lima 5ebad16060 Starting to implement the stripe integration 2019-03-08 19:37:45 -03:00
Matheus Lima 4f401285bd minor fix to make the core more readable 2019-03-08 17:48:29 -03:00
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 3053c5f15a added uwsgi to project requirements 2019-03-07 18:13:57 -06:00
Chris Veilleux 789a07b020 added uwsgi.ini file 2019-03-07 17:16:26 -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