Julian Simioni
fb9b76ef6f
Add default route redirecting to /v1
...
This makes the root URL of the API a bit more friendly
Fixes https://github.com/pelias/api/issues/961
7 years ago
Lily He
f019f0ab5e
deletd legacy routes and legacyURL code
7 years ago
Stephen Hess
bb9d6e0fc9
inject schema to config.generate
8 years ago
Stephen Hess
4ed4b8b357
added retry support for ES requests that timeout
8 years ago
Stephen Hess
d8cffe4b9b
added configuration validation + tests
8 years ago
Julian Simioni
57d1c8be1e
Return an object from access_log module
...
This allows adding more methods later.
9 years ago
Peter Johnson
c609ae3ccf
http friendly status codes. resolves #321
9 years ago
Peter Johnson
3408e2caa5
fix CORS support by enabling OPTIONS endpoint
9 years ago
Diana Shkolnikov
2b9fbdfd10
Fix missing legacyUrl behavior
9 years ago
Diana Shkolnikov
1d8db6e5d1
Change type back to layer... oooops
9 years ago
Diana Shkolnikov
5647d0d19a
Add middleware for renaming placename properties to match WOF
9 years ago
Diana Shkolnikov
db0e063d8c
Refactor controllers to be simple midddleware
...
Refactor search and doc controllers to allow for post-processing middleware
to handle geojson and response sending. Allows for a much more flexible routing scheme.
9 years ago
Julian Simioni
e3961187b2
Add V1 routes with proxying to legacy
...
Using the semver middleware, handle requests to the new v1 api as well
as legacy routes.
9 years ago
Julian Simioni
c66d2edde2
Move routes configuration to separate file
9 years ago
Julian Simioni
167547a6c1
Rename doc endpoint to place
9 years ago
Julian Simioni
4e74e9b681
Whitespace
9 years ago
Harish Krishna
e5f783567f
remove all things that involved suggester including query mixer
...
keeping the suggest sanitizer for suggest/nearby wherein lat/lon are required
9 years ago
Harish Krishna
b51aed512b
adding 408.js
9 years ago
Harish Krishna
78c112d787
adding 408.js
9 years ago
Peter Johnson
21d6585314
update sanitizer middleware
9 years ago
Peter Johnson
efec90139e
alias endpoints
10 years ago
Severyn Kozak
157734b8d6
Emit access-logs via pelias-logger.
...
(app, middleware/access_log).js
-Move the logic that determines whether access logging is
necessary to app.js, since that allows us to maintain the style
of `app.use(require(/* desired middleware module */))` inside
`app.js` without returning a "noop" middleware from
`middleware/access_log.js` in the case that it's unnecessary.
10 years ago
Severyn Kozak
877e1e90a5
Add an access log middleware.
...
middleware/access_log.js, package.json
-Add middleware for printing out access logs.
-Add necessary dependencies.
10 years ago
Harish Krishna
904cb696a0
using coarse sanitizer for the coarse endpoint
10 years ago
Harish Krishna
217a5c1049
seperating suggest and search sanitizers because suggest requires geoBias (lat/lon) until ES 2.0.0 lands.
10 years ago
Peter Johnson
8aed2a0c6f
remove toobusy module
10 years ago
Harish Krishna
eeecbf71dc
search/coarse endpoint
10 years ago
Harish Krishna
ec9d2245ff
coarse geocoder endpoint: using admin0, admin1, admin2 and neighborhood layers/datasets only
10 years ago
Harish Krishna
fc7f6cb768
removing suggest_nearby, replacing suggest with suggest_multiple, commenting out a couple of tests for right now.
10 years ago
Harish Krishna
9afed3caef
adding query mixer for suggest and suggest/nearby
10 years ago
Harish Krishna
407c32e782
suggest_near_me to /suggest/nearby and suggest_near_me.js to suggest_nearby.js
10 years ago
Harish Krishna
886aa498f5
bringing back vanilla suggest (suggestions based on lat/lon/zoom only) - calling it suggest_near_me and adding a new endpoint (plus tests)
10 years ago
Harish Krishna
f1d13c1337
consolidating suggest_poi and suggest_admin into one suggest endpoint. fixing tests (more tests to come)
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
23e6cfbef7
mget for real - first pass (experiencing problems with the backend client)
10 years ago
Harish Krishna
fb6947e3fe
/get endpoint - controller and sanitizer
10 years ago
Peter Johnson
6558cc9289
progress commit
10 years ago
Peter Johnson
a75b41dd33
remove redundant require()
10 years ago
Peter Johnson
8b97976022
refactor search query
10 years ago
Peter Johnson
3ee39d208a
relative path fix for linux; trailing whitespace
10 years ago
Harish Krishna
32275aca56
split sanitizers into reusable pieces. renaming sanitise to suggest. using suggest sanitizer for search. adding reverse sanitizer. updating tests..
10 years ago
Harish Krishna
8fcfa1b57e
exporting middleware and fixing reverse endpoint
10 years ago
Peter Johnson
3cd93315ea
refactor
10 years ago
Peter Johnson
42a2387003
tests
10 years ago
Peter Johnson
18f4f6b256
refactor/ add more tests
10 years ago
Peter Johnson
794db085a2
split app from server, add toobusy
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
972d3a2a84
refactor
10 years ago