24 Commits (da314495d791207f9190dc8974bd36cf7278505d)

Author SHA1 Message Date
Stephen Hess 6918d866b8 added comments clarifying retry logic 8 years ago
Stephen Hess 73ef71d863 moved helper functions outside of setup scope 8 years ago
Stephen Hess ac0776e2be match error handling to controller/search 8 years ago
Stephen Hess 9da4b9d236 standardized on name to match controller/search 8 years ago
Stephen Hess 6425cc6444 added request retries for ES request timeouts 8 years ago
Stephen Hess 40e6b1b3b7 renamed variable for clarity 8 years ago
Stephen Hess 8c249c26f4 initialize esclient in routes/v1, eliminating need for src/backend 8 years ago
Stephen Hess 00234265e6 always inject backend instead of require'ing inside 8 years ago
Stephen Hess de2ff8cad7 removed debug 8 years ago
Peter Johnson 1451e9038e
change all log labels to 'api' 8 years ago
Julian Simioni 2557c68368
Use index name from config in controllers 8 years ago
Vesa Meskanen a2e96987fc Remove expensive JSON.stringify from api debug logging calls 9 years ago
Julian Simioni ef78b2e0fd Filter source and layer by new fields 9 years ago
Vesa Meskanen 269dff9dd1 Add query/response logging in debug mode to place controller, too 9 years ago
Julian Simioni 0e8f4253c0 Return multiple results in place when osm node and way share an id 9 years ago
Peter Johnson c609ae3ccf http friendly status codes. resolves #321 9 years ago
Stephen Hess cb7d22df91 switched ES lookup field from "type" -> "_type", fixes issue with /place lookup on Eiffel Tower gid 9 years ago
Julian Simioni a2cc31f142 Leave a note for future us 9 years ago
Julian Simioni 2505e92a62 Expect an array of types from _ids sanitiser 9 years ago
Peter Johnson 348d2e70e2 more conformance 9 years ago
Peter Johnson 7c46aed4a7 expose error messages in geojson 9 years ago
Peter Johnson 6ab81ffca5 set response data/meta on instead of 9 years ago
Diana Shkolnikov db0e063d8c Refactor controllers to be simple midddleware 9 years ago
Julian Simioni 2fce64f75a Move files 9 years ago
Julian Simioni 4e74e9b681 Whitespace 9 years ago
Harish Krishna 14c718bf1c passing in an object (req.clean) instead of a boolean. Plus updated test 10 years ago
Harish Krishna c99c5f712a adding a parameter called details (defaults to false for all endpoint except reverse) + fixing tests 10 years ago
Peter Johnson 2ee32f1892 mget service 10 years ago
Harish Krishna 81b3668b30 get to doc 10 years ago
Harish Krishna b828a05b01 simplifying things, DRY - one endpoint 'GET' handles single/multiple requests. plus test coverage 10 years ago
Harish Krishna fb6947e3fe /get endpoint - controller and sanitizer 10 years ago
Harish Krishna 0a58bc9fea adding type only if clean.layers are not undefined 10 years ago
Harish Krishna ef95f5b67d adding type 10 years ago
Peter Johnson 17134105d5 geojsonify /search and /reverse FTW 10 years ago
Peter Johnson d6ae185cc1 validity check 10 years ago
Harish Krishna 15c63e405c adding a naive reverse api endpoint (also, shares most of the search controller). updated search query to include a filter and a sort (calculating a bounding box, given a lat/lon) 10 years ago
Harish Krishna 554bbc62d3 adding search api endpoint and test (lat/lon in the query pending) 10 years ago
Peter Johnson 4323b0030b progress commit 10 years ago
Peter Johnson f48239a7d4 current dev branch 10 years ago