Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Update /screenings endpoint to return full info on screenings. | Harald Eilertsen | 2019-04-28 | 1 | -4/+4 |
| | | | | | This makes each screening record self-contained, and the json payload more consistent with how it semantically fit together. | ||||
* | Import model structs to main models module. | Harald Eilertsen | 2019-04-08 | 1 | -6/+2 |
| | |||||
* | Move functions to query/modify db to connection object. | Harald Eilertsen | 2019-04-08 | 1 | -10/+9 |
| | | | | | | Makes tha API a bit nicer by asking the database rather than passing the database on to each model. Reserve models for method/functions that work on the model structs themselves. | ||||
* | Fix warnings from test runs. | Harald Eilertsen | 2019-04-08 | 1 | -4/+2 |
| | |||||
* | Add endpoint to fetch screenings from the database. | Harald Eilertsen | 2019-04-08 | 1 | -2/+32 |
| | | | | | | Not entirely happy about the way this turned out for now. A more ergonomic return type from the models::screenings::get_all() function will be investigated. | ||||
* | Refactor tests to always load fixtures, and sync execution. | Harald Eilertsen | 2019-04-02 | 1 | -25/+42 |
| | | | | | | | Rust will run tests in parallel by default, which does not work too well with using db transactions as a means to isolate changes in the database between tests. So we have to run the database tests one at a time, thus the mutex. | ||||
* | Renamed test file. | Harald Eilertsen | 2019-04-02 | 1 | -0/+0 |
| | |||||
* | Add route to fetch films from database. | Harald Eilertsen | 2019-04-02 | 1 | -3/+38 |
| | |||||
* | Refactor room tests, move server and db setup to function. | Harald Eilertsen | 2019-03-21 | 1 | -21/+30 |
| | |||||
* | Actually fetch available rooms from the database. | Harald Eilertsen | 2019-03-21 | 1 | -3/+31 |
| | |||||
* | Pass database url into build_rocket helper function. | Harald Eilertsen | 2019-03-20 | 1 | -1/+4 |
| | |||||
* | Use rocket_contrib's JsonValue as return type. | Harald Eilertsen | 2019-03-04 | 1 | -0/+2 |
| | |||||
* | Begin implement /rooms endpoint. | Harald Eilertsen | 2019-03-04 | 1 | -0/+27 |
Refactors the code by moving the implementation to a library, to make it testable. A dummy /rooms endpoint returning an empty list was added as well. |