Diana Shkolnikov
3fef192c68
Update doc
10 years ago
Diana Shkolnikov
a728bf53b5
Merge branch 'master' into address-details
10 years ago
Diana Shkolnikov
e146829618
Merge pull request #115 from pelias/reverse-categories
...
Reverse categories
10 years ago
Harish Krishna
e1ddcbb93f
Merge pull request #116 from pelias/runtime-error-reporting#114
...
Resolve #114 : report runtime errors.
10 years ago
Severyn Kozak
cf1a483ede
Don't report full errors in API results.
...
middleware/500.js
-Return a generic error message rather than stringified error
object in API results.
10 years ago
Severyn Kozak
17bb6db6e5
Resolve #114 : report runtime errors.
...
middleware/500.js
-Add code to the 500 catchall middleware to report errors to
stdout/stderr.
-Also, stringify the error via `.toString()` before passing it
to `res.json()`, since otherwise an empty object appears to be
returned.
10 years ago
Diana Shkolnikov
0d07c38b06
add to README
10 years ago
Diana Shkolnikov
4d0c23e742
remove code-climate hooks
10 years ago
Diana Shkolnikov
5101d802ab
remove code-climate hooks
10 years ago
Diana Shkolnikov
7b5a2fafb9
Change query to use `terms` and add code coverage stats
10 years ago
Diana Shkolnikov
1bf0fcd298
Add categories param to /reverse
10 years ago
Diana Shkolnikov
ffc19457a4
Merge pull request #108 from pelias/better-index-page
...
Better API index page
10 years ago
Diana Shkolnikov
45ba29cc54
Add categories param to /reverse
10 years ago
Severyn Kozak
29838e5b8c
Move code that needs to run only once.
...
controller/index.js
-Move all of the index page HTML "initialization" code that only
needs to run once, like markdown compilation and `style`
prepending, out of the request handler.
10 years ago
Diana Shkolnikov
99ee2d95a3
Change to readFileSync and update test to use proxyquire
10 years ago
Diana Shkolnikov
4f1b75ce94
Fix test name
10 years ago
Diana Shkolnikov
1d45b20268
Load markdown file into memory and check if client requested html
10 years ago
Harish Krishna
34a168060a
Merge pull request #107 from pelias/fix-error-msg
...
Layers be layers not layer (typo in the error message)
10 years ago
Harish Krishna
c2f7410916
Merge pull request #109 from pelias/fix-coarse
...
[Major bug fix] using coarse sanitizer for the coarse endpoint
10 years ago
Harish Krishna
14c718bf1c
passing in an object (req.clean) instead of a boolean. Plus updated test
10 years ago
Harish Krishna
fdb0d939bb
simplifying logic: replacing the complicated ternary statement with an if statement
10 years ago
Harish Krishna
176f580215
using is-object
10 years ago
Grant Heffernan
1fc624c957
DOCS update
10 years ago
Grant Heffernan
22d235907d
fix bbox italics in DOCS
10 years ago
Grant Heffernan
83dbdc7d41
DOCS formatting
10 years ago
Grant Heffernan
9e7e1455b5
a bit more DOCS cleanup
10 years ago
Grant Heffernan
6bff821c53
standardize some DOCS language, fix indentation
10 years ago
Grant Heffernan
189a768d05
more DOCS updates
10 years ago
Harish Krishna
b07d693d04
updates (added suggest/nearby)
10 years ago
Grant Heffernan
6506c84434
update DOCS.md for readability, etc
10 years ago
Harish Krishna
904cb696a0
using coarse sanitizer for the coarse endpoint
10 years ago
Harish Krishna
a91cb23ea4
adding a new file DOCS.md (same as https://github.com/pelias/api/wiki/API-Endpoints ), modifying controller/index.js to return text/html instead of application/json by default. Using markdown module to convert MD to HTML. Fixing tests (removed test/jsonp.coffee)
10 years ago
Harish Krishna
7667a898dd
param layers should be called layers consistently across the API
10 years ago
Harish Krishna
53bfab2529
simplifying things
10 years ago
Harish Krishna
71499cd201
flipping default behavior - by default its details=true
10 years ago
Harish Krishna
af45b4743c
oh so many more tests!
10 years ago
Harish Krishna
719e73f3bd
taking default_value into account
10 years ago
Harish Krishna
c78c8e2dbe
only true or 1 is valid
10 years ago
Harish Krishna
ea78b8268a
more tests: testing falsy and truthy params
10 years ago
Harish Krishna
acfa8e1f20
testing geojsonify when adddress_details flag is set to false (by default)
10 years ago
Harish Krishna
0e9af3b9b8
adding controller tests to test details=true test case
10 years ago
Harish Krishna
c99c5f712a
adding a parameter called details (defaults to false for all endpoint except reverse) + fixing tests
10 years ago
Harish Krishna
9502ab8854
fixing failing tests
10 years ago
Harish Krishna
38e1c58c94
Merge pull request #96 from pelias/bbox-optimize
...
Bbox optimize
10 years ago
Harish Krishna
94b044d179
using elasticsearch-backend 0.0.12
10 years ago
Harish Krishna
46f487d819
Merge pull request #98 from pelias/add-layers
...
adding 'locality', 'local_admin' to the list of layers
10 years ago
Harish Krishna
3968034f80
Merge pull request #90 from pelias/suggester-fix
...
Allow consumers to filter suggestions by layer on '/suggest'
10 years ago
Harish Krishna
b4bd69abd2
Merge pull request #92 from pelias/suggest-requires-geo
...
Suggest requires geo
10 years ago
Harish Krishna
baec480e48
Merge pull request #89 from pelias/null-island-bug
...
Null island bug Fix
10 years ago
Harish Krishna
5094ecb25e
adding 'locality', 'local_admin' to the list of layers (part of admin alias) plus tests
10 years ago