Chris Veilleux
43ef249d00
change public API to use a different connection pooling mechanism
2019-05-22 13:12:23 -05:00
Matheus Lima
5ae440373c
Excluding oauth token validation in the oauth callback endpoint
2019-05-17 18:26:51 -03:00
Chris Veilleux
688dea8805
fixed missing device ID on STT endpoint metrics
2019-05-17 14:15:57 -05:00
Chris Veilleux
bbd5088a6a
add device_id to the metrics.api table for reporting
2019-05-15 14:27:54 -05:00
Matheus Lima
e259afd402
Removing the login session when the device is removed
2019-05-08 16:55:14 -03:00
Matheus Lima
7e26e4ba49
Adding url to the global context in the start of the before request webhook. Created a test to the wolfram alpha endpoint
2019-04-29 18:02:52 -03:00
Matheus Lima
704743d81c
Moving command to be called right before the exception to be raised
2019-04-24 16:33:23 -03:00
Matheus Lima
174bae440b
Putting the url from the request in the global context in the before request hook
2019-04-24 16:28:06 -03:00
Chris Veilleux
b38110e8a0
changed logic that got a database connection for all endpoints in a before_request hook to a lazily loaded property that only gets called when a db connection is needed.
2019-04-22 18:09:14 -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
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
df14af5322
Implemented etag support on the endpoint `GET /device/{uuid}`
2019-03-18 16:34:34 -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
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