Commit Graph

15 Commits

Author SHA1 Message Date
fd2b4e098b Upgraded to actix-web 4 2024-08-11 15:19:36 +02:00
478563f820 Adding documentation 2020-04-01 11:32:45 +02:00
6532bd5a0d Remove .unwrap() calls, and add more information. 2020-01-20 15:40:00 +01:00
fc84eee48b Prevent unsafe blocks for now 2020-01-20 14:59:39 +01:00
eba485519c Updated imports
* Reorganised so that each module part imports from the mod.rs
   This allows for coherent types within the module to be updated
   simply.
 * Updated imports to the new mercator_db organisation
2020-01-14 18:01:49 +01:00
75b3529eb9 Support multiple cores (Datasets) 2019-10-04 19:27:02 +02:00
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
29e78454a0 Moving JSON model to mercator_db, as it is shared. 2019-09-12 11:37:27 +02:00
9d2cb9293d Add basic CORS support 2019-09-12 11:37:27 +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
677998062a Read from environment configuration 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
455f83c58b Testing infrastructure in place 2019-09-03 17:20:18 +02:00
1a923c5477 Simple Actix-web Service with shared state 2019-09-03 17:20:18 +02:00