Julian Simioni
|
d11d185429
|
Fix missing space in error message
|
9 years ago |
Julian Simioni
|
2505e92a62
|
Expect an array of types from _ids sanitiser
This doesn't have any effect by itself but allows for the 3-part gid
sanitiser to possibly return multiple types (i.e. in the case of
osm:venue:1000)
|
9 years ago |
Julian Simioni
|
882aad4916
|
Extract code to sanitize single id to separate function
|
9 years ago |
Julian Simioni
|
68c9661c70
|
Remove all mappings other than helper/type_mapping
|
9 years ago |
Julian Simioni
|
72e3ea1381
|
Use check-types.contains to express intent a bit better
|
9 years ago |
Julian Simioni
|
16450087ee
|
Use simpler, clearer error on invalid ids length
|
9 years ago |
Julian Simioni
|
edaf175aa7
|
Provide better, more consistent, errors on invalid ids
All error messages for invalid id formats now use a common format that
explains the nature of the error a bit better.
|
9 years ago |
Julian Simioni
|
3101aad399
|
Simplify ids sanitizing logic
|
9 years ago |
Julian Simioni
|
1b6c61c92e
|
Leave clean.ids undefined on error
|
9 years ago |
Julian Simioni
|
1b512fc643
|
Remove empty array check that will always fail
Even splitting on an empty string returns an array of one element
|
9 years ago |
Julian Simioni
|
399e566551
|
Remove unnecessary calls to function
|
9 years ago |
Julian Simioni
|
cd63209085
|
Error on multiple ids parameters instead of warning
|
9 years ago |
Julian Simioni
|
2bfe8785e5
|
Rename sanitiser/_id.js to sanitiser/_ids.js
|
9 years ago |
Julian Simioni
|
c687102374
|
Rename /place id parameter to ids
|
9 years ago |
Julian Simioni
|
8592c37bf6
|
Expect multiple ids to be specified as a comma-delimited string
Disallow the other way that Node.js allows, which is to list the id
parameter multiple times in the querystring. See #272.
|
9 years ago |
Julian Simioni
|
bd4fbfe3bd
|
Whitespace
|
9 years ago |
Peter Johnson
|
7c46aed4a7
|
expose error messages in geojson
|
9 years ago |
Peter Johnson
|
a1efb0c6d0
|
lodash-ify some array functions; remove 'yes' and 'y' from thruthy
|
9 years ago |
Peter Johnson
|
e726636c3d
|
merge with master
|
9 years ago |
Peter Johnson
|
10242a8682
|
rename unclean->raw
|
9 years ago |
Peter Johnson
|
bf42290c7c
|
refactor sanitizers: first pass
|
9 years ago |
Julian Simioni
|
2ebc935295
|
Rename query/indidces to query/types
It didn't really contain a list of indices.
|
9 years ago |
Julian Simioni
|
e71fb7cfd4
|
Whitespace
|
9 years ago |
Julian Simioni
|
24349a3839
|
Rename query/indidces to query/types
It didn't really contain a list of indices.
|
9 years ago |
Julian Simioni
|
fb0cf514e9
|
Whitespace
|
9 years ago |
Harish Krishna
|
176f580215
|
using is-object
|
10 years ago |
Harish Krishna
|
69a13e9105
|
fixing all the js lint related issues (lintified)
|
10 years ago |
Harish Krishna
|
6ac839f37b
|
take the first occurence of delim and compute id and type accordingly. This works with the case when the id has the delim character in it.
|
10 years ago |
Harish Krishna
|
5e42b4ac0c
|
de-dupe as part of sanitizing
|
10 years ago |
Harish Krishna
|
b828a05b01
|
simplifying things, DRY - one endpoint 'GET' handles single/multiple requests. plus test coverage
|
10 years ago |
Harish Krishna
|
0dd495a378
|
going from ?id=123&type=geoname to ?id=geoname/123
tests updated
|
10 years ago |
Harish Krishna
|
516722f8dc
|
dont set type till its a valid type
|
10 years ago |
Harish Krishna
|
32e9a13d64
|
type should be one of the indeces
|
10 years ago |
Harish Krishna
|
fb6947e3fe
|
/get endpoint - controller and sanitizer
|
10 years ago |