Commit Graph

4 Commits

Author SHA1 Message Date
66d19f7a2d Upgraded to actix_web 1.0+
* Some refactoring
 * Adding CORS support
 * Updating API & tests with 405 for the relevent calls
 * Fixing test so they can be run
2019-10-03 14:28:41 +02:00
485e6d342b Integrate Query Parser
Integrate the query parser to allow filters to be provided to collection
end points.

Refactor the shared state to better encapsulate the model.
2019-09-12 14:16:30 +02:00
8bf9edee25 Load data from file, getters only
At this time, the data is loaded from a set of files and the following
end points are available:
 - /health
 - /spaces (POST)
 - /spaces/{id} (GET)
 - /cores (POST)
 - /cores/{id} (GET)
 - /cores/{id}/spatial_objects (POST)
 - /cores/{id}/spatial_objects/{oid} (GET)

The implement ation is currently minimal and does not allow for filters
or parameters on any of the handlers.
2019-09-03 17:20:19 +02:00
fb0d65b4b8 Implementing HTTP API
The handler are empty for now, but all the routing and infrastructure is
in place.

The next steps is to wire in the query parser & index libraries.
2019-09-03 17:20:18 +02:00